Edited by blackbishop89, 18 August 2011 - 10:48 PM.
Hurt Timer
Started by
Mero
, Aug 18 2011 10:41 PM
1 reply to this topic
#1
Posted 18 August 2011 - 10:41 PM
Normally when Link gets hurt, he flashes and becomes invulnerable for X frames. I need code to simulate a check to see if he just got hurt basically. It can be a timer if you want, the question is how do we go about checking it. Because unlike with enemies his life goes up and down.
- Yuuki likes this
#2
Posted 19 March 2024 - 04:02 PM
This kind of works for me when I assign it to the onF6Menu slot:
#include "std.zh" global script ifJustGotHurtThenHeal { void run() { if(Link->Action == LA_GOTHURTLAND){ Link->HP = Link->MaxHP; } } }
Script doesn't seem to apply for the entire during Link is flashing; the heal only happens if you press F6 immediately after taking damage.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users