Difference between revisions of "Get game version"
From Unofficial QEdit Wiki Guide
(→Example) |
(→Use) |
||
(3 intermediate revisions by one other user not shown) | |||
Line 6: | Line 6: | ||
==Use== | ==Use== | ||
Get the version code of the game. | Get the version code of the game. | ||
− | 1 = v1 | + | * 1 = v1 |
− | 2 = v2 | + | * 2 = v2 |
− | 3 = | + | * 3 = Gamecube |
− | 4 = Blue Burst | + | * 4 = Blue Burst & Xbox |
==Example== | ==Example== | ||
Line 22: | Line 22: | ||
==Also see== | ==Also see== | ||
− | + | [[QEXIT]], [[window_msg]], [[ret]], [[jmpuexe|jmp_!=]] |
Latest revision as of 00:32, 8 December 2023
Contents
Syntax
Syntax: get_game_version register1
- register1 = Output register to store the game version in.
Use
Get the version code of the game.
- 1 = v1
- 2 = v2
- 3 = Gamecube
- 4 = Blue Burst & Xbox
Example
100: get_game_version R1 //Put the version code in R1
jmpi_!= R1, 0000004, 110 //Jump to 110 if we aren't playing on Blue Burst
ret
110: window_msg 'You can only play this quest on Blue Burst'
QEXIT
ret
Also see
QEXIT, window_msg, ret, jmp_!=