Difference between revisions of "Groovie/T7G/Script Variables"
< Groovie
Jump to navigation
Jump to search
m (Fix some line jumps) |
(T7G variables found in 25th Annv code https://github.com/Die4Ever/scummvm/blob/t7g25thAnnv/engines/groovie/script.cpp#L65-L94) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 5: | Line 5: | ||
! Used | ! Used | ||
|- | |- | ||
| | | 0x000-0x009 | ||
| (boolean) Savegame available | | (boolean) Savegame available | ||
| Set by opcode 0x3C (check valid saves). | | Set by opcode 0x3C (check valid saves). | ||
|- | |- | ||
| | |0x08C & 0x08D | ||
| Indicate which room the character is in | | Indicate which room the character is in | ||
| | | | ||
|- | |- | ||
| | |0x0E7-0x0FB | ||
| Puzzles solved | |||
| value 0x31 for solved | |||
|- | |||
|0x100 | |||
| Audio driver: 1 = GM, 2 = MT32 | | 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 | | 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 | | Return value of functions | ||
| Set by opcode 0x17 (return) | | 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 | | 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 | | 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 | | Current CD: -1=none, 0=all, 1, 2 | ||
| Set by opcode 0x4C (getcd). Shows the screen asking for a CD | | Set by opcode 0x4C (getcd). Shows the screen asking for a CD | ||
|- | |||
|0x107 | |||
| Open House | |||
| 0x31 = disabled, 0xF0 = enabled | |||
|} | |} |
Latest revision as of 04:39, 31 December 2021
Variable | Meaning | Used |
---|---|---|
0x000-0x009 | (boolean) Savegame available | Set by opcode 0x3C (check valid saves). |
0x08C & 0x08D | Indicate which room the character is in | |
0x0E7-0x0FB | Puzzles solved | value 0x31 for solved |
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 |
0x107 | Open House | 0x31 = disabled, 0xF0 = enabled |