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
Just copy and paste the code into Story Stylesheets, and then adjust it to your liking.

For example:

tw-story[tags~="yachi"] {
background: #ffffff; url("yachi.jpg");
}
giangtranguyen: (Default)
[personal profile] giangtranguyen
Just copy and paste the code into the passage, then adjust it to your liking.

For example:

(set:$cl to (a:
"where were you?",
"what happened?",
"why weren't you here?"))
(link-repeat:"|this>[what should you say?]")[(replace:?this)[(print: $cl's 1st)](set:$cl to(rotated:1, ...$cl))]
 
giangtranguyen: (Default)
[personal profile] giangtranguyen
Just copy and paste the code into the passage, then adjust it your liking.

For example:

(set: $event to (random: 1, 6))
(if: $event is 1)[The text for event 1]
(elseif: $event is 2)[The text for event 2]
(elseif: $event is 3)[The text for event 3]
(elseif: $event is 4)[The text for event 4]
(elseif: $event is 5)[The text for event 5]
(elseif: $event is 6)[The text for event 6]
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 {
}
giangtranguyen: (Default)
[personal profile] giangtranguyen
Just copy and paste the code into the Story Stylesheets, then adjust it to your liking.

For example:

.enchantment-mouseout {
border: 0px solid #ffffff;
}
 
.enchantment-mouseout:hover {
background-color: #ffffff;
border: 0px solid #ffffff;
border-radius: 0px;
}

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, 17 September 2025 10:22 pm
Powered by Dreamwidth Studios