Difference between revisions of "AGIWiki/Special variables"

Jump to navigation Jump to search
m
no edit summary
m
m
 
(3 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: gray solid 1px; border-collapse: collapse; text-align: left" width="100%" border="1" cellspacing="5" cellpadding="5"
{| 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
| (not defined)
| <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)
885

edits

Navigation menu