Greetings all,
Working on my first Twine project (it’s version 2.11.1.0 if that is important), never did any coding before but with tutorials and Internet search I’ve learned to crawl. I’ve hit a coding brick wall and thought I’d ask for some advice.
My favorite hobby is tabletop board gaming. This project involves taking a skirmish game that is episodic in nature and using Twine to generate narrative options that connect these episodes into an ongoing campaign. Choosing different story paths will lead to different foes, until all paths converge on the big, bad, evil guy at the end.
The players assume the roles of heroes, and two to four of these heroes can be drafted for a given game. At campaign start, they have six heroes in what I’m calling the Ready Roster. When heroes are chosen to take part in a game, their names should move to the Active Roster (allowing me to use if: to create specific events or dialogue to show up if a given hero is present), and if heroes are knocked out of play during a game, their names should move to an Injured Roster, where they are unavailable for the next game while they heal, after which they return to the Ready Roster. As play continues, more heroes will be added to the Ready Roster, where they can be selected for Active, and if knocked out they, too, end up on the Injured Roster.
So far, I’ve tried using an array for each roster, setting up a temporary variable and using set: to it +/- to add or delete names, but this didn’t survive my adding the checkbox macro. It looks like an error grenade went off when i test it. I also tried dividing the task between two passages, but I don’t think I divided the process in the right place for that to work.
Then I thought maybe I should have Boolean values for each hero and each status, so a hero could be true for the ready roster and false for all the other ones, but I wasn’t sure how to tell the checkboxes how to do that.
Then I realized that there are bigger brains than mine, who know Twine can do things I don’t yet know about, and that they hang out here. So here’s a question for anyone interested: What is the best approach in Harlowe to do the following (not sure if all of them can be done in Harlowe, so “that’s not possible” is a potential answer):
- Create the rosters
- Allow viewers to select heroes from the Ready Roster and move their names to the Active Roster
- Allow users to enter if anyone was knocked out, and move those names to the Injured Roster, and
- Automatically move injured people back to the Ready Roster after one game
Any ideas about which commands or macros to use would be deeply appreciated. Thanks so much for reading,
Green