Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
A tiny Twine snippet that pseudo-randomizes a variable and prints it to the screen along with the appropriate image. A basic dice function featuring dinosaurs..
<<set $dino_type to either (“tyrannosaur”, “brontosaurus”, “diplodocus”, “triceratops”, “stegosaurus”)>>
You are a <<print $dino_type>>!
<<if $dino_type eq “tyrannosaur”>>
<<elseif $dino_type eq “brontosaurus”>>
<<elseif $dino_type eq “stegosaurus”>>
<<elseif $dino_type eq “triceratops”>>
<<elseif $dino_type eq “diplodocus”>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment