Difference between revisions of "Get game version"

From Unofficial QEdit Wiki Guide
Jump to: navigation, search
(Created page with "==Syntax== ''Syntax:'' <span style='font-size:12px;font-family:courier'><span style='color:green'>get_game_version </span>register1</span> * register1 = Output register to st...")
 
(Example)
Line 13: Line 13:
 
==Example==
 
==Example==
 
  <span style='font-size:12px;font-family:courier'>
 
  <span style='font-size:12px;font-family:courier'>
  <span style='color:blue'>100:    </span><span style='color:green'>get_game_version </span>R1 <span style='color:orange'>   //Put the version code in R1</span>
+
  <span style='color:blue'>100:    </span><span style='color:green'>get_game_version </span>R1 <span style='color:orange'>     //Put the version code in R1</span>
 
  <span style='color:green'>        jmpi_!=</span> R1, 0000004, 110 <span style='color:orange'>//Jump to 110 if we aren't playing on Blue Burst
 
  <span style='color:green'>        jmpi_!=</span> R1, 0000004, 110 <span style='color:orange'>//Jump to 110 if we aren't playing on Blue Burst
 
  <span style='color:green'>        ret </span>
 
  <span style='color:green'>        ret </span>

Revision as of 01:56, 28 September 2018

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 = Xbox or Gamecube 4 = Blue Burst

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

List of OP Codes used in example.