MEMORIZING PARTY FORMATION ORDER? (RM2K3)
Posts
Pages:
1
Corfaisus
"It's frustrating because - as much as Corf is otherwise an irredeemable person - his 2k/3 mapping is on point." ~ psy_wombats
7874
Is it possible to memorize both who is in the party as well as their current position, as in their order in the current party? Like let's say my group consists of a paladin, a mage, and a rogue in that order. Is it possible to memorize this order for use in different events like calling them back after entering a menu that uses a cursor character that is removed upon leaving the menu? Then again, I've never been able to figure out how to store a character's ID seeing as how I've never had a use for it.
I forgot exactly what my main reason was behind this question, but I'm sure if I can find out if this order thing is possible, it will come back to me eventually...
I forgot exactly what my main reason was behind this question, but I'm sure if I can find out if this order thing is possible, it will come back to me eventually...
Make a variable for each party slot.
#001: Member1
#002: Member2
#003: Member3
#004: Member4
The value of each variable corresponds to a party member:
Value 1: Paladin
Value 2: Mage,
Value 3: Rogue
Value 4: Cleric
etc.
Now when Variable Member1 is equal to 1: Then the game knows that Paladin is in the first slot. If Member1 is equal to 2, then the game knows that Mage is in the first slot. So on and so forth.
This is how I do it at the very least. If there is an easier way, someone step forward and enlighten us.
#001: Member1
#002: Member2
#003: Member3
#004: Member4
The value of each variable corresponds to a party member:
Value 1: Paladin
Value 2: Mage,
Value 3: Rogue
Value 4: Cleric
etc.
Now when Variable Member1 is equal to 1: Then the game knows that Paladin is in the first slot. If Member1 is equal to 2, then the game knows that Mage is in the first slot. So on and so forth.
This is how I do it at the very least. If there is an easier way, someone step forward and enlighten us.
Corfaisus
"It's frustrating because - as much as Corf is otherwise an irredeemable person - his 2k/3 mapping is on point." ~ psy_wombats
7874
This is quite possibly the most newbish question I've asked anywhere to date, but how do I set a hero's ID to a variable? On the same note, how do I set the group leader's ID to a variable?
Also, I'm having a hard time understanding just what exactly this means. It might just be a moment of "5 equals 5" that I'm not quite understanding because I wasn't paying attention in the first lesson.
Also, I'm having a hard time understanding just what exactly this means. It might just be a moment of "5 equals 5" that I'm not quite understanding because I wasn't paying attention in the first lesson.
LockeZ
I'd really like to get rid of LockeZ. His play style is way too unpredictable. He's always like this too. If he ran a country, he'd just kill and imprison people at random until crime stopped.
5958
You can't, not directly. If you want to check the party members, you have to use conditional branches to see who's on the team, and assign the variables accordingly.
I have a common event "Identify Team Members". It's a mess, and only works at all because the team members are always in a specific order - any time Cole and Dak are both in the party, Cole comes first.
Assuming your game doesn't work that way, you are going to have to set the variables whenever the team members are changed. Whatever method you use to change the team members obviously knows what order they're in, so you have to do it there.
I have a common event "Identify Team Members". It's a mess, and only works at all because the team members are always in a specific order - any time Cole and Dak are both in the party, Cole comes first.
Assuming your game doesn't work that way, you are going to have to set the variables whenever the team members are changed. Whatever method you use to change the team members obviously knows what order they're in, so you have to do it there.
I was never able to figure out a way to determine a party's order. The best you can do is determine who is in the party.
In my 2 games that relied on party switching and customizable parties, I always just add the party members in a specific order, and the player's custom order was lost (or I outright disabled that option in the Menu, so that the player could never change the order anyway).
To achieve what you want you will have to implement a custom party reordering system and track everything in variables.
Sorry dude.
In my 2 games that relied on party switching and customizable parties, I always just add the party members in a specific order, and the player's custom order was lost (or I outright disabled that option in the Menu, so that the player could never change the order anyway).
To achieve what you want you will have to implement a custom party reordering system and track everything in variables.
Sorry dude.
I was going to ask you why you want this, but you said you forgot.
There is a way to do this, but it would rearrange your party.
Something like:
-Have one switch per caracter.
-Set all char switches off.
-Check if each character is in group, and set correspondent switches on.
-Remove everyone from party (I now it's not possible, but I'm sure you can find a way around it).
-Have 4 variables, like PM1, PM2, PM3 and PM4 (PM = party member).
-Have another variable called currentPM.
-Let's say variable PM1 is variable 0035... so set current PM to 35.
-Now let's say you have heroes Alex, Mary, John and Kate, and their IDs are 1, 2, 3 and 4.
-Check if Alex's switch is on. If yes, then set variable (variable ID currentPM) = 1 (Alex's id), and set variable currentPM + 1.
-Check if Mary's switch is on. If yes, then set variable (variable ID currentPM) = 2 (Mary's id), and set variable currentPM + 1.
-Add party member (PM1), then add party member (PM2), etc.
This will change the order of your party, but you'll have character order stored in variables PM1, PM2, PM3 and PM4.
But still, there's probably a way to do it without changing the order of your party.
There is a way to do this, but it would rearrange your party.
Something like:
-Have one switch per caracter.
-Set all char switches off.
-Check if each character is in group, and set correspondent switches on.
-Remove everyone from party (I now it's not possible, but I'm sure you can find a way around it).
-Have 4 variables, like PM1, PM2, PM3 and PM4 (PM = party member).
-Have another variable called currentPM.
-Let's say variable PM1 is variable 0035... so set current PM to 35.
-Now let's say you have heroes Alex, Mary, John and Kate, and their IDs are 1, 2, 3 and 4.
-Check if Alex's switch is on. If yes, then set variable (variable ID currentPM) = 1 (Alex's id), and set variable currentPM + 1.
-Check if Mary's switch is on. If yes, then set variable (variable ID currentPM) = 2 (Mary's id), and set variable currentPM + 1.
-Add party member (PM1), then add party member (PM2), etc.
This will change the order of your party, but you'll have character order stored in variables PM1, PM2, PM3 and PM4.
But still, there's probably a way to do it without changing the order of your party.
Pages:
1
















