Difference between revisions of "AGIWiki/Special variables"
< AGIWiki
Jump to navigation
Jump to search
m (moved AGIWik/Special variables to AGIWiki/Special variables) |
m |
||
(6 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
Some [[AGIWiki/Variable|variables]] have special meaning to the [[AGIWiki/Interpreter|interpreter]]<nowiki>: </nowiki> | Some [[AGIWiki/Variable|variables]] have special meaning to the [[AGIWiki/Interpreter|interpreter]]<nowiki>: </nowiki> | ||
{| style="border: | {| border="1" cellpadding="5" cellspacing="5" style="border-collapse: collapse; border-style: hidden; text-align: left; " | ||
|- style="background: #ececec" | |- style="background: #ececec" | ||
! Var | ! Var | ||
Line 18: | Line 18: | ||
| <code>prev_room_no</code> | | <code>prev_room_no</code> | ||
| Number of the previous room | | Number of the previous room | ||
|- | |- valign = "top" | ||
| v2 | | v2 | ||
| <code>ego_edge_code</code> | | <code>ego_edge_code</code> | ||
| | | Which [[AGIWiki/Screen edges|edge of the screen]] [[AGIWiki/Ego|ego]] is touching | ||
Which [[AGIWiki/Screen edges|edge of the screen]] [[AGIWiki/Ego|ego]] is touching | |||
* 0 = not touching edge | * 0 = not touching edge | ||
Line 117: | Line 116: | ||
|- | |- | ||
| v24 | | v24 | ||
| | | <code>input_line_character_max</code> | ||
| Specifies the maximum number of characters that the player may enter on the input line. Defaults to 41. | | Specifies the maximum number of characters that the player may enter on the input line. Defaults to 41. | ||
|- | |- | ||
Line 123: | Line 122: | ||
| <code>selected_inventory_item</code> | | <code>selected_inventory_item</code> | ||
| If the player has selected an inventory item from the inventory screen, this is set to the number of that item (or 255 if ESC was pressed) | | If the player has selected an inventory item from the inventory screen, this is set to the number of that item (or 255 if ESC was pressed) | ||
|- | |- valign = "top" | ||
| v26 | | v26 | ||
| <code>video_mode</code> | | <code>video_mode</code> | ||
| | | Video mode: | ||
Video mode: | |||
* 0 = CGA (black-cyan-magenta-white CGA palette)(see note) | * 0 = CGA (black-cyan-magenta-white CGA palette)(see note) | ||
Line 146: | Line 144: | ||
* [[AGIWiki/AGI Studio|AGI Studio]] help file | * [[AGIWiki/AGI Studio|AGI Studio]] help file | ||
== Data types == | |||
{{AGIWiki/Data types}} |
Latest revision as of 19:20, 23 February 2016
Some variables have special meaning to the interpreter:
See also
Sources
- AGI Studio help file