Press "A" to Heal Script.
#1
Posted 18 January 2009 - 09:05 PM
~Thanks!
#2
Posted 18 January 2009 - 10:11 PM
void run(int m) {
while(true) {
while(Link->X < this->X - 8 || Link->X > this->X + 24 || Link->Y < this->Y || Link->Y > this->Y + 24 || Link->Dir != DIR_UP || !Link->InputA) {
Waitframe();
}
Link->InputA = false;
Link->HP = Link->MaxHP; Screen->Message(m);
while(Link->X >= this->X - 8 && Link->X <= this->X + 24 && Link->Y >= this->Y && Link->Y <= this->Y + 24 && Link->Dir == DIR_UP) {
Waitframe();
}
Screen->Message(0);
}
}
}
It's just a slight edit of the signpost, that should heal you completely. You can even still have the message if you want.
Edited by Lithium, 18 January 2009 - 10:15 PM.
#3
Posted 19 January 2009 - 02:56 AM
you want an ffc script in which when you press "A", The Fairy flag activates which gives the heart animations circle around link and heals him correct?
#4
Posted 19 January 2009 - 08:49 AM
#5
Posted 19 January 2009 - 05:07 PM
import "std.zh"
ffc script InputFairy{
void run(){
bool notfairy;
while(true){
if(Link->X==this->X&&Link->Y==this->Y+16&&Link->InputA==true&¬fairy==false){
Waitframe();
Link->InputA=false;
Screen->ComboF[ComboAt(Link->X,Link->Y]=CF_FAIRY;
}
if(Link->HP==Link->MaxHP)notfairy=true;
if(Link->HP<Link->MaxHP)notfairy=false;
Waitframe();
}
}
}
Edited by lucas92, 19 January 2009 - 06:44 PM.
#6
Posted 20 January 2009 - 07:03 AM
import "std.zh"
ffc script InputFairy{
void run(){
bool notfairy;
while(true){
if(Link->X==this->X&&Link->Y==this->Y+16&&Link->InputA==true&¬fairy==false){
Waitframe();
Link->InputA=false;
Screen->ComboF[ComboAt(Link->X,Link->Y]=CF_FAIRY;
}
if(Link->HP==Link->MaxHP)notfairy=true;
if(Link->HP<Link->MaxHP)notfairy=false;
Waitframe();
}
}
}
It doesn't work. All it does is make the FFC act like a Fairy Flag when standing on it.
#7
Posted 20 January 2009 - 05:27 PM
I thought you wanted a script that when you press A in front of the FFC it would activate the fairy?
#8
Posted 20 January 2009 - 06:12 PM
Edited by Dawnlight, 20 January 2009 - 06:13 PM.
#9
Posted 20 January 2009 - 09:55 PM
you're telling the script to have link step on the x and y coordinate to activate the flag.
Edited by Christian, 20 January 2009 - 10:00 PM.
#10
Posted 21 January 2009 - 03:35 PM
Christian:
if(Link->X==this->X&&Link->Y==this->Y+16&&Link->InputA==true&¬fairy==false){
Waitframe();
Link->InputA=false;
Screen->ComboF[ComboAt(Link->X,Link->Y]=CF_FAIRY;
}
That one instruction only apply if Link is in front of the ffc and do press A... But it seems that the conditions are ignored.
Maybe Joe123 or more advanced scripters than me could get you the code to work. At least I've tried to get the script to work...
#11
Posted 22 January 2009 - 05:21 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users