Oohh... huh. I was hoping to avoid having to check for diagonals... Hmm, let me think on this...
There is a thread subscription option. I'll send you a PM once, if/when I update the script.
Printable View
It doesn't work!
Quote:
Originally Posted by Compile Progress
Ah, cripes. My bad, I forgot a } in the code block. Try it now.
Still doesn't work.
Did you recopy the script? Or, add the } at the end? I know for a fact this script works.
Well apparently, you have to put all the scripts in one file. (Which I didn't know.)
pkmnfrk, when going on the ladder with flag 98's for that sideview ladder script while Link has the Hover Boots item, as he goes up, the Hover Boots takes effect repeatedly. As he goes down, he acts flickering funny. Can you add to your script that prohibits the use of Hover Boots when Link is on Flag 98?
Yes, I can. But, I just thought about it, and there isn't really any foolproof method of ensuring that Link has the hover boots when he leaves the screen. Consider this:
This code works great as long as Link is on the screen. And, heck, if he leaves the screen while not on a ladder. However, if he leaves via a warp on a ladder (a very common thing one would do), then the last thing it would do is take away his boots, and then the script dies!Code:bool hashover;
hashover = Link->Item[I_HOVERBOOTS];
while(true) {
//...
if(this combo is 98)
Link->Item[I_HOVERBOOTS] = false;
else
Link->Item[I_HOVERBOOTS] = hashover;
Waitframe();
}
The only thing I can suggest is disabling the hoverboots on screens with ladders, OR waiting until 2.5+ to get real ladders.
Or putting flag 98 and that script around the warp destination?
No, that wouldn't work. Look again at my code. It records whether Link has the hover boots or not, and then goes on. In the loop, if Link's on a ladder, it takes away the hover boots. Otherwise, it gives him <whether or not he had them when the loop started>.
So, if he warps away while on a ladder, he won't have the boots. Then, the next copy of th script will check, and see that he doesn't have the boots. Then, it'll give him either no boots, or no boots. Which is the problem.
Now, that said, I suppose I could make this into a global script, which doesn't die with a screen. Let me work on that for a bit...