ChoiceScript
ChoiceScript is an open surce tool for creating Interactive Fiction (Text Adventures) without graphics or sound effects.
Games made with ChoiceScript
How it works
ChoiceScript comes with an html editor, where you can write your story using a sinple syntax. It supports setting and checking variables (“Stats”), code reuse and branching.
Example code for labels:
What kind of animal will you be?
*choice
#Lion
*goto claws
#Tiger
*label claws
In that case, you'll have powerful claws and a mighty roar!
*finish
#Elephant
Well, elephants are interesting animals, too.
*finish
Example code for conditions:
#Lift weights
*if strength > 15
You lift the weights.
*finish
You drop the weights and hurt yourself badly. You never recover.
*goto_scene death