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>>\
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>>
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
@import url('');

* {
 
body {
}  
 
b, strong {
}
 
i, em {
}
 
del {
}
 
code {
}
 
q {
}
 
p {
}
 
h1, h2, h3, h4, h5, h6, h7 {
}
 
hr {
}
 
img {
}
 
blockquote {
}
 
#id {
}
 
.class {
}
 
#story {
}
 
#passages {
}
 
.passage {
}
 
.passage a, .passage .link-visited, .passage .link-internal:not(.link-visited) {
}
 
.passage a:hover, .passage a:active {
}

.passage .link-broken, .passage .link-disabled, .passage .link-broken.external, .passage .link-internal {
}

How To Use A Name Prompt

Thursday, 6 July 2017 11:12 pm
giangtranguyen: (Default)
[personal profile] giangtranguyen
Just copy and paste the code into the passage, then adjust it to your liking.

For example:

<<set $name to prompt("What's your name?","Haruichi")>>
giangtranguyen: (Default)
[personal profile] giangtranguyen
Just copy and paste the code into the passage, then adjust it to your liking.

For example:
 
<<set $name to either("Haruichi", "Retsu", "Kiyoko")>> 

How To Use A Name Box

Thursday, 6 July 2017 06:52 pm
giangtranguyen: (Default)
[personal profile] giangtranguyen
Just copy and paste the code into the passage, then adjust it to your liking.

For example:

What is your name?
<<textbox "$name" "Furudate">>
Page generated Wednesday, 15 October 2025 08:17 pm
Powered by Dreamwidth Studios