BTJanuary

Villager
Member
Joined
Mar 18, 2023
Messages
7
Reaction score
0
First Language
Vietnamese
Primarily Uses
RMMV
So i was trying to write a script that let the events (3-17) to all move at once instead of having a bunch of move event commands.
It does, in fact, works, however no. 8, 9, 12 doesn't seem to at all budge.

1680218364047.png1680218264371.png
this can easily be solve with me adding separate movement event for those, but i do want to know why it's the way it is. Thank you very much in advance!
 

Shaz

Keeper of the Nuts
Global Mod
Joined
Mar 2, 2012
Messages
46,039
Reaction score
16,850
First Language
English
Primarily Uses
RMMV
What your script call is doing is telling events 3-17 to move up 3 times. But it's not issuing a "move up 3 times" command - it's issuing 3 "move up" commands. When done like this, they don't run one after another, they replace each other. There is no waiting for the one movement to be complete before issuing the next one. You should actually create a move route with the 3 movement commands then apply the move route to each event.

If 3 of them don't move, I'm guessing you've got an event on the tile they want to move to.

When you post something like this, please show the whole event window. We need to know especially what your event trigger is, but other stuff not included above is also of interest.
 

caethyril

^_^
Global Mod
Joined
Feb 21, 2018
Messages
4,647
Reaction score
3,779
First Language
EN
Primarily Uses
RMMZ
In case it helps, here's a scripted Set Movement Route example for MV, from the up-to-date front page of the MV / MZ Script Call List:

// MV, in a Script command // Fade out "This Event" by -10 opacity/frame, wait for completion var list = []; var char = this._character = this.character(0); var cOpa = Game_Character.ROUTE_CHANGE_OPACITY; for (var p = char.opacity(); p > 0; p -= 10) { list.push({ code: cOpa, parameters: [p] }); } list.push({ code: cOpa, parameters: [0] }); list.push({ code: Game_Character.ROUTE_END }); var route = { list: list, repeat: false, skippable: false }; char.forceMoveRoute(route); this.setWaitMode('route');
(It's mostly the same for MZ, just a minor difference in how the character is stored.)

As you can see, it will probably be simpler to just spend a few minutes clicking through the editor instead. :kaoslp:
 

Latest Threads

Latest Posts

Latest Profile Posts


3d Yandere RPG maker game by labylin
With this map, I tried to emulate a Gameboy Color/Advance style.
Hacknet's a hypocritical game.
It's a game about hacking... that's been made in Net framework and the code was left unobfuscated.
So it's a game about hacking that's vulnerable to hacking.
The irony. :p
My message count stands at 999. I was going to ask if I get anything special for hitting 1,000 but then I looked at the post count of some other people who shall remain nameless. Now I don't feel special anymore. I need to either start posting a lot more or wipe my tears away and just focus on my game. Hopefully my keyboard is waterproof. ;_;

Forum statistics

Threads
131,766
Messages
1,223,161
Members
173,533
Latest member
joeyidc
Top