Get player hp

From Unofficial QEdit Wiki Guide
Revision as of 06:53, 3 May 2013 by Japanaman2 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Syntax

Syntax: get_player_hp register1, register2

  • register1 = Reserved register 250 for player slot number.
  • register2 = Start of continuous registers.

4 registers.

First register = Stores players maximum HP.

Second register = Stores players current HP.

Third register = Stores players maximum TP.

Fourth register = Stores players current TP.


Use

Used to monitor the players maximum hp, current hp, maximum tp, and current tp.

Example


100:     get_slotnumber R250 //Gets the players slot number and stores it in register 250.
         thread 101 //Threads function 101.
         ret 
101:     sync  //Waits 1 frame.
         get_player_hp R250, R1 //Stores the players maximum hp in register 1, current hp in register 2, maximum tp in register 3, and current tp in register 4.
         jmp 101 //Jumps to function 101.

Also see

get_slotnumber, thread, ret,

sync, jmp