Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> How would I populate a choice box
Adrien.
post Feb 4 2012, 11:45 AM
Post #1


Bet Mapper
Group Icon

Group: Banned
Posts: 1,632
Type: Mapper
RM Skill: Advanced




with all the characters in your party? is there a way to populate a choice box with whom you currently have in your party?


__________________________



Games I am working on | Each image is a link to the game
Go to the top of the page
 
+Quote Post
   
Kaust
post Feb 4 2012, 11:49 AM
Post #2


Level? Where we're going we don't need levels.
Group Icon

Group: Revolutionary
Posts: 676
Type: Musician
RM Skill: Beginner
Rev Points: 30




This seems way, way too vague.
To what purpose are you doing this? Hearing a particular character's response? Selecting them for something?
Naturally the complexity of the goal changes the method.


__________________________
Quotes

"everyone knows when you use caps that it's serious business"- Tsutanai

"Like I said, our current market breed ferocity, it breeds a cruel and callous kind of people, but that doesn't make them guilty of anything other than being dickheads."- Sparrowsmith
Go to the top of the page
 
+Quote Post
   
Adrien.
post Feb 4 2012, 12:12 PM
Post #3


Bet Mapper
Group Icon

Group: Banned
Posts: 1,632
Type: Mapper
RM Skill: Advanced




I need to populate a choice box with every character in your party to allow you to select from the current characters to remove them for errands. you cannot rely on who will be in your party at that time because of party switching. hence populating a choice box. There should be a way to do this that stated "for character in party, populate choice box"

This post has been edited by Adrien.: Feb 4 2012, 12:15 PM


__________________________



Games I am working on | Each image is a link to the game
Go to the top of the page
 
+Quote Post
   
Kread-EX
post Feb 4 2012, 02:14 PM
Post #4


(=___=)/
Group Icon

Group: +Gold Member
Posts: 4,136
Type: Scripter
RM Skill: Undisclosed




You mean a dialogue choice letting you pick a party member? Yeah, you can't do that so you'll have to rely on conditional branches and checking every party configuration just like in the old days. It's tedious I know :<


__________________________
FRACTURE - a SMT inspired game (demo) made by Rhyme, Karsuman and me. Weep and ragequit.

My blog.

Click here for my e-peen


Go to the top of the page
 
+Quote Post
   
Adrien.
post Feb 4 2012, 02:28 PM
Post #5


Bet Mapper
Group Icon

Group: Banned
Posts: 1,632
Type: Mapper
RM Skill: Advanced




but...but....I could have 12 people in the "reserve" and you can only have 3 characters in the active party.... (if I understand this: 3 x 12 = 36)

is there another, easier way to allow you, on screen to select from your characters?


__________________________



Games I am working on | Each image is a link to the game
Go to the top of the page
 
+Quote Post
   
Kread-EX
post Feb 5 2012, 04:10 AM
Post #6


(=___=)/
Group Icon

Group: +Gold Member
Posts: 4,136
Type: Scripter
RM Skill: Undisclosed




Making a game takes effort, glad you finally realized it.
/sarcasm

Joking aside, there might be an easier way, but it's unconventional. I'll explain it either way, in case you want to try.

You probably know already that you can display variables in the choice box. Well, what you can do is set the variable with a script call event command, just like this:
CODE
$game_variables[x] = $game_party.members[1].name
$game_variables[y] = $game_party.members[2].name
$game_variables[z] = $game_party.members[3].name
Then use \V[x], \V[y] and \V[z] in the choices. In this specific case, they will display the name of the 2nd, 3rd and 4th member in the party.

Now, in the choice block, don't put any commands except this:
CODE
$game_variables[p] = $game_variables[xyz]
"p" is a fourth variable and xyz is one of the three previous ones, depending of the block (for instance, if you're in the x block, then put x).

After that, you can use a set of conditional branch (after the whole choice block, not inside every choice sub-blocks) and check if the variable "p" match with an actor name. This way, you'll use one-third of the conditional branches you would use normally.


__________________________
FRACTURE - a SMT inspired game (demo) made by Rhyme, Karsuman and me. Weep and ragequit.

My blog.

Click here for my e-peen


Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 20th May 2013 - 01:05 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker