Jump to content

Photo

Hurt Timer


  • Please log in to reply
1 reply to this topic

#1 Mero

Mero

    Touch Fluffy Tail

  • Banned
  • Real Name:Tamamo No Mae
  • Location:Rainbow Factory

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.

Edited by blackbishop89, 18 August 2011 - 10:48 PM.

  • Yuuki likes this

#2 Yuuki

Yuuki

    Recipient of Ways

  • Members
  • Pronouns:She / Her

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