ID:165518
 
ok i got this game called Apocolypse Final Destruction, And well i have evil icons good icons and neutral icons and i need a proc that makes the evil go to the good alignment person and attack or goto the neutral alignment person and attack, now for the good it only attacks the evil, see? and the neutral just wanders around helpless, think someone can help me?

~volks
mob
proc
Attack()
for(var/mob/M in get_step(src,src.dir))
if(M.alignment == "whatever" && src.alignment == "whatever")return
else if(M.alignment == "whatever" && src.alignment == "whatever")return
else if(M.alignment == "whatever" && src.alignment == "whatever")return
else ... //default attacking code
In response to Xx Dark Wizard xX
mob
proc
Attack()
for(var/mob/M in get_step(src,src.dir))
if(M.alignment == "whatever" && src.alignment == "whatever") continue
else if(M.alignment == "whatever" && src.alignment == "whatever") continue
else if(M.alignment == "whatever" && src.alignment == "whatever") continue
else
... //default attacking code


Also instead of having alignment simply be text perhaps numbers would be better. With numbers you can change alignment as the player kills people of another alignment.