Wednesday, 26 July 2017

giangtranguyen: (Default)
[personal profile] giangtranguyen
Just copy and paste the code into the Javascript.

For example:

$('#ui-bar').remove();
$(document.head).find('#style-ui-bar').remove();
giangtranguyen: (Default)
[personal profile] giangtranguyen
Just copy and paste the code into the passage StoryInit, and then adjust it to your liking.

For example:

<<set $kiyokoAffection to 0>>

Just copy and paste the code into any passage, and then adjust it to your liking.

For example: 

<<set $kiyokoAffection to $kiyokoAffection + 5>>

Just copy and paste the code into the passage that ends the game, and then adjust it to your liking.

For example: 

<<if $affection gte 75>>
I love you!
<<elseif $affection gte 50>>
I like you.
<<elseif $affection gte 25>>
I don't like you
<<else>>
I dislike you
<</if>>

How To Use Random Events

Wednesday, 26 July 2017 09:24 pm
giangtranguyen: (Default)
[personal profile] giangtranguyen
Just copy and paste the code into the passage, and then adjust it to your liking.

For example:

<<set $pies = [ "Blueberry", "Cherry", "Cream", "Pecan", "Pumpkin" ]>>\
\
<<set _randomFlavor = $pies.random()>>\
\
<<if _randomFlavor == "Blueberry">>\
<<print "You're hit in the face with a blueberry pie!">>\
<<elseif _randomFlavor == "Cherry">>\
<<print "A cherry pie flies over your head, what a waste you love cherry!">>\
<<elseif _randomFlavor == "Cream">>\
<<print "A simple cream pie hits the wall behind you, making a simple splatter.">>\
<<elseif _randomFlavor == "Pecan">>\
<<print "A pecan pie tin rolls along the floor, just stuffing and chunks of crust left in it.">>
<<else>>\
<<print "A pumpkin pie takes flight and ruptures mid-air, crumbling all over you!">>
<</if>>\

Profile

Twine Tutorials

April 2018

S M T W T F S
1234567
8910111213 14
15161718192021
22232425262728
2930     

Style Credit

Expand Cut Tags

No cut tags
Page generated Wednesday, 13 August 2025 10:53 pm
Powered by Dreamwidth Studios