giangtranguyen: (Default)
[personal profile] giangtranguyen
 Just copy and paste the code into the passage, and then adjust it to your liking.

For example:

(if: $STR >= 75 & $DEX >= 60)[\
I did it!]
(else-if: $STR >= 20 & $DEX >= 20)[\
Good job!]
giangtranguyen: (Default)
[personal profile] giangtranguyen
Just copy and past the code into the passage, and then adjust it to your liking.

For example:

(set: $value to true)

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

For example:

(if: $value is true)[Insert text here.]
giangtranguyen: (Default)
[personal profile] giangtranguyen
Just copy and paste the code into the passage, and then adjust it to your liking.

For example:

(link: "first link")[(set: $x to true)(goto: "new passage")]
(link: "second link")[(set: $y to true)(goto: "new passage")]
(link: "third link")[(set: $z to true)(goto: "new passage")]
giangtranguyen: (Default)
[personal profile] giangtranguyen
Just copy and paste the code into the passage, and then adjust it to your liking.

For example:

(set: $sec to 0)
(live:1s)[
 Seconds: $sec
 (set: $sec to it + 1)
 (if: $sec > 3)[3 seconds passed]
 (if: $sec > 5)[(go-to:"next")]
]
giangtranguyen: (Default)
[personal profile] giangtranguyen
Just copy and paste the code into the passage, and then adjust it to your liking.

For example:
 
(set: $counter to 10)\
You have |amount>[$counter] seconds left!\
\
(live: 1s)[\
(set: $counter to it - 1)\
(if: $counter is 0)[(go-to: "Next Passage")]\
(replace: ?amount)[$counter]\
]

Or 

(set: $time to 2)
(live: 1s)[(set: $time to it - 1)
(if: $time is 0)[(stop:)(go-to: "Next Passage")]
giangtranguyen: (Default)
[personal profile] giangtranguyen
Just copy and paste the code into the passage, and then adjust it to your liking.

For example:

(link-goto: "Open red door", (either: "lion room", "empty room"))
giangtranguyen: (Default)
[personal profile] giangtranguyen
Just copy and paste the code into the passage, and then adjust it to your liking.

For example:

(set: $HinataConfession to 0)

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

For example:

(set: $HinataConfession to it + 1)\
(if: $HinataConfession is 1)[\
So this is the first event.
 
[[Go back|Second]]]\
\
(else-if: $HinataConfession is 2)[\
So this is the second event.
 
[[Go back|Second]]]\
\
(else-if: $HinataConfession is 3)[\
So this is the third event.
 
[[Go back|Second]]]\
\
(else-if: $HinataConfession is 4)[\
So this is the fourth event.
 
[[Go back|Second]]]\
\
(else:)[So this is the last event.]
giangtranguyen: (Default)
[personal profile] giangtranguyen
Just copy and paste the code into a passage, tag it as startup, and then adjust it to your liking.

For example:
 
(set: $kiyokoAffection to 0)

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

For example:

(set: $kiyokoAffection to $kiyokoAffection + 5)

or
 
(set: $kiyokoAffection to it + 5)

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

For example:
 
(if: $kiyokoAffection >= 75)[\
I love you!
](else-if: $kiyokoAffection >= 50)[\
I like you.
](else-if: $kiyokoAffection >= 25)[\
I don't like you
](else:)[\
I dislike you
]

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>>
Page generated Monday, 30 June 2025 06:23 am
Powered by Dreamwidth Studios