Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

either() works with ! (update wiki?)

Just thought I'd share a recent discovery.  It might be obvious for some, but I just figured out that you can use the function either() with the <<playsound>> macro.  So for example, you can do things like:
<<playsound either('rocket.mp3','duck_quack.mp3','monster.mp3')>>
to play one of the three mp3s at random.  So cool!

I think this should be added to the examples in the wiki, as it was not immediately obvious that you could combine the two (at least to me).  Or at the very least, have the wiki explain that either() can work with more than just <<set> <<print>> and links.  http://twinery.org/wiki/function ; Just my two cents.  :)
Sign In or Register to comment.