I'm not sure if this is the right question but i have a guy who can pick a gun, sword,or dagger. So lets say someone chooses gun how can i make that there choice instead of having to put
gun
[dagger]] etc every time there is a choice involving there weapon? so if they pick gun off table they have that gun and dont need to keep choosing it. thanks
Comments
Assuming you're using Harlowe, you would use a conditional branch like so:
The variables $playerHasGun and $playerHasKnife need to both be set to "false" before reaching the passage in my example, and set to "true" after picking up the weapon.
There's a bit more to actually getting it to work, so I included an HTML file which you can import into Twine 2 to look at the code.
Hope that helps.