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, 4:49 pm
|
|
![]() Mar 5 2009, 5:28 pm
|
|
what are you currently trying? post code.
|
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 |
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 |
You need to learn first before trying to dive into the code - as you can see, that won't work. Welcome, Novice Programmer!
|