Here's the text for a little example I created. Haven't added the
conditionals or anything at this point however goes to show how we can
impliment more than just a score (yes, I realize it's not a real
'inventory' yet at this point but that could be expanded on to create
more indepth objects).
(1: inventory = new Array(), has = 0)You Currently have <%= inventory
%> [proceed](2).
(2) Ooo what's this? [Pick up stick](2: inventory.push("stick"), has =
1 ) [proceed](3)
(3) Now you have "<%= inventory %>" and has is: <%= has %> [proceed]
(4).
(4) Darn Stick! [Break stick](5: if(inventory.length)
{inventory.pop()})
(5) That stick was pretty useless anyways.
You now have: "<%= inventory %>"
Try picking up more than one stick. Or no sticks. One thing I'm still
trying to decide on is how to make text appear conditionally. Though I
think I have a couple ideas.
Matt
> Finally I got the counting points part working on:
http://breadcrumb.googlelabs.com/read?id=ag5nbGFiczIwLXBhdmxvdnIOCxIF...