Skip to content

Instantly share code, notes, and snippets.

View Oddmonster's full-sized avatar

Audrey Homan Oddmonster

View GitHub Profile
@Oddmonster
Oddmonster / illustrated_dice
Created February 1, 2014 00:59
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”>>
[img[tyrannosaur.png]]
<<elseif $dino_type eq “brontosaurus”>>
[img[brontosaurus.jpg]]
<<elseif $dino_type eq “stegosaurus”>>