Heyyyy,
So I have asked a similar question before but didn’t quite get the answer I was looking for…
Say there are four characters and the MC has a conversation with them and gains points depending on choices. After talking CHAR2 has the most points.
How would I code it so that CHAR2 can do something because they have the most points.
I know that you can do " (if CHAR2 > CHAR1) " - but what about the other characters?
I hope this makes sense. If you could help that would be amazing!!
Thank you so much!
Sienna
1 Like
Here…let me know if it shows any error or doesn’t work.
if (POINTNAME<3) {
#Scene here
} else {
NARR
Oops, looks like you don’t have enough points to unlock the art scene.
NARR
Would you like to see the art scene with gems? (You’ll also get one point)
choice
<GEMS:Amount of gems you want>“Yes!” {
@POINTNAME +1
#Scene here
} “Nope.” {
}
}
This is way much easier than (If Chara2 > Chara1).
When I started using the point system I was going to do it that way too but it got confusing to me, and now I prefer to use it the way she suggested under my post
Is this what you’re looking for?
if (RYDER > RISTAN) {
if (RYDER > ADAM) {
if (RYDER > VLAD) {
NARRATOR
RYDER!
}}} elif (RISTAN > RYDER) {
if (RISTAN > ADAM) {
if (RISTAN > VLAD) {
NARRATOR
RISTAN!
}}} elif (ADAM > RYDER) {
if (ADAM > RISTAN) {
if (ADAM > VLAD) {
NARRATOR
ADAM!
}}} elif (VLAD > RYDER) {
if (VLAD > RISTAN) {
if (VLAD > ADAM) {
NARRATOR
VLAD!
}}}
system
Closed
July 13, 2022, 11:55pm
7
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.