here's some tutorial page links for you:
http://docs.textadventures.co.uk/quest/ ... butes.htmlhttp://docs.textadventures.co.uk/quest/ ... ripts.htmlhttp://docs.textadventures.co.uk/quest/ ... mands.htmlhttp://docs.textadventures.co.uk/quest/ ... jects.htmland here's the guides section (it's a bit hidden on the doc):
http://docs.textadventures.co.uk/quest/guides/-----------
let's make a simple sample game to learn Attributes and the 'if' Script, alright?
create a new game, and choose 'text adventure' of coursewe're going to create two Verbs, 'stand_up' and 'lay_down', which will (require and) toggle a created Boolean Attribute 'is_standing_up' for this simple sample game.
let's create the Boolean Attribute on the 'player' Player Object:'player' Player Object -> 'Attributes' Tab -> Attributes (the bottom box I believe) -> Add -> (see below)
(Object Name: player)
Attribute Name: is_standing_up
Attribute Type: boolean
Attribute Value: false // if you want to start laying down // or Attribute Value: true // if you want to start standing up
and, if this will work as I hope it will, let's create a Status Attribute, for us to see the 'is_standing_up' Boolean Attribute's Value in the pane on the right side during game play:'player' Player Object -> 'Attributes' Tab -> Status Attributes (the top box I believe) -> Add -> (see below)
(Object Name: player)
Attribute Name: is_standing_up
Attribute Field (Value): Standing: !
// hopefully it'll work, displaying in the 'status' pane on the right side:
// Standing: true
// or
// Standing: false
now, let's create our two Verbs:1. 'room' Room Object -> 'Verbs' Tab -> Add/Create/Name your own -> (see below)
Verb Name: stand_up
Verb Script: (see below)
run as script -> add new script -> scripts -> 'if' Script -> [EXPRESSION] -> if [EXPRESSION] player.is_standing_up
then,
-> add new script -> output -> 'print a message' Script -> [MESSAGE] -> print [MESSAGE] You're already standing up, silly.
else,
-> add new script -> variables -> 'set a variable or attribute' Script -> [EXPRESSION] -> set variable player.is_standing_up = [EXPRESSION] true
-> add new script -> output -> 'print a message' Script -> [MESSAGE] -> print [MESSAGE] You're now standing up.
2. 'room' Room Object -> 'Verbs' Tab -> Add/Create/Name your own -> (see below)
Verb Name: lay_down
Verb Script: (see below)
run as script -> add new script -> scripts -> 'if' Script -> [EXPRESSION] -> if [EXPRESSION] player.is_standing_up
then,
-> add new script -> variables -> 'set a variable or attribute' Script -> [EXPRESSION] -> set variable player.is_standing_up = [EXPRESSION] false
-> add new script -> output -> 'print a message' Script -> [MESSAGE] -> print [MESSAGE] You're now laying down.
else,
-> add new script -> output -> 'print a message' Script -> [MESSAGE] -> print [MESSAGE] You're already laying down, silly.
-------
and now, you can test/play your game, being able to use the two Verbs to toggle between/back-and-forth of you being standing up vs laying down.