11 .alertOffsetDist = 50.0f,
12 .playerSearchInterval = 3,
15 .chaseUpdateInterval = 10,
17 .chaseOffsetDist = 70.0f,
21EvtScript N(EVS_NpcAI_Lakitu_SpinySpawner) = {
29 Call(N(LakituAI_Main),
Ref(N(AISettings_Lakitu_SpinySpawner)))
37 .level = ACTOR_LEVEL_LAKITU,
38 .ai = &N(EVS_NpcAI_Lakitu_SpinySpawner),
50 .alertOffsetDist = 30.0f,
51 .playerSearchInterval = 3,
53 .chaseRadius = 100.0f,
54 .chaseOffsetDist = 30.0f,
66 Call(N(SpinyAI_Main),
Ref(N(AISettings_SpawnedSpiny)))
71EvtScript N(EVS_NpcDefeat_SpawnedSpiny) = {
91 .level = ACTOR_LEVEL_SPINY,
92 .ai = &N(EVS_NpcAI_SpawnedSpiny),
94 .onDefeat = &N(EVS_NpcDefeat_SpawnedSpiny),
ApiStatus SetEnemyFlagBits(Evt *script, b32 isInitialCall)
ApiStatus SetNpcRotation(Evt *script, b32 isInitialCall)
ApiStatus RemoveNpc(Evt *script, b32 isInitialCall)
ApiStatus DoNpcDefeat(Evt *script, b32 isInitialCall)
ApiStatus OnPlayerFled(Evt *script, b32 isInitialCall)
ApiStatus SetSelfVar(Evt *script, b32 isInitialCall)
ApiStatus GetBattleOutcome(Evt *script, b32 isInitialCall)
#define Switch(LVAR)
Marks the start of a switch statement.
#define Ref(sym)
Address/pointer constant.
#define CaseEq(RVAR)
Marks the start of a switch case that executes only if LVAR == RVAR. It also marks the end of any pre...
#define End
Signals the end of EVT script data. A script missing this will likely crash on load.
#define EVT_DEBUG_LOG(STRING)
Does nothing in release version.
#define EndSwitch
Marks the end of a switch statement and any case.
#define Call(FUNC, ARGS...)
Calls a given C EVT API function with any number of arguments.
#define Return
Kills the current EVT thread.