How Do You Call a Script

I'm fairly new to Ruby scripting and have run into a bit of a hiccup.
how_to_poke.PNG

How do you make an event call poke_it? I'm specifically trying to call it from within a movement route.
Moved to: Learning Ruby and RGSSx

Assuming you are adding commands to the event that you want to "poke it", you just do a Script Call (tab 3 of event commands) with poke_it as the command.
Assuming you are adding commands to the event that you want to "poke it", you just do a Script Call (tab 3 of event commands) with poke_it as the command.
......... oh.
Thank you!
sorry - I didn't see the text below your picture. You can put poke_it into a Script Call in the Move Route as well.

Are you doing the move route on the event, or on the player (in the Move Route drop-down list where it lists all the events)?
Are you doing the move route on the event, or on the player (in the Move Route drop-down list where it lists all the events)?
On an event.
sorry - I didn't see the text below your picture. You can put poke_it into a Script Call in the Move Route as well.
It's fine; calling it in the move route doesn't appear to crash anything.
Thread closed

Original thread: https://forums.rpgmakerweb.com/threads/how-do-you-call-a-script.131737/