Isle
Loading...
Searching...
No Matches
scripts.h File Reference

[AI] Contains global script AtomId pointers and utility functions for managing script AtomIds in LEGO Island. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void CreateScripts ()
 [AI] Allocates and initializes all global script MxAtomIds. More...
 
void DestroyScripts ()
 [AI] Frees and nullifies all global script AtomIds. More...
 
const char * GetNoCD_SourceName ()
 [AI] Retrieves the internal string for the NoCD script source AtomId. More...
 

Variables

Script AtomIds

[AI] Global pointers to AtomIds for core script SI files used throughout the game logic.

[AI] Each variable points to an MxAtomId uniquely representing a gameplay script or SI resource file, allowing code to reference scripts efficiently using identifier objects rather than raw strings.

See also
CreateScripts(), DestroyScripts()
MxAtomIdg_copterScript
 [AI] Script AtomId for the helicopter ("copter") build or activity. More...
 
MxAtomIdg_dunecarScript
 [AI] Script AtomId for the dune car building or mission script. More...
 
MxAtomIdg_jetskiScript
 [AI] Script AtomId for the jet ski-related script. More...
 
MxAtomIdg_racecarScript
 [AI] Script AtomId for the build/race car SI file. More...
 
MxAtomIdg_carraceScript
 [AI] Script AtomId for the car racing event script. More...
 
MxAtomIdg_carracerScript
 [AI] Script AtomId for the car racer entity or race logic. More...
 
MxAtomIdg_jetraceScript
 [AI] Script AtomId for jet racing-related scripts. More...
 
MxAtomIdg_jetracerScript
 [AI] Script AtomId for a jet racer entity or event. More...
 
MxAtomIdg_isleScript
 [AI] Script AtomId for the main island world logic script. More...
 
MxAtomIdg_elevbottScript
 [AI] Script AtomId for the elevator bottom script in Info Center. More...
 
MxAtomIdg_infodoorScript
 [AI] Script AtomId for the Info Center door logic script. More...
 
MxAtomIdg_infomainScript
 [AI] Script AtomId for the main Info Center world/event script. More...
 
MxAtomIdg_infoscorScript
 [AI] Script AtomId for the Info Center scoring/stat script. More...
 
MxAtomIdg_regbookScript
 [AI] Script AtomId for the registration book script (name entry). More...
 
MxAtomIdg_histbookScript
 [AI] Script AtomId for the history book script (view records). More...
 
MxAtomIdg_hospitalScript
 [AI] Script AtomId for the hospital SI logic. More...
 
MxAtomIdg_policeScript
 [AI] Script AtomId for the police station script logic. More...
 
MxAtomIdg_garageScript
 [AI] Script AtomId for the vehicle garage/world logic. More...
 
MxAtomIdg_act2mainScript
 [AI] Script AtomId for main script of Act 2 (island event progression). More...
 
MxAtomIdg_act3Script
 [AI] Script AtomId for Act 3 (endgame/helicopter chase) scripting. More...
 
MxAtomIdg_jukeboxScript
 [AI] Script AtomId for the Jukebox entity/event script. More...
 
MxAtomIdg_pz5Script
 [AI] Script AtomId for the "PZ5" activity or demo. More...
 
MxAtomIdg_introScript
 [AI] Script AtomId for the game introduction script. More...
 
MxAtomIdg_testScript
 [AI] Script AtomId for test SI data (used in debug/development). More...
 
MxAtomIdg_jukeboxwScript
 [AI] Script AtomId for the JukeboxW (alternate or special jukebox) script. More...
 
MxAtomIdg_sndAnimScript
 [AI] Script AtomId for sound animation or related cutscenes. More...
 
MxAtomIdg_creditsScript
 [AI] Script AtomId for the credits roll logic. More...
 
MxAtomIdg_nocdSourceName
 [AI] AtomId for the NoCD patch/script identifier used for copy protection checks. More...
 

Detailed Description

[AI] Contains global script AtomId pointers and utility functions for managing script AtomIds in LEGO Island.

[AI] This header defines a set of global pointers to MxAtomId objects, each representing the unique identifier (AtomId) for a specific in-game script or SI file path. These IDs are used to refer to key game scripts, such as vehicle behavior, world locations, and special actions. Utility functions are provided to create and destroy these AtomId objects, and to access special script source names for cases like NoCD handling.

Definition in file scripts.h.

Function Documentation

◆ CreateScripts()

void CreateScripts ( )

[AI] Allocates and initializes all global script MxAtomIds.

[AI] This function is called at startup or world reset to set up all script AtomId pointers for use in the engine. It must be called before referencing any of the global script AtomIds.

Definition at line 94 of file scripts.cpp.

◆ DestroyScripts()

void DestroyScripts ( )

[AI] Frees and nullifies all global script AtomIds.

[AI] Cleans up the AtomId pointers created by CreateScripts(), to prevent memory leaks or dangling pointers. Should be called at shutdown/clean-up.

Definition at line 127 of file scripts.cpp.

◆ GetNoCD_SourceName()

const char * GetNoCD_SourceName ( )

[AI] Retrieves the internal string for the NoCD script source AtomId.

Returns
[AI] Pointer to the internal C-string/char* representing the SI path used for NoCD patching logic.

[AI] Use this to access the path or identifier required by NoCD logic. Returns a string managed by the AtomId object, do not free.

Definition at line 190 of file scripts.cpp.

Variable Documentation

◆ g_act2mainScript

MxAtomId* g_act2mainScript
extern

[AI] Script AtomId for main script of Act 2 (island event progression).

Definition at line 63 of file scripts.cpp.

◆ g_act3Script

MxAtomId* g_act3Script
extern

[AI] Script AtomId for Act 3 (endgame/helicopter chase) scripting.

Definition at line 66 of file scripts.cpp.

◆ g_carracerScript

MxAtomId* g_carracerScript
extern

[AI] Script AtomId for the car racer entity or race logic.

Definition at line 22 of file scripts.cpp.

◆ g_carraceScript

MxAtomId* g_carraceScript
extern

[AI] Script AtomId for the car racing event script.

Definition at line 19 of file scripts.cpp.

◆ g_copterScript

MxAtomId* g_copterScript
extern

[AI] Script AtomId for the helicopter ("copter") build or activity.

Definition at line 6 of file scripts.cpp.

◆ g_creditsScript

MxAtomId* g_creditsScript
extern

[AI] Script AtomId for the credits roll logic.

Definition at line 88 of file scripts.cpp.

◆ g_dunecarScript

MxAtomId* g_dunecarScript
extern

[AI] Script AtomId for the dune car building or mission script.

Definition at line 9 of file scripts.cpp.

◆ g_elevbottScript

MxAtomId* g_elevbottScript
extern

[AI] Script AtomId for the elevator bottom script in Info Center.

Definition at line 35 of file scripts.cpp.

◆ g_garageScript

MxAtomId* g_garageScript
extern

[AI] Script AtomId for the vehicle garage/world logic.

Definition at line 60 of file scripts.cpp.

◆ g_histbookScript

MxAtomId* g_histbookScript
extern

[AI] Script AtomId for the history book script (view records).

Definition at line 51 of file scripts.cpp.

◆ g_hospitalScript

MxAtomId* g_hospitalScript
extern

[AI] Script AtomId for the hospital SI logic.

Definition at line 54 of file scripts.cpp.

◆ g_infodoorScript

MxAtomId* g_infodoorScript
extern

[AI] Script AtomId for the Info Center door logic script.

Definition at line 38 of file scripts.cpp.

◆ g_infomainScript

MxAtomId* g_infomainScript
extern

[AI] Script AtomId for the main Info Center world/event script.

Definition at line 42 of file scripts.cpp.

◆ g_infoscorScript

MxAtomId* g_infoscorScript
extern

[AI] Script AtomId for the Info Center scoring/stat script.

Definition at line 45 of file scripts.cpp.

◆ g_introScript

MxAtomId* g_introScript
extern

[AI] Script AtomId for the game introduction script.

Definition at line 76 of file scripts.cpp.

◆ g_isleScript

MxAtomId* g_isleScript
extern

[AI] Script AtomId for the main island world logic script.

[AI] Script AtomId for the main island world logic script.

[AI] Global script identifier for the main Isle game script resource. [AI]

Definition at line 32 of file scripts.cpp.

◆ g_jetracerScript

MxAtomId* g_jetracerScript
extern

[AI] Script AtomId for a jet racer entity or event.

Definition at line 28 of file scripts.cpp.

◆ g_jetraceScript

MxAtomId* g_jetraceScript
extern

[AI] Script AtomId for jet racing-related scripts.

Definition at line 25 of file scripts.cpp.

◆ g_jetskiScript

MxAtomId* g_jetskiScript
extern

[AI] Script AtomId for the jet ski-related script.

Definition at line 12 of file scripts.cpp.

◆ g_jukeboxScript

MxAtomId* g_jukeboxScript
extern

[AI] Script AtomId for the Jukebox entity/event script.

Definition at line 70 of file scripts.cpp.

◆ g_jukeboxwScript

MxAtomId* g_jukeboxwScript
extern

[AI] Script AtomId for the JukeboxW (alternate or special jukebox) script.

Definition at line 82 of file scripts.cpp.

◆ g_nocdSourceName

MxAtomId* g_nocdSourceName
extern

[AI] AtomId for the NoCD patch/script identifier used for copy protection checks.

Definition at line 91 of file scripts.cpp.

◆ g_policeScript

MxAtomId* g_policeScript
extern

[AI] Script AtomId for the police station script logic.

Definition at line 57 of file scripts.cpp.

◆ g_pz5Script

MxAtomId* g_pz5Script
extern

[AI] Script AtomId for the "PZ5" activity or demo.

Definition at line 73 of file scripts.cpp.

◆ g_racecarScript

MxAtomId* g_racecarScript
extern

[AI] Script AtomId for the build/race car SI file.

Definition at line 15 of file scripts.cpp.

◆ g_regbookScript

MxAtomId* g_regbookScript
extern

[AI] Script AtomId for the registration book script (name entry).

Definition at line 48 of file scripts.cpp.

◆ g_sndAnimScript

MxAtomId* g_sndAnimScript
extern

[AI] Script AtomId for sound animation or related cutscenes.

Definition at line 85 of file scripts.cpp.

◆ g_testScript

MxAtomId* g_testScript
extern

[AI] Script AtomId for test SI data (used in debug/development).

Definition at line 79 of file scripts.cpp.