Applescript is this very simple scripting language that's built into mac computers. You write scripts using the Script Editor application (or Applescript Editor on Snow Leopard). Has anyone here ever written an Applescript? If so, post it here!
I'll go first.
display dialog "Zombie Apocalypse" buttons {"Start", "Quit"}
if button returned of result = "Start" then set answer1 to text returned of (display dialog "You were walking home when you see a horde of zombies stumbling along. (fight or run)." default answer "")
if answer1 contains "fight" then display dialog "You can not take them all on at once! You have died and become a zombie!"
if answer1 contains "run" then set answer2 to text returned of (display dialog "You run into town, far away from the zombies. You see a gun on the ground. (pick up gun or move on)" default answer "")
if answer2 contains "pick up" then display dialog "You take the gun and discover that it has no ammo."
if answer2 contains "move on" then display dialog "You walk on your way down the street, only to find yourself defenseless while you are devoured by a horde of zombies."
set answer3 to text returned of (display dialog "You see a gun shop down the road. (Look for ammo or move on)." default answer "")
if answer3 contains "look for ammo" then display dialog "You find some ammo in the shop and go on your way."
if answer3 contains "move on" then display dialog "You keep walking, but something in your mind makes you go back and grab the ammo anyways."
set answer4 to text returned of (display dialog "You see a building that is free of zombies. (Rest for the night or keep walking)." default answer "")
if answer4 contains "rest for the night" then display dialog "You lay down on the hard concrete floor and surprisingly fall asleep easily."
if answer4 contains "keep walking" then display dialog "You keep walking, not caring how tired you are."
This is a text game that I have made. Copy and paste this into your script editor, hit compile, then hit run.
P.S. It is still not done.