Thanks so much! I will be used in my quest, just so whoever makes it knows it will not be going to waste.
GB Potion Script
Started by
Jared
, Dec 22 2012 01:24 AM
6 replies to this topic
#1
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. 
Thanks so much! I will be used in my quest, just so whoever makes it knows it will not be going to waste.
Thanks so much! I will be used in my quest, just so whoever makes it knows it will not be going to waste.
#2
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?
#3
Posted 22 December 2012 - 02:27 AM
An animation like how? :O
#4
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.
I can freeze the game while it's doing the reviving animation if that's desired.
#5
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();
}
}
}
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
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
Posted 23 December 2012 - 06:25 PM
The script is mostly done. Sent you a PM, Jared.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users

