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,014
Reaction score
16,832
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,596
Reaction score
13,387
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

RyanYe wrote on ZombieKidzRule's profile.
hi my friend, thank you for liking my post, LOL.
Do you have any contact like discord or email or what?
I want to send you direct messages to share my game and video.

yours Ryan.
I am new here first day ,how to make a game for google play store on Android I am using android mobile .I don't have coding knowledge too .so what are steps to create a game on mobile Android I don't have PC or laptop .any suggestions or guide please .
Does anybody want to get weirded out? If so, I have a weird fact for them in the top comments.

Forum statistics

Threads
131,656
Messages
1,221,924
Members
173,401
Latest member
guzmansario
Top