03-14-2016, 11:38 AM
(03-14-2016, 11:26 AM)zarize Wrote: Creature.NameIn(ID, Name,Na..) Verify if the creature from the given ID name is in the list (Returns: Yes=1; No=0) - it works like if it meets near your character(visible sqms) X/npc/monster? I mean what is the list, battle list? visible ? or wut :p
It will check the name of the creature with given ID matches the parameters:
Code:
1000 {Test Creature.NameIn}
Self.Attacking()==1 [ElseNotAttacking]
TargetID:=Creature.Target()
Creature.NameIn(!TargetID!, Demon, Fire Elemental)==1 [ElseNotCool]
Self.Say(Im attacking a cool monster)
Exit()
{ElseNotCool}
Self.Say(Im not attacking a cool monster)
Exit()
{ElseNotAttacking}
Self.Say(Im not attacking anything)