Random messages?
RedTulip
08 Apr 2011, 09:26I'm trying to do something like, for example, when the player speaks to a person, it will print "Nothing is said after that.", "Silence fills the air.", or "Nothing is replied.".
Alex
08 Apr 2011, 11:13You can put a random number in a string variable using the $rand(...)$ function.
For example, set a numeric variable called "response" to "$rand(1; 3)$" to set the value 1, 2 or 3.
Then you can use a "select case" to print the appropriate message for %response%.
For example, set a numeric variable called "response" to "$rand(1; 3)$" to set the value 1, 2 or 3.
Then you can use a "select case" to print the appropriate message for %response%.