Hi Chris,
Unfortunately, set string is not possible in 8-bit mode, as the DAAD engine does not support string variables.
You can append to a string buffer (without a linefeed) using the : append command.
: append "You see "; : print "a cat";
Would print out (without a linefeed in the middle):
You should be able to print out a message that has a number in it like this too (but it doesn't work for strings).
: print {("You have collected " + bells_collected + " bells.")}
As far as chance goes, I hope this helps. I've also updated the documentation with the information I've posted here.
start_at = my_location locations {
my_location : location "You are in a room." ;
} integers { // Only required if you are using store_random
randomvar : integer ;
} on_tick { : if (chance (50)) {
// Will print hello 50 percent of the time
: print "HELLO" ;
}
// Stores the random result in randomvar
: store_random var = "randomvar" ;
: if (randomvar < 33) {
// Will print GOODBYE 33 percent of the time
: print "GOODBYE" ;
}
}