when somone attacks something or somone else, it works just fine. if there are more than one person next to the person who is attacking, it'll ask the attacker which one he wants to attack, I don't want this to happen. here's my attack code
mob
verb
Attack(mob/M as mob in oview(1))
M.HP -= usr.Strength
CheckKill()
is there any way to stop this from happening?
ID:261271
Nov 23 2001, 1:54 pm
|
|
Nov 23 2001, 2:20 pm
|
|
Use Click() I'm sure theres a way to use type the verb but I just use Click() to solve that problem.
|
In response to BurningIce
|
|
How would i do it the other way. i dont like using click()
|
In response to Philipe The Bard
|
|
mob/verb
attack(mob/M as mob in oview(1)) var/damage = rand(1,10) M.hp -= damage M.DeathCheck() This works for me... it's actually the same as your code except I did damage a little different. I can't see what could be wrong. I guess this was a useless post. |
In response to Philipe The Bard
|
|
Philipe The Bard wrote:
How would i do it the other way. i dont like using click() Use a for() loop and stop it before it can go to more people. mob/verb/attack() |