It looks like you're new here. If you want to get involved, click one of these buttons!
<<set $whatever to random(X,X)>><<if $whatever eq 1>><<print "Zoooba">><<elseif $whatever eq 2>><<print "Yowzy">>... <endif>
But this is hard and it's easy to make an error. Any better way?
Comments
eg. Place the following in a Start passage, run Test and refresh the browser to see different items.
Such as: if I have nothing, there is nothing on the screen. When I pick anything up, it prints: "You are carrying [anything]." Then the next things would go with commas. And if the inventory is empty again, the whole sentence would vanish.
For example:
You are carrying: Sword.
Could be added to:
You are carrying: Sword <<print ", knife" ", other knife">>.
Would display as:
You are carrying: Sword, knife, other knife.
But this requires the player always has a sword.
One possible link Example Turn-Based RPG (Pre-Alpha v. 0.4)
On acquisition of a Large weapon: And the same for $Smallweaponis. Notice my idea about measuring string length found use, with <<if $Largeweapon eq 0>>. It's only going to be 0 if the string is empty, and I can reset it to "" every time the player discards the Large weapon. I don't need a separate size check.
Now the indicator message for this in the status bar would be: