example
mob/verb/Attack()
var/unloyal[] = newlist()
var/mob/monster/A
for(A in oview())
if(A.loyal != usr.key)
unloyal += A
else
return ..()
var/M = input("attack who?") in unloyal
M.life -= 10
M.death()
I did that but that doesnt seem to work.. any suggestions?
<font color=cyan>return ..()</font>
With the highlighted return statement, this code stops and returns as soon as it encounters a loyal person. Is that what you want?