Dear all,
how can I print out part of what the player has typed in? Specific example: I defined a “look up xxx” verb and parse all kinds of topics:
wn = consult_from;
wd = NextWord();
if(wd==‘topic1’){
…
}
“No information on that topic found.”;
But instead of the generic “No information … found” output I would like to have an output “No information on xxx found.”, with “xxx” being the string the player typed. I tried to simply print wd or (string) wd but in both cases I just got a “[** Programming error: tried to print (string) on something not a string **]” error during the game.
Thanks!