So for the game I am creating, all story events feature the character's in game sprites moving and such (like Kemco's games, such as Antiquia Lost). However, there is a scene where my script adds the character to the party before starting the event. Whenever the character is added to the party, their sprite is automatically positioned behind the MC. I would like her to stay in the same spot as when you speak to her. I would greatly appreciate any help I can get on this, as it is a crucial game element.
Party Member help
RPG Maker VXAce SupportYou can freeze graphics, do everything you have to (add the new character to your party) then move that specific follower (I am assuming the event has a blank page that triggers when self switch A is on and the event itself is what adds the new party member). If my assumptions are incorrect I am afraid you have to elaborate a bit more.
Keep in mind that this only moves the last follower assuming the new party member is included in $game_player.followers. If you already have 3 followers I am afraid you have to leave the event there.
Code:
Graphics.freeze
$game_party.add_actor[id_goes_here] # use your your real id here
ev = $game_map.events[@event_id] # do not change this
new_dir = ev.direction
$game_self_switches[[$game_map.map_id, ev.id, 'A']] = true
fw = $game_player.followers
new_char = fw[fw.length - 1]
new_char.moveto(ev.x, ev.y)
new_char.set_direction(new_dir)
Graphics.transition(1)
To my knowledge this can't be done. When the actor joins your party they become a follower and move to a position behind the main actor. That's set and the behavior cannot change.
Heirukichi's suggestion is a work around.
just as mine is...
When you talk to the character to join, gather party members, Turn followers off if that works better.
have the character join the party but do not change the graphic for the event that you just talked to (assuming it was the actor joining the party that you talked to, if not then more to follow) Setup additional self switches like Heirukichi was referring to.
Proceed with the cutscene (which is what I'm assuming you are doing.)
If the actor to join is not the one you talked to then do this...
Have events for each of the followers you have showing on the screen (hopefully less than 3)
To make it flow smooth I would gather followers. Then move the position of the events that are your 'followers' to your character position.
You can even make one for your main character and then turn transparent on.
Move the 'follower' event to the position you want .
Proceed with cutscene, finish cutscene, move all events to one spot, turn transparent off, turn selfswitch for events to empty graphic, move events out of the way.
I know it sound complicated, but I know this way as I have done it for my own cutscene.
Heirukichi's suggestion is a work around.
just as mine is...
When you talk to the character to join, gather party members, Turn followers off if that works better.
have the character join the party but do not change the graphic for the event that you just talked to (assuming it was the actor joining the party that you talked to, if not then more to follow) Setup additional self switches like Heirukichi was referring to.
Proceed with the cutscene (which is what I'm assuming you are doing.)
If the actor to join is not the one you talked to then do this...
Have events for each of the followers you have showing on the screen (hopefully less than 3)
To make it flow smooth I would gather followers. Then move the position of the events that are your 'followers' to your character position.
You can even make one for your main character and then turn transparent on.
Move the 'follower' event to the position you want .
Proceed with cutscene, finish cutscene, move all events to one spot, turn transparent off, turn selfswitch for events to empty graphic, move events out of the way.
I know it sound complicated, but I know this way as I have done it for my own cutscene.
Turn off Followers in the database or before the event starts. Depends on how you want things.
This is true but you could make that particular follower invisible in that map. Everything depends on what the OP needs. Unfortunately we lack knowledge as not enough informations were provided.
However it is possible to make a follower permanently invisible in a certain map. Even without using scripts.
'A' Follower or all followers?
I was not aware of specific follower invisible feature without scripts and not really sure how that would be done. I assume a script call.
Why not finish the scene, then add her at the end?
Well, yes, it is short enough to fit in a script call.
By default Game_Follower is a sub-class of Game_Character, which has a transparent attribute. That attribute, however, is overwritten each frame by the update method of the Game_Follower class (which sets that attribute equal to $game_player.transparent each time no matter what). If you get rid of that for a specific follower in a certain map that follower will no longer reset its transparent attribute to be the same as $game_player each frame and thus you can turn it invisibile in a certain map. The code is short enough to fit a script call.
However I absolutely do not recommend using that method (and this is why I am not going to post the code here). While it allows you to hide a follower in a certain map it makes saving the game impossible due to the modified update method of that particular follower. To be able to save the game you have to revert that follower to normal and that is quite annoying.
However I absolutely do not recommend using that method (and this is why I am not going to post the code here). While it allows you to hide a follower in a certain map it makes saving the game impossible due to the modified update method of that particular follower. To be able to save the game you have to revert that follower to normal and that is quite annoying.
Scripting it separately may be the fastest and best solution. Although I can't say for sure. My goal is to create a script I can use repeatedly throughout the entire game. Essentially I want the party members to face each other during story events.
Perhaps look for a follower move route script? There should be some out there.
As long as we are talking about a cutscene and the player is not moving a script is not required to do that. Followers are still characters and you can move them as you wish. Issues only start when the player is moving but as long as that does not happen you can move them in the same way you move normal events (provided you use script calls since event commands only apply to events).
However your explanation is still a bit lacking. It is impossible - at least for me - to grasp exactly how you want them to face each other. I can imagine many different situations where you move followers and all of them are different. If you can give me an example of what you want to do with it I would really appreciate it.
In game follower class, this is how they know which character needs to be shown as a follower
There's an easy "fool proof" to "exclude" the said character because for whatever reason you want the actor to be added at the beginning of the scene sequence. Generally, I'd recommend mlogan's solution by not adding the character until the scene is done, but let's assume you need it anyway for a reason I don't know.
The lazy way would be something like this
Then in script call, you just need to call
This will "hide" a certain actor while technically they're already joining as the party member.
Although my personal preference is just turn off the follower completely and just use events to represent the characters. Like ...
Code:
def actor
$game_party.battle_members[@member_index]
end
The lazy way would be something like this
Code:
class Game_Follower
def actor
($game_party.battle_members - ($exclude ? $exclude : []))[@member_index]
end
end
Code:
$exclude = [$game_actors[1]]
Although my personal preference is just turn off the follower completely and just use events to represent the characters. Like ...
Yes! That is what I'm looking for! Turning off followers should not only lessen the vram load, but also provide me with the conditions I want to create! Thank you so much. With that, this post can now be closed.
@Nyuku If your query is fully resolved please Report your opening post and ask for it to be closed. Mods might not see a post but they will see a Report.
As I am here...
Thread closed IgnoreMe
As I am here...
Thread closed IgnoreMe
Original thread: https://forums.rpgmakerweb.com/threads/party-member-help.106722/