Skip to content

Latest commit

 

History

History
137 lines (133 loc) · 7.05 KB

gamevars.md

File metadata and controls

137 lines (133 loc) · 7.05 KB

Game Variables

Description

The game variables are used throughout the scripts and they are a way to directly manipulate and change variables inside the game. Many of the variables are pointers to important objects in the game's memory such as the selceted character, scene, script etc..

Its important to remember that these variables are essential for the game to function properly.

If one of the values is not something the game allows, it might produce an unexpected result or might even crash.

Var Name Length in bytes References
script_trigger 28 0
CURRENT_LEVEL 4 46
CURRENT_SCENE 4 46
CURSOR_X 4 0
CURSOR_Y 4 0
MOUSE_X 4 0
MOUSE_Y 4 0
GLOBAL_ABILITY 4 0
RENDER_CHARS 4 0
RENDER_SPEED 4 0
RENDER_FORCE 4 0
RENDER_PATH 4 0
RENDER_CLICKFACE 4 0
ENEMY_FOLLOW_TARGETS 4 0
LEFT_HANDED_MOUSE 4 0
SOUND_EVENT_LIST 4 1
general_movement_anims_table_p 4 1
override_attack_anims_table 4 59
override_movement_anims_table 4 126
global_inventory_p 4 164
COMMAND_COMPLETION 4 0
PRE_CACHE 4 0
alpha_map_data 4 1
SMACKER_X 4 318
SMACKER_Y 4 318
global_selected_weapon 4 92
global_behavior 4 0
level_scene_names_pp 4 1
STATE_OVERRIDE 4 0
texture_line_data 4 1
scene_counter 4 207
INPUT_CONTROL_SYSTEM 4 0
CLICKED_DOOR 4 40
clicked_character 4 58
handle_names_p 4 1
item_table 4 1
number_of_items_in_item_table 4 0
horn_blow_enemy_min 4 0
script_object 4 770
tricode_names_pp 4 1
global_zone_type 4 50
room_monster_percent 4 1
door_key_table_p 4 1
door_restriction_p 4 17
global_selected_shield 4 0
DISABLE_AI 4 0
RENDER_SENSE 4 0
compile_init_character 4 88
scroll_x_shake 4 12
no_inventory 4 0
universal_inventory_p 4 1
ammo_list_p 4 1
play_sting 4 3
play_battle_music 4 1
pnc_look_use_mask 4 15
time 4 40
disable_scroll 4 4
area_fire_fx_scripts 4 1
area_lightning_fx_scripts 4 1
area_earth_fx_scripts 4 1
area_acid_fx_scripts 4 1
area_ice_fx_scripts 4 1
area_light_fx_scripts 4 1
extra_templates 4 1
magic_upgrade_data 4 1
char_gen_fx_scripts 4 81
max_general_char_sound_events 4 1
override_sound_event_list 4 1
global_collision_type 4 15
control_char_p 4 207
attack_anims_table_pp 4 1
character_templates_pp 4 1
misc_fx_scripts 4 59
damage_table_pp 4 1
gib_override_table_pp 4 1
global_exit_door 4 7
map_locations_p 4 1
collected_map_p 4 1
open_all_doors 4 1
char_override_names_pp 4 1
items_bought 4 3
potion_upgrade_data 4 1
saved_games_count 4 95
scroll_y_shake 4 2
chronicler_variation 4 426
MovieActive 4 0
current_menu_level_p 4 0
gPlayOutro 4 2
valid_hero_list_p 4 1
zone_under_mouse_type 4 5
outro_active 4 3
magic_orb_experience_p 4 1
script_time 4 581
accel_window_width 4 1
no_user_input 4 6
collected_arrows_p 4 1
collected_fire_arrows_p 4 1
left_handed 4 7
use_mouse_override_sprite 4 10
items_in_drag_box 4 3
master 4 0
changed_scene_via_map 4 2
allocated_slot_adjustment 4 0
character_stats_p 220 0
character_combat_p 60 0
character_movement_p 252 0
character_misc_p 4 1
object_p 32 0
level_info_p 8 0
scene_info_p 60 0
character_ai_data_p 4 0
smack_object_p 32 0
psys_p 4 0
chr_body_p 24 0
STRENGTH 4 183
DEXTERITY 4 197
RANGED 4 179
WISDOM 4 179
CONSTITUTION 4 179
HP 4 241
MAGIC 4 180
ARMOUR_CLASS 4 183
LEVEL 4 194
room_state 4 1670
is_room_cleared 4 445