I'm trying to make an attack system
my problem is how do i make a attack that doesn't attack me ... cause i set it up to "-" the damage from the health but it takes away from the user and the mob so how would i code that in?
ID:159467
Mar 5 2009, 3:49 pm
|
|
Mar 5 2009, 4:28 pm
|
|
what are you currently trying? post code.
|
In response to Immibis
|
|
well im not sure but i guess i started it off like this:
mob var health damage=usr.attack/.25 attack=500 mob verb high_punch() mob.health -= usr.damage low_punch() mob.health -= usr.damage/.15 |
In response to Spunky_Girl
|
|
so how would i code it?
|
In response to Kryu
|
|
what you have codded is basically telling the game to remove from src, since you never designated another target
mob verb high_punch(mob/m in get_step(src,src.dir) m.health-=src.attack/.25 <-- you can also use src.attack*4 |
In response to Kryu
|
|
You need to learn first before trying to dive into the code - as you can see, that won't work. Welcome, Novice Programmer!
|
In response to Capell
|
|
You freakin rock imma try it when i get home!!1
|