[2K3] IS THERE A WAY TO TRACK WHICH HERO IS IN WHICH PARTY SLOT?

Posts

Pages: 1
Hello,

Is there a way to track which hero (or which hero ID) is in which party slot?

For example, if I have Alex, Brian, Zack, and Arshes, and I change the order ingame to Alex, Zack, Brian, Arshes. Is there a way to know when Brian is in slot 2 and when he's in slot 3?
There is no built-in way to do this. Unfortunately, you're going to have to do it manually.

Make a variable for each hero slot and assign the hero ID of the member that fills that slot to the variable when you add them to the party.
So, according to that, it would be like this:

Heroes:

001-Alex
002-Brian
003-Zack
004-Arshes

Variables:

001-Hero1 (Value 1)
002-Hero2 (Value 2)
003-Hero3 (Value 3)
004-Hero4 (Value 4)

But still, how would I use this to check who is in which slot? I don't know when the player is going to change order, so merely setting Hero2 to value 3 is not enough.
You could probably create a parallel common event with a ton of forks that deals with every possible team setup, and assigns variables depending on which setup is being used.
That might work, but that would be the clunky way. Isn't there an easier way to pull it off?
Marrend
Guardian of the Description Thread
21806
I don't know if there is a way to do this without some kind of if-then statement? I mean, minimally, you would need five variables. One to keep track of how many members are in the party, and one for each party member slot. When a character tries to join, you would first check against the "party size" variable to see if he or she can join in the first place. If that person does join, well, that's when the if-then statements come into play. Since what "party member" variable you set would depend on the party size.

*Edit: As if that's not "bad" enough, there's what would happen when a character leaves the party. Said character isn't in the last slot!
i'm not familiar with all the ways that 2k3 will automatically change the party order, if there is any. but basically you would prevent the player from using any 2k3 built-in methods of changing the party and limit that to your own custom party changing system. when the player uses your CPCS, the order he picks will set the variables that indicate the party order.

as long as 2k3 doesn't change them without your permission, this would work. also any time you change the party for story reasons, change the variables to match. if you go back to a full party, change the variables to match or force the player to run through your CPCS again.
I guess that would work. The built-in order changer is shit anyways.
Pages: 1