User selects multiple from a list

I'm trying to create a game where the player can select multiple classes each year to add to their course load. Is that possible in Quest? Is there any way to list out a bunch of courses and have the player select multiple and then add them to a course list?


I am new to Quest myself so I can think of one way of doing it. (probably there is more than of one way to achieve this)
Since the objects are persistant, you could create something like "GameState" object with two lists.
One list would hold the possible courses that can be selected and the second would be empty.
Once the player selects courses, the selected ones could be added to the second list.

So, conceptually you would have the following structure :

>>GameObject

  • AvailableCoursesList (StringList)
  • SelectedCoursesList (StringList)

Any changes made to lists in GameObject by scripts would be stored when a game is saved.


Would feel slightly clunky from the player's perspective, with the menu collapsing after each addition (and presumably a "done" option appearing as the last option in the menu).

I'd be tempted to display a list with a bunch of javascript to enable selecting choices. You could make a "done" button which makes a stringlist of selected courses and submits it to a Quest function.


Would feel slightly clunky from the player's perspective, with the menu collapsing after each addition (and presumably a "done" option appearing as the last option in the menu).

I'd be tempted to display a list with a bunch of javascript to enable selecting choices. You could make a "done" button which makes a stringlist of selected courses and submits it to a Quest function.


Is this for a school? I don't follow.

Why not create multiple games? Why not erase code and start the game all over again?


This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums