I was wondering if anyone knew of a way to have an event (Actor) move to a specific location regardless of inputting specific Move Routes. You see, I have events that after you talk to said actor, they move to a specific spot. However, I'm afraid that a player won't talk to the actor in the right spot making the Move Route off. If there is a script for this, I would very much appreciate it.
Set Player/Event to Move to Specific Location
RPG Maker VXAce SupportAn actor can't be an event; an actor is a potential party member as listed in the database. You can use a switch to go to a blank event page and turn that event off then have another event be turned on by that same switch with the same graphic representing the character you are speaking to.
You can also move events to specific locations (within the same map) with a command but they will be reset if the player leaves the map.
You may also since it seems you are starting out: http://forums.rpgmakerweb.com/index.php?/topic/14727-a-starting-point-for-new-users-v12/
You can also move events to specific locations (within the same map) with a command but they will be reset if the player leaves the map.
You may also since it seems you are starting out: http://forums.rpgmakerweb.com/index.php?/topic/14727-a-starting-point-for-new-users-v12/
You don't need a script for this (it sounds like you may not realise what scripts are).
The Set Event Location command will allow you to move an event immediately to a specific location without needing to set up a move route. Note - if you leave the map and return, the event will be back to its starting location.
To do the same with the player, you just use the Transfer Player command.
The Set Event Location command will allow you to move an event immediately to a specific location without needing to set up a move route. Note - if you leave the map and return, the event will be back to its starting location.
To do the same with the player, you just use the Transfer Player command.
Scripts are coding used for the game and are found in the Script Editor. You can also Call Script to input a custom script right? In the Script Editor you can put in engines and what not. Did I cover what scripts are? If not, please educate me.
I did not see Set Event Location, but it isn't excatly what I had in mind. I didn't explain my question that well to be honest. Here is an example: An event that has a Action Button as it's trigger starts a conversation. After said conversation, I'd like the sprite to physically walk to another spot on the current map. So far I've been using Move Route but I am afraid that my set Move Route will be stopped because if someone where to talk to the sprite say, the left side of the sprite when I had it's move path Move Left, it would freeze the game.
I did not see Set Event Location, but it isn't excatly what I had in mind. I didn't explain my question that well to be honest. Here is an example: An event that has a Action Button as it's trigger starts a conversation. After said conversation, I'd like the sprite to physically walk to another spot on the current map. So far I've been using Move Route but I am afraid that my set Move Route will be stopped because if someone where to talk to the sprite say, the left side of the sprite when I had it's move path Move Left, it would freeze the game.
You have 6 posts. A LOT of people who are new to the forum are also new to the editor. They use the term "scripts" to refer to "events". I was clarifying that they are different things. That's all.
There are some quirks with move routes. Unless you say to ignore if can't move, the event will move to its destination, even if it's interrupted along the way. You can also tell it to wait for the completion of the move route, which would stop the player from interrupting it until it reaches its destination. The biggest issue might be if you tell it to walk where it can't, and to wait until completion - then the game would freeze because it's trying to walk onto a tile that it can't walk on, and will never reach its destination. There might be a temporary freeze if there is another event that is moving at the same time, and it moves into the path of this one. But as soon as it moves out of the way, the first event will continue following its path.
The only time (I know of) where you can really mess with an event's move route is if you make it change the event page that's active. If they both have a move route as the Autonomous Movement, the one on the second page will start from the event's current location, so could end up anywhere, bumping into anything.
Have a play with it, and if you can't get it working the way you want to, post screenshots showing how you've set up the move route, and how you've set up the interruption.
There are some quirks with move routes. Unless you say to ignore if can't move, the event will move to its destination, even if it's interrupted along the way. You can also tell it to wait for the completion of the move route, which would stop the player from interrupting it until it reaches its destination. The biggest issue might be if you tell it to walk where it can't, and to wait until completion - then the game would freeze because it's trying to walk onto a tile that it can't walk on, and will never reach its destination. There might be a temporary freeze if there is another event that is moving at the same time, and it moves into the path of this one. But as soon as it moves out of the way, the first event will continue following its path.
The only time (I know of) where you can really mess with an event's move route is if you make it change the event page that's active. If they both have a move route as the Autonomous Movement, the one on the second page will start from the event's current location, so could end up anywhere, bumping into anything.
Have a play with it, and if you can't get it working the way you want to, post screenshots showing how you've set up the move route, and how you've set up the interruption.
You could just have some conditionals to check what direction the player is facing and add in a few extra moves as necessary.
Let's say the event wants to move right, right, right, up, up, up. So, you add in a conditional before that move route: is the player facing left? Because if they are, then they must have been standing on the right side of the event, hence blocking its way. So, if the player is facing left, then within that same conditional branch, have the route move up, right. Then, in the else statement, have the event move right, up. Then, after the conditional, have the event move right, right, up, up.
Alternatively, you could just force the player to move: so, if player facing left, then player move up, turn down, then the event moves.
Let's say the event wants to move right, right, right, up, up, up. So, you add in a conditional before that move route: is the player facing left? Because if they are, then they must have been standing on the right side of the event, hence blocking its way. So, if the player is facing left, then within that same conditional branch, have the route move up, right. Then, in the else statement, have the event move right, up. Then, after the conditional, have the event move right, right, up, up.
Alternatively, you could just force the player to move: so, if player facing left, then player move up, turn down, then the event moves.
Original thread: https://forums.rpgmakerweb.com/threads/set-player-event-to-move-to-specific-location.45189/