Jump to content

Photo

GB Potion Script


  • Please log in to reply
6 replies to this topic

#1 Jared

Jared

    Deified

  • Members
  • Real Name:Jared
  • Pronouns:He / Him
  • Location:Massachusetts

Posted 22 December 2012 - 01:24 AM

Hi! I want a script that you can attach to items so that it can revive Link when he dies. I'm not exactly sure how I want it done. So, do it any way you like. icon_smile.gif
Thanks so much! I will be used in my quest, just so whoever makes it knows it will not be going to waste.

#2 Soga

Soga

    Secretly Alive

  • Members

Posted 22 December 2012 - 01:40 AM

I actually kind of have been wanting to do something like these for my quest! I might whip one up over the weekend. Do you want a nifty animation or something to go with it? icon_smile.gif

#3 Jared

Jared

    Deified

  • Members
  • Real Name:Jared
  • Pronouns:He / Him
  • Location:Massachusetts

Posted 22 December 2012 - 02:27 AM

An animation like how? :O

#4 Soga

Soga

    Secretly Alive

  • Members

Posted 22 December 2012 - 02:41 AM

Anything, man! Use your imagination, as long as the GB tileset (I'm using EZGBZ 2.5, if you're wondering) can reasonably support it with little to no tile editing.

I can freeze the game while it's doing the reviving animation if that's desired.

#5 MoscowModder

MoscowModder

    Sometimes lurking. Rarely posting.

  • Members
  • Location:Wisconsin

Posted 22 December 2012 - 12:08 PM

I have this one lying around from earlier. Feel free to add more sophistication to it if you like.

CODE
import "std.zh"

const int I_FAIRYRESURRECT = 90; //Item that resurrects you
const int HP_RESURRECT = 64; //HP to resurrect to
const int SFX_FAIRYRESURRECT = 60; //SFX to play

global script fairyRessurect{
    void run(){
        while(true){
            if ( Link->HP <= 0 && Link->Item[I_FAIRYRESURRECT]){
                Game->PlaySound(SFX_FAIRYRESURRECT);
                Link->HP = HP_RESURRECT;
                Link->Item[I_FAIRYRESURRECT] = false;
            }
            Waitframe();
        }
    }
}

  • HavoX likes this

#6 Jared

Jared

    Deified

  • Members
  • Real Name:Jared
  • Pronouns:He / Him
  • Location:Massachusetts

Posted 22 December 2012 - 01:32 PM

Soga, that'd be amazing! I didn't think it was possible for some reason. Maybe the music stops, an animation plays (With an SFX like aLttP), Link falls to the ground, a sound effect plays, and Link is revived? And then the music starts back up?

#7 Soga

Soga

    Secretly Alive

  • Members

Posted 23 December 2012 - 06:25 PM

The script is mostly done. Sent you a PM, Jared.


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users