Jump to content

Script actions interrupt what character is doing


vanatos

Recommended Posts

Posted

So (per my experience) when a script block is executed, it will interrupt whatever the npc is currently doing (attacking or moving).

 

Is there anyway to prevent this?

Posted

Well, yes, code the script correctly, aka make sure the character isn't doing anything first, with action list empty check:

Trigger.ids: 0x402B ActionListEmpty()

So:

IF
	ActionListEmpty()
	See(NearestEnemyOf(Myself))
THEN
	RESPONSE #100
		AttackReevaluate(NearestEnemyOf(Myself),30)
END
Posted

Actually what i wanted was a way to set globals without interrupting someone in combat.

 

But i don't require it anymore thanks anyway.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...