I need a simple script. I am trying to make it, but it involves the use of a general purpose script flag and I don't know what function for it.
Here is what I did so far:
ffc script prohibitupdownbtn{
void run(){
while (true){
Link->InputUp = false;
Link->InputDown = false;
Waitframe();
}
}
}
When Link steps on the flag that has that script, it disables particular buttons. [SIZE="1"]The reason I need the script because when combining the Sideview Ladder with the Climbing and the quest is using Diagonal movement, there is a bug in gameplay. When pressing up/left or up/right near the ladder, Link moves down in to the solid and gets compeletely stuck. I want to avoid that bug with the script I am requesting.[/SIZE]
Anything I am missing in the script I am trying to make?
Well yeah, you might want something to actually reference the flag...
const int flag = 99; //Set the flag you want to use hereffc script prohibitupdownbtn{
void run(){
while(true){
if(Screen->ComboF[ComboAt(Link->X,Link->Y)] == flag || Screen->ComboI[ComboAt(Link->X,Link->Y)] == flag){
Link->InputUp = false;
Link->InputDown = false;
}
Waitframe();
}
}
}
Okay, thanks.
I'll see if I can learn from that and how it works.
[size="1"]As of now, lucky 777 posts, but it could be a short while.[/size]
Umm, it works like it should, but the effect of the script is not completely centered on the flag.
The effect is 8 pixels to the right of the flag.
const int flag = 99; //Set the flag you want to use hereffc script prohibitupdownbtn{
void run(){
while(true){
if(Screen->ComboF[ComboAt(Link->X+8,Link->Y+8)] == flag || Screen->ComboI[ComboAt(Link->X+8,Link->Y+8)] == flag){
Link->InputUp = false;
Link->InputDown = false;
}
Waitframe();
}
}
}
Now I don't actually need it anymore, but it can be useful to anyone (can be edited to make other buttons useless, use it in particular places). Thanks again for the help anyways. 😊 [hr]1[/hr](Even when it is centered on the flag, I can still make Link get stuck on a sideview climbing ladder (scripts attached). I found the best solution, I placed a solid (non-walk) conveyor up combo below the ladder. That way, Link will never get stuck, but vibrate himself. Only applies to diagonal movements.)
Heh, no problem.
Took about 2 minutes.