Difference between revisions of "Command an NPC/Creature to Attack"

imported>Phinix
imported>Phinix
Line 99: Line 99:
  set activestat to 0
  set activestat to 0
  elseif button == 1
  elseif button == 1
set timer to 1.5
  set globalvar1 to 2
  set globalvar1 to 2
  set activestat to 0
  set activestat to 0
Line 105: Line 106:
  endif
  endif
  endif
  endif
endif
if globalvar1 == 0
set timerinit to 0
endif
if globalvar1 == 1
addspell myFrenzySpell
set globalvar1 to 0
  endif
  endif
  if globalvar1 == 2
  if globalvar1 == 2
  if timerinit == 0
  if timer == 0
set timer to .5
set globalvar1 to 0
set timerinit to 1
elseif timer > 0
else
set timer to timer - getSecondsPassed
if timer > 0
StopCombatAlarmOnActor
set timer to timer - getSecondsPassed
elseif timer < 0
else
set timer to 0
removespell myFrenzySpell
endif
StopCombatAlarmOnActor
set globalvar1 to 0
endif
endif
  endif
  endif
  end
  end
Anonymous user