Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
script.c File Reference

The helpers of the stages' scripts and the script commands' table. More...

#include "field/field_mode.h"
Include dependency graph for script.c:

Go to the source code of this file.

Functions

void FIELDSTG_resetScriptTimer (void)
 Stops the scripts' timer.
 
Actor * FIELDSTG_findActor (s32 character)
 The actor of a character (Actor.key1), or NULL.
 
void FIELDSTG_waitScriptTime (s32 time, s32 *pc)
 A script's wait: counts time down, then moves the script on.
 
void FIELDSTG_waitAnimDone (s32 id, s32 *pc)
 A script's wait for the animation of the actor id to end.
 
void FIELDSTG_waitWalkDone (s32 id, s32 *pc)
 A script's wait for the actor id to reach its goal.
 
void FIELDSTG_toScreenPos (Vec2 *pos)
 Turns a map position into a screen one.
 
void FIELDSTG_clearScriptFlag (void)
 A script helper: clears the script flag of character 1, or else of character 2.
 
ScriptCommand * FIELDSTG_findScriptCommand (s32 id)
 The script command id of FIELDSTG_scriptCommands, or NULL.
 
s32 FIELDSTG_createScriptCommand (s32 id)
 Creates the task of script command id, or returns 0.
 
void FIELDSTG_handleScriptCommand (s32 task, s32 id, s32 command, s32 arg)
 Hands the task of script command id a command and its argument, through the command's handle.
 

Detailed Description

The helpers of the stages' scripts and the script commands' table.

Definition in file script.c.

Function Documentation

◆ FIELDSTG_resetScriptTimer()

void FIELDSTG_resetScriptTimer ( void  )

Stops the scripts' timer.

script.c

Definition at line 6 of file script.c.

◆ FIELDSTG_findActor()

Actor * FIELDSTG_findActor ( s32  character)

The actor of a character (Actor.key1), or NULL.

< every character (FIELDSTG_createActor)

Definition at line 11 of file script.c.

Referenced by FIELDSTG_clearScriptFlag(), FIELDSTG_waitAnimDone(), and FIELDSTG_waitWalkDone().

Here is the caller graph for this function:

◆ FIELDSTG_waitScriptTime()

void FIELDSTG_waitScriptTime ( s32  time,
s32 *  pc 
)

A script's wait: counts time down, then moves the script on.

Definition at line 16 of file script.c.

◆ FIELDSTG_waitAnimDone()

void FIELDSTG_waitAnimDone ( s32  id,
s32 *  pc 
)

A script's wait for the animation of the actor id to end.

Definition at line 30 of file script.c.

Here is the call graph for this function:

◆ FIELDSTG_waitWalkDone()

void FIELDSTG_waitWalkDone ( s32  id,
s32 *  pc 
)

A script's wait for the actor id to reach its goal.

Definition at line 39 of file script.c.

Here is the call graph for this function:

◆ FIELDSTG_toScreenPos()

void FIELDSTG_toScreenPos ( Vec2 *  pos)

Turns a map position into a screen one.

< the map, its objects and characters, and the menus

Definition at line 48 of file script.c.

◆ FIELDSTG_clearScriptFlag()

void FIELDSTG_clearScriptFlag ( void  )

A script helper: clears the script flag of character 1, or else of character 2.

Definition at line 59 of file script.c.

Here is the call graph for this function:

◆ FIELDSTG_findScriptCommand()

ScriptCommand * FIELDSTG_findScriptCommand ( s32  id)

The script command id of FIELDSTG_scriptCommands, or NULL.

Definition at line 69 of file script.c.

Referenced by FIELDSTG_createScriptCommand(), and FIELDSTG_handleScriptCommand().

Here is the caller graph for this function:

◆ FIELDSTG_createScriptCommand()

s32 FIELDSTG_createScriptCommand ( s32  id)

Creates the task of script command id, or returns 0.

Definition at line 81 of file script.c.

Referenced by FIELDSTG_setEventPose().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FIELDSTG_handleScriptCommand()

void FIELDSTG_handleScriptCommand ( s32  task,
s32  id,
s32  command,
s32  arg 
)

Hands the task of script command id a command and its argument, through the command's handle.

Definition at line 93 of file script.c.

Referenced by FIELDSTG_setEventPose().

Here is the call graph for this function:
Here is the caller graph for this function: