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,034
Reaction score
16,843
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,646
Reaction score
3,777
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

Hamburger!? Yeeah.
I love it when the approval queue is 80% spammers. Makes it so fast to power through!
I found some inspiration and have started work on a Point and Click style exploration game in a dead mall. I am hopefully going to push MZ in some unexpected directions. I always love seeing the engine do things that folks might not expect. Its good to have found some direction. Thanks for the support a few weeks back when the writers blog was hitting heavy.
Don't you want your heroes or monsters to lose some of their MAXHP or MAXMP? Don't you?
Really, why wouldn't you? :p
Yeah, it's gonna get worse after every hit they take, but so what?
Aren't they courageous fighters? Or stupidly brute mobsters?

Forum statistics

Threads
131,730
Messages
1,222,706
Members
173,475
Latest member
georgino15
Top