Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Ask about command
#2
(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)
Reply


Messages In This Thread
Ask about command - by zarize - 03-14-2016, 11:26 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)