Special character Select screen

Status
Not open for further replies.

ncognito

Veteran
Veteran
Joined
Jul 7, 2013
Messages
157
Reaction score
4
First Language
English
Primarily Uses
So a friend wanted to know how to make a special character select screen that when the player chose his party members it would add them to one of the boxes at the bottom of the pic, there are 4 party member boxs and the leader box to the left of them. I know that you could prob do this with variables but im not sure exactly how, i thought it might be kinda close to the boulder push onto a switch kinda thing but idk, anyone have any ideas?
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Is that a part of the map, or a hud? Do you have it showing the leader yet, or is that the first selection the player makes?
 

ncognito

Veteran
Veteran
Joined
Jul 7, 2013
Messages
157
Reaction score
4
First Language
English
Primarily Uses
thats part of the map. it starts out with the character choosing his name and then it teleports the player to the top block in the middle so that they can walk around to each of the other characters to choose which ones they want in the party. 
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
So is the leader's sprite showing on that event by this stage? Who is the cloaked guy on the left who can't be reached?


And your party will have 5 characters all up?
 

ncognito

Veteran
Veteran
Joined
Jul 7, 2013
Messages
157
Reaction score
4
First Language
English
Primarily Uses
The leader is showing on the map but he isnt on the leader box, and the cloaked guy is the narrator, the one sayin please select your party members n such, and yes 5 
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
The events for the characters to show up ... do they have consecutive numbers? So are they EV001, EV002, EV003, EV004, EV005? Or at least any 5 numbers, in a row?
 

ncognito

Veteran
Veteran
Joined
Jul 7, 2013
Messages
157
Reaction score
4
First Language
English
Primarily Uses
3-12 are the events for the characters the place holders that are suppose to show the people in your party arnt set up at all i just put blank events but they are 13-17
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
I mean the ones at the bottom, the empty ones that are meant to show your characters as you add them.


Actually, if you can just send me your .rvdata2 file for the map itself, I'll be able to look and find out anything else I need to know.


It's going to be a pretty simple setup, I think.
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
That's fine. Give me a couple of minutes and I'll get back to you with a solution.
 

ncognito

Veteran
Veteran
Joined
Jul 7, 2013
Messages
157
Reaction score
4
First Language
English
Primarily Uses
k ty, i appreciate it
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
In the meantime, you can change each of your potential actors' events.


Whenever you do a Change Party Member, add a Call Common Event and make them all call the same common event (I'll give you the commands in a bit), and also make them turn on Self Switch A. Then add a second event page to each one, conditioned by Self Switch A, with no other changes (no graphic, no change to trigger, no event commands).


As it is now, you select someone, and they start following you, but they also stay where they are, so you can get the option to select them again.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Okay. You need to add one more event. Make this a parallel process event, with two commands: Call Common Event (same common event as all the others called), followed by Erase Event.

This parallel process event is the one that will put your leader's graphic on the tile before you have selected any additional party members. Also, if you save your game and reload it during the party selection phase, it will make sure all the events have the correct graphics for your party.

Now, the common event (I just called it Show Party Members) has just one command, and it's a Call Script command. Copy and paste this code into the script box - the positions of line breaks are very important:

(0...$game_party.members.size).each do |i| actor = $game_party.members event = $game_map.events[i + 13] event.set_graphic(actor.character_name, actor.character_index)endActually, assuming you want to do something (go to a new map to actually start the game after the 4 additional members have been selected), you'll have to set a variable to the current party size, and then check if it's 5 or more.

I don't really understand the logic behind event 18 with all the region id stuff. I don't think that's needed (and I actually don't think it'll work the way you think it does) so I'd just remove that event and the regions.
 
Last edited by a moderator:

ncognito

Veteran
Veteran
Joined
Jul 7, 2013
Messages
157
Reaction score
4
First Language
English
Primarily Uses
Is there a way to make it so that you can remove a character? I also notice that it lets u keep adding characters untill you have 6 party members and then if u try n add 1 more after that it pops up "script 'Game_interpreter' line 1411: NoMethoderror occurred. Undefined method 'set_grpahic' for nil:NilClass"
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Actually, assuming you want to do something (go to a new map to actually start the game after the 4 additional members have been selected), you'll have to set a variable to the current party size, and then check if it's 5 or more.
In the common event, set a variable to the party size. If the party size is 5, make it do something - teleport to a new map or something. The error is because you don't have enough events to cater to a 6th party member.


I suppose you could make a path to your narrator and let him ask if you want to reset and start over. If you say yes, remove everyone from the party except actor 1 (if they're not in the party, it won't cause an error). And instead of using self switches to condition the second event page, just change the condition to Actor X is in the party. That way when you reset/remove everyone, they'll all reappear in the original place. And add a call to that common event at the end, so it clears all the characters except the leader.
 
Last edited by a moderator:

ncognito

Veteran
Veteran
Joined
Jul 7, 2013
Messages
157
Reaction score
4
First Language
English
Primarily Uses
Ok ty, for all the help
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,049
Members
137,569
Latest member
Shtelsky
Top