Difference between revisions of "AGIWiki/Special variables"
< AGIWiki
m |
m |
||
(One intermediate revision by the same user not shown) | |||
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 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) |
Latest revision as of 19:20, 23 February 2016
Some variables have special meaning to the interpreter:
See also
Sources
- AGI Studio help file