Custom Evented Hookshot Help

Hi everyone!

I was having problems finding a current hookshot plugin (an item from Legend of Zelda) so I decided to event my own. I have a lot of individual pieces working but am having trouble getting one of the script calls right. I am using Yanfly's Event Spawner plugin combined with Shaz's Custom Move Route plugin.

What I'm doing is spawning in an event that's an aiming cursor, locking the player movement, and letting the player move the cursor over an event that can be used with the hookshot. When the cursor is over the the hookshot-able event and the player presses OK, it unlocks the player movement, and moves the player to a set of coordinates.

However, I can't seem to get the conditional branch script that checks to see if the cursor is over the hookshot-able event right. I think it needs to be in a script format because I need to reference the spawned event via script. Here's the whole event:

Spoiler: Hookshot Event
Forum_Post.png

I have confirmed everything works up to and including the Map ID branch (deleted everything under it and tested it with a message box). If anyone has an idea on what to do, that would be amazing.


Thanks! 🙂
You are despawning the cursor event, before comparing it's x & y values with the other event's x & y? That would not work, I think.
You are despawning the cursor event, before comparing it's x & y values with the other event's x & y? That would not work, I think.
Oh, right. That's an obvious problem. I do a lot of work during lunch at work or at home at the end of the day, that would explain me missing that. I'll change where it despawns and test from there.

Thanks for the second set of eyes!

Yep. That was it. Moved the despawn script call to completely after the Map ID conditional branch. Thanks again for the extra eyes!
This thread is being closed due to being solved. If you need it reopened, report it to let us know why. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/custom-evented-hookshot-help.163119/