SLAY 1.0

Miscellaneous Forums/Blitz Showcase/SLAY 1.0

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Well it's a Conio based app (ie text mode) so it's not like screenshots are ever going to draw anyone in -- if it's of any interest to someone then they probably will know just from the description. Nevertheless, it currently looks like this:



Incidentally the script for that 'page' (with the comments stripped out -- all the example pages are helpfully commented) looks like this...
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)

And it's the same with conditional logic -- you just program in Lua with a few SLAY-specific commands to keep track of variables, define text and link pages together.