A way to use a script to help with repeated route movements?

Adira

Golden fur among the shadows.
Veteran
Joined
Nov 21, 2014
Messages
84
Reaction score
97
First Language
English
Primarily Uses
RMMZ
Instead of clicking 'move right' 13 times, for each event, is there a script I can use to move a character or event to the right 13 times? Ahh, I'm sorry for explaining poorly, I'll use pictures because they help me better.

Halpme_number99.png
 

BTJanuary

Villager
Member
Joined
Mar 18, 2023
Messages
7
Reaction score
0
First Language
Vietnamese
Primarily Uses
RMMV
i suppose you can do a simple for loop like this (replace "id" with the actual event id):
for (let i = 0; i <14; i++) { $gameMap.event(id).moveStraight(6); //6 means move right }
there might be a better way lol, but that's something to work with for now!

There is also this spreadsheet of a bunch of command in RMMV and RMMZ. Hopefully this can help ^^!
 

Shaz

Keeper of the Nuts
Global Mod
Joined
Mar 2, 2012
Messages
46,022
Reaction score
16,837
First Language
English
Primarily Uses
RMMV
The above won't work, as only the last one applied will be saved. If you want to make an event move multiple times, you have to create a move route.
 

Adira

Golden fur among the shadows.
Veteran
Joined
Nov 21, 2014
Messages
84
Reaction score
97
First Language
English
Primarily Uses
RMMZ
Thank you both for your help. I'll wait a bit more to see if anyone has any other help. I was hoping there was an easier way instead of having to click move right 13 times. Someone helped me before by showing me how I could have lots of events activate through easy scripting. And I'm hoping the same can be said about this with just the right script. I'll show you why I need this!

c6dee2377546313233e64b98adb1b4886e8cd8c9.gifv


I need to add a lot more stuff, so I was hoping for a quicker way of doing so by cutting the move route work down. (✿◡‿◡)
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
23,597
Reaction score
13,392
First Language
English
Primarily Uses
RMMZ
You don't need a route move command for that. Instead
Parallax background, set to scroll left to right more slowly than the player.
2nd parallax of the 'road' set to scroll left to right more quickly than the first one. Just have the road surface and a few trees here and there.
Set the sprites to face left with both the walking animation and stepping animation boxes ticked.

Now they will walk endlessly.
 

Brogar

Villager
Member
Joined
Feb 16, 2017
Messages
29
Reaction score
16
First Language
German
Primarily Uses
RMMV
Yanfly had a plugin for that for MV (lets you use a plugin command to move to a specific place, automatically going around obstacles), i think it went into visustella events and movement core for MZ
 

Adira

Golden fur among the shadows.
Veteran
Joined
Nov 21, 2014
Messages
84
Reaction score
97
First Language
English
Primarily Uses
RMMZ
Oh no! I forgot to mention! This game is a no plugin or parallax editing allowed game! I'm doing this project with my best friend (she's doing her own project the same way). We are only allowed to use what the game comes with no add-ons. I do know that there are some great plugins that could be used to make this process easier. Thank you guys so much for all of your support in the end I just did the painstaking work of 20+ move right commands, haha. Here is the final product. ♥

0749d04cca393ce2dfe654d0d2663b74823af810.gifv
 

Brogar

Villager
Member
Joined
Feb 16, 2017
Messages
29
Reaction score
16
First Language
German
Primarily Uses
RMMV
Ok with that constraint, i tested and found a way with a loop like BTJanuary suggested, just not using a script...

2023-04-01 05_29_48-ID_003 - Event Editor.png
I had placed my event left on the map, so i had to move it right... Maybe you can use it somewhere else
 

Latest Threads

Latest Profile Posts

imgur sure is getting weird, one day I lose gradually all my images, the other I get them back randomly and then again they disappear again.
Despite OPT2 praise it still has some strange stories in it. Lady Mikka is trying to work herself to death because of guilt. Guilt over what? ¯\_(ツ)_/¯ So instead of finding a NPC to have a heart to heart with her they decide the cure is a new kimono. So when she drops dead she'll at least be well dressed. I haven't even got to the strange part yet.
Did so much work on the game today. I wish I could post it all in this status update but there is a character limit of course haha. I thought about making a topic for updates, though... maybe.
The most recent sign that I am old. I have done martial arts for over 4 decades. Never HAD to stretch out. Good, of course, but never required. Was doing some kicks in the kitchen because, why not, and I felt a pop in the back of my thigh. Now I am limping around. Gotta love getting old.
One of the biggest perks of being fluent in English is how many new and interesting recipes I am able to find and try out that I would have hardly come across if I just spoke my mothertounge :3

Forum statistics

Threads
131,683
Messages
1,222,232
Members
173,435
Latest member
TheAmplifier
Top