Difference between revisions of "Groovie/11H/Script Variables"
< Groovie
Jump to navigation
Jump to search
(script filename descriptions) |
(→Variables: riddle variable) |
||
(One intermediate revision by the same user not shown) | |||
Line 21: | Line 21: | ||
| Which chapter the player is in | | Which chapter the player is in | ||
| a value from 1 to 5 | | a value from 1 to 5 | ||
|- | |||
|0x090 | |||
| Current riddle in the chapter | |||
| chapter 1 riddle 1 is tonic water, chapter 3 riddle 9 is gardenia, 49 is rose... | |||
|- | |- | ||
|0x091 | |0x091 | ||
Line 33: | Line 37: | ||
| Something important | | Something important | ||
| Only used in script.grv and tx.grv (triangle/centaur puzzle) | | Only used in script.grv and tx.grv (triangle/centaur puzzle) | ||
|- | |||
|0x0C2-0x0C4 | |||
| open house mode / Pente difficulty | |||
| script.grv uses them like they're 1 bit each, as a 3 bit uint, incremented each time you beat the game | |||
|- | |- | ||
|0x0E9 to 0x0FB | |0x0E9 to 0x0FB |
Latest revision as of 10:50, 9 April 2023
Variables
Variable | Meaning | Used |
---|---|---|
0x000-0x009 | (boolean) Savegame available | Set by opcode 0x3C (check valid saves). |
0x08C & 0x08D | Which room the character is in | |
0x08E | Which scene/orientation the character is in | |
0x08F | Which chapter the player is in | a value from 1 to 5 |
0x090 | Current riddle in the chapter | chapter 1 riddle 1 is tonic water, chapter 3 riddle 9 is gardenia, 49 is rose... |
0x091 | GameBook notification | 1 = show blue circles |
0x0B4 | Set to 1 when Samantha makes a move | Used by all the AI puzzles (AL, BS, HS, TB, and TX) except for PT (pente) because Samantha can't make a move there. Set to 1 in script.grv |
0x0BF | Something important | Only used in script.grv and tx.grv (triangle/centaur puzzle) |
0x0C2-0x0C4 | open house mode / Pente difficulty | script.grv uses them like they're 1 bit each, as a 3 bit uint, incremented each time you beat the game |
0x0E9 to 0x0FB | Maybe puzzle completion | 5=solved, 0=unsolved |
0x100 | Audio driver: 1 = GM, 2 = MT32 | Has to be set from the game options. Shows a "loading roland / general midi driver" video at the start and probably sends sysexes while playing it |
0x102 | Return value of functions | Set by opcode 0x17 (return) |
0x103 | Timer | Incremented regularly (while idling) although can be "seeded" as such by the script |
0x104 | Number of available savegames | Set by opcode 0x3C (check valid saves). Enables the "load" option in the main menu if it's different than 0 |
0x106 | Current CD: -1=none, 0=all, 1, 2 | Set by opcode 0x4C (getcd). Shows the screen asking for a CD |
Script Files
Script .grv | Description |
---|---|
al | mouse trap |
bc | books |
bs | modern art |
cd | dice |
cr | cash register |
fs | spiders |
hs | beehive |
itsawrap | credits |
km | knights |
kp | kitchen plates |
makingof | making of videos |
mh | furniture |
nc | pool balls |
nk | jewelry |
pt | pente |
rr | train |
script | main script, also handles the GameBook |
sm | mirror |
sw | bishops |
tb | trilobyte cake |
trailer | Clandestiny trailer video |
tx | triangle centaur |
wl | unintentionally straightforward |