Special flags

From AGI Wiki

Jump to: navigation, search

Some flags have special meaning to the interpreter:

Flag Name in defines.txt Name in VB Syntax1 Meaning (when set)
0 ego_on_waterEgoOnWaterThis indicates that ego’s baseline (the bottom row of pixels) is completely on water (pixels with a priority of 3)
1 ego_hidden EgoIsHiddenEgo is completely hidden by something else on screen
2 input_received2 InputEnteredInput has been recieved from the player
3 ego_touching_signal_line EgoOnSignalLineAll or part of ego’s baseline (the bottom row of pixels) is touching a signal line (pixels with a priority of 2)
4 input_parsed InputParsedThe input recieved from the player has been parsed (the said command has returned true at some point)
5 new_room NewRoomInitialEntryThis is the the first cycle in a new room
6 game_restarted GameRestartedThis is the first cycle since the game has been restarted
7 script_buffer_blocked ScriptBufferBlockedPrevents the interpreter from writing to the script buffer
8 joystick_sensitivity_set EnableJoystickSensitivityIndicates that v15 specifies the joystick sensitivity
9 sound_on SoundOnThe sound is on
10 trace_enabled DebugModeTrace mode is enabled
11 noise_enabled3 NoiseEnabledThe sound generator outputs the noise channel
12 game_restored GameRestoredThis is the first cycle since a game has been restored
13 inventory_select_enabled InventorySelectEnabledThe player is allowed to select an inventory item in the inventory screen. When the item has been selected, v25 (selected_inventory_item) is set to the number of the item selected (or 255 if ESC is pressed).
14 menu_enabled EnableMenusThe menu is enabled
15 windows_remain MsgWindowRemainWindows created by print and similar commands remain on screen until the close.window command is used. If this flag is not set, the windows remain on screen until the user presses a key or for the time specified by v21 (window_close_time).
16 auto_restart4 AutoRestartrestart.game command automatically restarts game without asking user
20 auto_loop4 AutoLoopfor views with more than 4 loops, the loop is set automatically depending on direction; loop stays fixed if flag not set (this flag only works in version 3.002.102 and above)

1 The VB Syntax is supported by WinAGI but not by AGI Studio

2 In older versions of the AGI Studio Template Game, input_received was misspelled as input_recieved.

3This flag is erroneously referred to as first_logic0_cycle in the AGI Studio template games. WinAGI correctly identifies it by the names given here.

4These flags are not part of the AGI Studio template games, but are recognized by WinAGI as reserved flags.

See Also

Sources

Personal tools