Difference between revisions of "Get number of player1"

From Unofficial QEdit Wiki Guide
Jump to: navigation, search
 
 
Line 8: Line 8:
 
If 1 player is in the room the register used will equal 00000001.
 
If 1 player is in the room the register used will equal 00000001.
  
If 2 player is in the room the register used will equal 00000002.
+
If 2 players are in the room the register used will equal 00000002.
  
If 3 player is in the room the register used will equal 00000003.
+
If 3 players are in the room the register used will equal 00000003.
  
If 4 player is in the room the register used will equal 00000004.
+
If 4 players are in the room the register used will equal 00000004.
  
 
==Use==
 
==Use==

Latest revision as of 09:23, 30 April 2013

Syntax

Syntax: get_number_of_player1 register

  • register = Register to store the number of players in the room when the op code is encountered.

Possible values of the register used.

If 1 player is in the room the register used will equal 00000001.

If 2 players are in the room the register used will equal 00000002.

If 3 players are in the room the register used will equal 00000003.

If 4 players are in the room the register used will equal 00000004.

Use

Used to sore the number of players in the room.

Example


100:     get_number_of_player1 R1 //Stores the number of players in the room in register 1 when the op code is encountered.
         ret 

Also see

ret