Let say you set Susan Brown teammemberthree, this sets npcnamethee Susan. Now she is placed van_five for the ride. Now I want it to show her in the second van
So what I am thinking is.
*if (van_five=npcnamethree)
*set locationnpcthree “Riding in van two”
Of course there a lot more to the code then that but I am hoping you get the idea. Do you think it will work or is there a better way. Thanks
@Reaperoa
Its rather complex when you first choose your npc it assings it to teammember 1thru 5 depending on what order you choose them. Below each teammember is a list of *set values for that npc, the list is roughly 12 items. Its easy to pull up the items untill you start seating them. So I need the list of info to be able to follow the changes. Lol to start you are making a random list of players, then taking those and scrambling them again while trying to keep all the info in one place.
Unfortunately, I believe the long-winded way is the best way. Otherwise, you will run into errors where team slots could end up empty, other team members being over-written and all sorts of headaches trying to clear it all up.
I would assign 12 variables: npc1 to npc12
Each I would set as true.
As each member is chosen to be part of the team, change it to false
I would also have X associated variables for team_member_names (where X is the number of team members… 5?)
Next, I’d have a variable called teamposition, which will determine what seat is to be filled in. As default, this would be set to 0
With this, all five positions are filled in the order the player picks them. After they have picked one member, they are taken back to the same screen to pick the next member, which is automatically assigned to the next seat. They can’t pick the same member twice as their name is removed from the list of options.
For information about each person, I’d have a *gosub that fills in the information once the members have all been picked.
Woot got it to work, took many of your ideas and a few of my own. I manage to turn into a very simple subcheck that I can use over and over. Thanks all.