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,045
Reaction score
16,852
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,606
Reaction score
13,406
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 Posts

Latest Profile Posts

World building was one of the main reasons i got in to game dev, but geeez, it eats up the time... This is a WIP from today before i call it a night.. maybe 80% finished.
maps.png
Dial_000_f002_show.jpg
Wohoo, its finished. It took some time but slowly I get used to this retro 90s anime style.
Now I just have to finish the other 37 frames. for the first dialogue... oh lord, what have I done :LZSlol:
(and if you are confused: yes, I place various eastereggs about other great cyberpunk games/videos/books that I like in my game ;) )
Has anyone watched the movie "Tiny Toons: How I Spent My Summer Vacation"? It is a cartoon and it is freaking hilarious. We watched that movie so many times when our kids were growing up. Thankfully it has a lot of adult humor to keep the adults entertained that the kids don't really get.
Here's some more weapon icons for the Wastes I've finished recently. Some are mine, some are icons that @Ninjakillzu originally made (the AK variants, the Thompson, the Glock, the M16 variants), but edited by me with permission.
1686428693206.png1686428742838.png
Still working on balance issues for my almost-out Cube Trail demo... Boss balance is no joke.

Forum statistics

Threads
131,778
Messages
1,223,297
Members
173,559
Latest member
Kitty_Chan123
Top