Enderal SE
https://mod.pub/enderal-se/38-enderal-se
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
430 B
19 lines
430 B
ScriptName activateSelfOnCombatBegin extends Actor
|
|
{Script that lives on an actor that simply activates itself on Combat Begin}
|
|
|
|
import game
|
|
import debug
|
|
|
|
auto State waiting
|
|
Event OnCombatStateChanged(Actor actorRef, int combatState)
|
|
if combatState != 0 ; 0 = not in combat, so if the state isn't 0, they entered combat
|
|
gotoState("allDone")
|
|
activate(Self)
|
|
endIf
|
|
endEvent
|
|
endState
|
|
|
|
State allDone
|
|
;do nothing
|
|
endState
|
|
|