Hey there guys and gals... Its me AGAIN 😅
I have a character and name select (Male/Female) at the start of the game.
Sofar i have been setting up all my events ( conversations, class selection ect.) with:
If: Male
do this
If:Female
do that
else:
Every now and then i loose oversight and mess stuff up and have to go over events over and over again..
is there a quicker way of setting events if you can choose between multiple characters at the start or is this the correct/only way?
I am almost certain there is a better way... because there are games out there with 10 chars to select from in the beginning..
or do people really go through this entire process?
Thanks in advance.
there are probably half a dozen or more different ways, each having their own advantages and disadvantages.
here is what I can come up without much thinking:
1) use event page conditions on switch male/female with multiple pages
easier to read and take control of, but only works if you can stay below the maximum number of event page
2) use text codes to differ between actors in show text command
limited to the texts, but that should be where most differences are unless different actors have different storylines
you just have to choose which message plugin to use for adding more textcodes than the default
3) use different events/maps
only realy usable if the different actors have different storylines as it is too much work to handle multiple map-replacements at the same time
4) your use of conditional branches
5) don't have different actors, but change the single actor to the wishes of the player
There are event commands to change everything on an actor and this way can be easier as you don't have to check which actor is choosen, but has problems if the game needs to react differently in some cases.
6) have different actors instead of changing the actor, and then focus on the event condition "actor exists" (=is in party) to react to it.
will require more event pages and more events, but is sometimes easier to handle than checking dozens of switches or conditions.
Yeah i kinda figured. Guess ill stick to the way i did stuff up until now.
I guess im actually using method 6 you mentioned.
I have 2 actors to choose from in the start.
Means i need all the conditional branches targeting the "hero" setup double one for male and one for female.
Maybe i should get some sleep before setting up new events so i dont mix stuff up haha
Actually was asking because i had a issue with a event i was setting but solved it in the meantime
(sleepy eyes didnt notice a extra else branch causing a message beeing shown twice)
Alrighty guess im on the right path.
Thanks!
What do you want to change depending on the character? The actor graphic in the text box, the name, or what other people are saying to the character when they meet them [and if so, just a word, or the whole message]?
Pretty much all of the above. You can choose between Actor A and Actor B.
The name can be freely chosen. Then depending on which Actor you chose in the beginning it shows
that Actors Name and Portrait and the flow of some conversations change aswell.
Guess I was hoping that I could exclude the non chosen character. But now that I write it out I realize that I would either need to double map stuff or use a switch to change events depending on your choice of character. I guess I could speed things along if I removed the option (think I have seen a plugin that does this) to change the party formation for events that don't change but require the "main" actor. Like my class change npc for example.
A couple of ideas:
Changing Actor Graphic:
Use Yanfly's Core Engine, and Message Core plugins. That will allow you to load this as an actor graphic [put it in the message box]:
\af[\v[7]]
If you then change variable 7 {for example} to whichever actor id your player picks, that actor image will load. So if you set variable 7 to "2" at the point you pick your character, it will load the Actor 2 graphic from your database for that text box with that code in. If you set it to 1, it will load the graphic for Actor 1. You can even create multiple dummy actors which would let you use emotions for each of the two actors.
Apart from that, try to minimise dialogue differences between men and women, and use it as a conditional branch when it occurs.
Alternatively, you can tidy things up by using common events. In your event chat box, do the following:
Set Variable 9 to 1
Common Event - Chat
Set Variable 9 to 2
Common Event - Chat
Set Variable 9 to 3
Common Event - Chat
Then, do your conditional branching etc in the common event for "Chat". For each, have a conditional branch:
If Variable 9 is 1, then
Write your messages here
If Variable 9 is 2, then
Write your messages here
If Variable 9 is 3, then
Write your messages here
This can make it a lot easier to keep track of.
I hope some of that helps!
You can also set text as variables. I have used variables for She/He, she/he (all lower cases) Her/Him and so on. When the player chooses character's gender, I set those variables. That way I can write text boxes, for example "Hey, \v[2] said hello!" And that variable shows either he or she.
Also, that Yanfly plugin what LGardner said is very useful when changing face picture.
After those I need write different dialogue only if they are totally saying different things.