Set slot invincible

From Unofficial QEdit Wiki Guide
Jump to: navigation, search


Syntax: set_slot_invincible register1, register2

  • register1 = Reserved register 250 for players slot number.
  • register2 = Register to act as on off switch for player invincibility.


Makes players invincible.


1:       ret 
100:     get_slotnumber R250 //gets the players slot number and stores it in register 250.
         leti R70, 00000001 //Makes register 70 equal 00000001. (On switch for players invincible.)
         thread 101 //Threads function 101.
101:     sync  //Waits 1 frame.
         jmpi_= R70, 00000000, 1 //If register 70 equal 00000000 jump to function 1.
         set_slot_invincible R250, R70 //If register 70 equals 00000001 make all players invincible.
         jmp 101 //Jumps to function 101.
102:     leti R70, 0000000 //Makes register 70 equal 00000000. (Off switch for players invincible.)

Also see

ret, get_slotnumber, leti,

thread, sync, jmpi_=, jmp,