Barebones function 216

From Unofficial QEdit Wiki Guide
Jump to: navigation, search

Barebones function 216

Function 216: 216:

  • Function 216 = Used to start the player invincibility / blessing countdown timer.

Start the player invincibility / blessing countdown timer

Barebones function 216 = Function 216 is used as an example to start the player invincibility / blessing countdown timer. It may be called from a 2nd timer to turn invincibility on and off at different intervals, or just called once to let it run for 30 seconds.

Use

Function 216 is used as an example to start the player invincibility / blessing countdown timer. It may be called from a 2nd timer to turn invincibility on and off at different intervals, or just called once to let it run for 30 seconds.

How the function appears in the script


216:     leti R70, 00000001 //Makes register 70 equal 1 allowing for the invincible / blessing to be active.
         leti R72, 0000001E //Makes register 72 equal 0000001E (30 seconds) time to allow the invincibility / blessing to run.
         call 210 //Calls function 210.
         ret 

Also see

leti, call, ret, Barebones function 210