Add damage to?

From Unofficial QEdit Wiki Guide
Jump to: navigation, search

Syntax

Syntax: add_damage_to? register, xxxxxxxx

  • register = Reserved register 250 player slot number to add damage to.
  • xxxxxxxx = xxxxxxxx amount of damage to add.

Use

Used to reduce the hit points of players.

Example


100:     get_slotnumber R250 //Gets the slot number of the players and stores it in register 250.
         add_damage_to? R250, 00000064 //Deals 100 hit point damage to the player who encounters this op code in the script.
         ret 

Also see

get_slotnumber, ret reservedregisters