SLAY (Sledge's Lua-enhanced Adventure thingY) is a simple system for authoring multiple-choice interactive fiction -- y'know, like those old game-books you used to get, only computer-ma-tized.
Download
Blog Entry
Download
Blog Entry

SetFrameTitle("Get & Set") AddText( GetVar("hero_name")..", you have "..GetVal("gold").." gold coin(s)."..EndPara() ) AddText( "KERCHING!"..EndPara() ) SetVar("gold",4) SetVar("hero_name","Minted adventurer") AddText( GetVar("hero_name")..", you now have "..GetVal("gold").." gold coin(s)."..EndPara() ) AddText( "KERCHING!"..EndPara() ) SetVar( "gold",GetVal("gold")+4 ) SetVar("hero_name","Extra minted adventurer") AddText( GetVar("hero_name")..", you now have "..GetVal("gold").." gold coin(s)."..EndPara() ) AddOption("Conditional elements and program flow",3)