Not sure how to do this

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

Ugh, you’ve lost me.
Is she in van five or two?
You never set van_five as her name, as far as I can tell, so that will never work?

Sorry when you select seat five this does two things one it *set van_five “Susan” and it also tells me seat five is in van two.

It seems pretty hefty to use so many variables for such a thing. Is it important, or would abstracting it work well enough?


As for the actual question, it’s difficult to tell the purpose of your various variables. I think the purpose of the various variables are:

teammemberthree: A text variable to tell who’s the third team member

npcnamethree: First/Nick-name of team member three

van_five: Which team member is in the fifth position of the van(s)? *set “npcnamethree”? (This would make things easier then *set “teammemberthree”)

So I think this would work:
*set name_of_person_in_van_five {van_five}


Perhaps this would help (start from “Truly bizarre references”):

@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

Example (small scale)

Choose a team member:
*label teamchoice
*set teamposition +1
*choice
__*if (npc1) #Alan
____*set npc1 false
____*if teamposition = 1
______*set teammember1 “Alan”
______*goto teamchoice
____*if teamposition = 2
______*set teammember2 “Alan”
______*goto teamchoice
____*if teamposition = 3
______*set teammember3 “Alan”
______*goto teamchoice
____*if teamposition = 4
______*set teammember4 “Alan”
______*goto teamchoice
____*if teamposition = 5
______*set teammember5 “Alan”
______*goto next_part_of_the_story
__*if (npc2) #Bob
____*set npc2 false
____*if teamposition = 1
______*set teammember1 “Bob”
______*goto teamchoice
____*if teamposition = 2
______*set teammember2 “Bob”
______*goto teamchoice
____*if teamposition = 3
______*set teammember3 “Bob”
______*goto teamchoice
____*if teamposition = 4
______*set teammember4 “Bob”
______*goto teamchoice
____*if teamposition = 5
______*set teammember5 “Bob”
______*gotonext_part_of_the_story
__*if (npc3) #Charlie
____*set npc3 false
____*if teamposition = 1
______*set teammember1 “Charlie”
______*goto teamchoice
____*if teamposition = 2
______*set teammember2 “Charlie”
______*goto teamchoice
____*if teamposition = 3
______*set teammember3 “Charlie”
______*goto teamchoice
____*if teamposition = 4
______*set teammember4 “Charlie”
______*goto teamchoice
____*if teamposition = 5
______*set teammember5 “Charlie”
______*gotonext_part_of_the_story

Etc.

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.

*If teammember1 = “Alan”
__*set height1 “180”
__*set hair1 “brown”
etc.

It’s a lot of typing but copy and paste are your friend here :slight_smile:

Thank you very much and yes copy and paste are the best:-P

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.