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,035
Reaction score
16,845
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,603
Reaction score
13,399
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

This could probably be an entire thread, but it’s really interesting how replaying a game several years later can change how you relate to a character. I think Tidus from FFX got such a bad rap. I getchu. Completely different reaction as an adult now.
As you see, I still enjoy writing tutorials. Is there anything specific you want to see? (I know mapping and editing/resource making is usually popular, but those are very broad topics)
Well, I wanted to expand player battlers visually and now have 3 sheets and counting for each of my players party.
1. Regular sheet
2. The character has turned stone sheet.
3. Using potions sheet.

Technically the main hero has 4 since he starts with a wooden sword, and I felt that the battler should reflect that until he gets a metal one.

Right back to the RM game dev grind in about 15 minutes. :LZSexcite:
Days ago I gave someone the sage advice not to steer away from your main project or take up another one to abandon the first. After figuring a way that would save me years of development, I am forced to redo a lot of stuff on my own turf, near to remake half of what I have already made.
Somewhere down the line I must have crossed paths with bad karma.
:kaomad2:

Forum statistics

Threads
131,733
Messages
1,222,759
Members
173,485
Latest member
taquing
Top