Floor player detect
From Unofficial QEdit Wiki Guide
This opcode is misnamed. The opcode is actually detecting which players exist in the game currently. To figure out which floor number a player is on, see get_floor_number.
Contents
Syntax
Syntax: floor_player_detect register1
- register1 = Start of continuous registers.
4 registers
1st register = Red gem.
2nd register = Green gem.
3rd register = Yellow gem.
4th register = Blue gem.
Values.
00000000 = Player does not exist in the game.
00000001 = Player does exist in the game.
Use
Used to set a register based on the players slot number if a player exists in the game.
Example
100: thread_stg 101 //Threads function 101 for as long as you are on the current floor.
ret
101: sync //Waits 1 frame.
floor_player_detect R1
jmp 101 //Jumps to function 101.
Also see
thread_stg, ret, sync, jmp,