I need a script template on how to remember which male vampire lips they selected and an are you sure button following that choice in case they selected the wrong one.
Ok so there’s a few ways you can do this. Let me get on my laptop and I’ll type them out with explanations for you ◡̈
EDIT: I’ll have to do it in about 20-30 minutes
Okay so I believe there’s 2 ways to do this (if you want the “are you sure” feature): Points and gains. I’ll give the script, what it does, and some of the pros and cons.
Points
Points are pretty self explanatory. Points can be gained or lost with certain characters, which can then be used to manipulate dialogue / appearances / outfits to fit specific amounts of points.
Pros:
- Reader can re-customize because this is not permanent.
- Great for mini-games!
Cons:
- Can get confusing if you’re new to coding.
- You have to make a separate unusable character to harbor the points.
Okay, now for the script to work, you’ll need to create a character named “MOUTH.” This character will gain the specified amounts of points that determine which mouth shape the vampire in your story will change in and out of.
Here’s the two scripts you’ll need for the story if you decide to use points:
Letting the reader choose
label mouth_fangs
NARR
Please reselect a mouth shape.
choice
“Medium Heart” {
@MALE changes mouth into Medium Heart
@pause for 1
NARR
Are you sure you want a medium heart mouth shape?
choice
“Yes!” {
@MOUTH =2
} “No, I’ve changed my mind.” {
goto mouth_fangs
}
} “Full Lower Lip” {
@MALE changes mouth into Full Lower Lip Sharp
@pause for 1
NARR
Are you sure you want a full lower lip mouth shape?
choice
“Yes!” {
@MOUTH =1
} “No, I’ve changed my mind.” {
goto mouth_fangs
}
}
Remembering that choice
if (MOUTH =2) {
@MALE previews mouth Medium Heart Vampire Fangs
} else {
@MALE previews mouth Full Lower Lip Sharp Vampire Fangs
}
To undo this:
if (MOUTH =2) {
@MALE unpreviews mouth Medium Heart Vampire Fangs
} else {
@MALE unpreviews mouth Full Lower Lip Sharp Vampire Fangs
}
This method is my personal favorite lol
Gains
Gains are a way to “flag” something in the story and make it so that an option in a choice is “gained.” I’m not too good at explaining, but if you were to give the reader an option to choose between a cat or a dog, they would either “gain” a cat or a dog in the script / code. I hope that makes sense… lol
Pros:
- Straight forward and very easy to use.
- Great for beginner coders.
Cons:
- The reader can’t re-customize unless you add different “gains.” (so basically it’s permanent).
- You don’t need a separate character for anything.
So basically, not too much goes into gains, other than remembering the names of those gains.
Here’s the two scripts you’ll need for the story if you decide to use gains:
Letting the reader choose
label mouth_fangs
NARR
Please reselect a mouth shape.
choice
“Medium Heart” {
@MALE changes mouth into Medium Heart
@pause for 1
NARR
Are you sure you want a medium heart mouth shape?
choice
“Yes!” {
gain medium_heart
} “No, I’ve changed my mind.” {
goto mouth_fangs
}
} “Full Lower Lip” {
@MALE changes mouth into Full Lower Lip Sharp
@pause for 1
NARR
Are you sure you want a full lower lip mouth shape?
choice
“Yes!” {
gain lower_lip_sharp
} “No, I’ve changed my mind.” {
goto mouth_fangs
}
}
Remembering that choice
if (medium_heart) {
@MALE previews mouth Medium Heart Vampire Fangs
} else {
@MALE previews mouth Full Lower Lip Sharp Vampire Fangs
}
To undo this:
if (medium_heart) {
@MALE unpreviews mouth Medium Heart Vampire Fangs
} else {
@MALE unpreviews mouth Full Lower Lip Sharp Vampire Fangs
}
If you do decide to use gains, please be careful because they can get very messy very fast if you don’t keep track of them.
The “letting the reader choose” scripts should go directly after customization. This also means that you will need to limit the amount of mouth shapes available in the original customization script. If you’re unsure how to do that, check out this thread. I hope this helps!
You are so sweet!!!
Thank you!
I will totally credit you!
Thank you for explaining that to me.
I’m Having troubles with this. Could you please type out a script template ?