Hi! I was expecting something like
: print "$this_variable$ is here."
But I completed the classroom tutorial and looked through the docs and can't find anything on the subject.
You can use expression form in string_dynamics. A dynamic string is a string that can be referenced from regular strings, but will recalculate every time referenced.
I purposefully chose not to document this in Adventuron Classroom for fear of putting beginners off.
BEGINNERS : Don't be put off please :-)
start_at = village
locations {
village : location "You are in the village. {linger_desc}" ;
}
strings {
linger_desc : string_dynamic {(
"You have been hanging around for " +
linger () +
" turns."
)}
}
Again from memory, I think there's ${noun2}. These can be pretty useful in the right circumstances. For example, I've noticed that when I GET ALL and one of the items is scenery, it says something like "You can't get that." followed by "You get the apple." I'd prefer it to say, "You can't get the tree." followed by "You get the apple." I think I might change the system message to say "You can't get ${entity}."
Sorry if Im asking something dumb but, I want to print a integer variable ( number) not a string and I try this
: print "^c^ {secrets} < / 3 secrets founded.>";
its the only way i found to not get the error warning. But still not work. I searched in document but I'm not finding any HOW TO for it works.
How can I do that?