In the movement route.. how do I make the player face a designated actor in the party? Ive looked over script calls but i dont see anything for this. Maybe I am missing it? TYIA
Help with calling actor in moveroute
RPG Maker MV Supportyour sentence does not make much sense.
You cannot call an actor in a moveroute at all.
Are you asking how to turn the player to face a follower? That would probably require a plugin for follower control
You cannot call an actor in a moveroute at all.
Are you asking how to turn the player to face a follower? That would probably require a plugin for follower control
How is the rest of your event structured such that you don't know ahead of time where the follower will be?
For example, if your last move command moved the player up, facing down will face the follower.
If you have events representing your followers and you somehow don't know where that event will be, Yanfly's Move Route Core provides script calls to "turn toward" an event.
If you're doing something else...you'll need to explain that to us to get a good answer.
For example, if your last move command moved the player up, facing down will face the follower.
If you have events representing your followers and you somehow don't know where that event will be, Yanfly's Move Route Core provides script calls to "turn toward" an event.
If you're doing something else...you'll need to explain that to us to get a good answer.
Not sure how it doesnt make sense... the player is the main controled actor... but there are follower actors... in this case actor 2 and 7 (depending on which stage you are in of the story) I have HIME_EventCommandDesignation (paid/p.atreon) and i can make the follower turn toward the player... but not the player toward the particular actor. The player could be up, down, left, right of actor 2/7... so i need them to face them... i would think here would be a script call to turn the player to game actor id without there being a plugin.
@ATT_Turan Its short for testing purposes of course
◆If:Script:SceneManager._scene instanceof Scene_Map && !$gamePlayer.isMoving() && !$gameMap.isEventRunning() && !TouchInput.isPressed() && !Input.isPressed('ok') && !Input.isPressed('cancel') && !Input.isPressed('shift') && !Input.isPressed('menu') && !Input.isPressed('escape')
◆Control Variables:#0007 Idle += 1
◆If:Idle ≥ 5
◆Set Movement Route:Player
: :◇Script:**Turn to the actor 2 or 7 here**
: :◇Wait:30 frames
: :◇Turn Down
: :◇Script:BALLOON: SWEAT
◆Comment:----------------
: :<designate character: actor 2 />
: :---------------
◆Set Movement Route:Player (Wait)
: :◇Turn toward Player
: :◇Wait:30 frames
: :◇Turn Down
: :◇Script:BALLOON: SWEAT
◆Wait:200 frames
◆
:End
◆
:Else
◆Control Variables:#0007 Idle = 0
◆
:End
We can't tell what script call to use for your paywalled plugin since it seems that's what's tying your followers to events.
If you know what event id your followers are being assigned you can do what ATT_Turan said with Yanfly's plugin
Its not a script call... the comment makes it the designated actor that the next action is to do. thats it.
The part before the
◆Comment:----------------
: :<designate character: actor 2 />
: :---------------
is the all the player. which is who needs to turn to the designated actor 2 or 7
The reason Andar said your post doesn't make sense is because you have some of your terminology/concepts mixed up.
There's no such thing as an actor on the map - they're just entries in the database. The followers are displayed on the map as a "character" object, but they're not exactly events.
So an easy solution to this is what you'll see in all the traditional Final Fantasy and similar games - at the start of a cutscene, gather followers, then use events with the graphics of the party members to walk back out to designated places.
This will allow you to know where a specific follower is so you can simply use that direction in the move route. Or they'd be represented by an event if you needed to use a plugin script call to make the player face an event.
Or you can use a plugin like Tyruswoo's Follower Control to get access to commands that control and reference the followers without going through the event replacement process.
Cutscenes sure, but for an idle loop? to fade in and out for idle seems clumsy. I do apologize if i used terminology wrong, thank you for clarifying. I guess ill find another way to do this, I would think there would be a way to turn the player character to a follower ID no matter where you are on the map. That is just bizzare to me that there isnt such a thing in a system that basicly says your imagination is the only limit.
If you know the object or event id that is representing the actor on the map you can do it.
This will give you a follower's x and y position, but it is not tied to an actor id but to whichever follower happens to be in the nth position of your formation.
$gamePlayer._followers.follower(n).x
$gamePlayer._followers.follower(n).y
from there you can calculate what direction the player needs to turn to "face" that coordinate, and you will need to designate what the thresholds are if the follower is located diagonally from the player.
Of course all this is easier with a plugin that handles all that.
As mentioned, the usual approach is to hide followers during a cutscene and use events instead.
However, you could try this in a move route:
I.e. "make the character being moved turn toward the follower with actor ID 2, if they're present". I did a quick test and it seemed to work for me. Replace
However, you could try this in a move route:
var actorId = 2, a = $gamePlayer.followers()._data, n = a.length; for (; n--;) if (a[n].actor().actorId() === actorId) break; if (n >= 0) this.turnTowardCharacter(a[n]);I.e. "make the character being moved turn toward the follower with actor ID 2, if they're present". I did a quick test and it seemed to work for me. Replace
2 with whatever actor ID you like.Well, most games don't have idle loops, so it doesn't merit a lot of consideration. 😛
The entire engine source code is in your js folder, so you can do literally anything you want to it. However, if one isn't proficient in JavaScript, then that is a limit, in addition to your imagination.
And RPG Maker is also advertised as being accessible and easy to use. Logically, making it easy to use means there must be fewer, clearly accessible options.
So to come across like you have the expectation that there should be a built-in command for literally anything you can think of just doesn't make logical sense.
You can do whatever you like, but the more uncommon or unique your request, the more difficult it may be to implement.
Good luck with your project!
Original thread: https://forums.rpgmakerweb.com/threads/help-with-calling-actor-in-moveroute.157597/