How do I collect points for a mini-game?

There’s this mini-game I’m making, but I wanna add survival points. How do I do that? There will be 3 games, each worth one point, at the end, their scores in the game (0/3,1/3,2/3,3/3) determines their fate, but how do I add up these points? whats the code for it?

1 Like

I’m using that for the overall character points though, is there a way it could just be for the mini-game?

here is what i have done

the way your normally add points through to a charatere
like this
@MC +1

so instead i haveed the points to an extra chartere whos points does not matter

@EXTRA1 +1

1 Like

Yes, she explains that you can make it for anything. You’d make a character called “GAME”

and add points to @GAME

1 Like

@kw.episode and @line123462 OHHH I SEE!! Thank you so much! :smiling_face_with_three_hearts:

1 Like

@kw.episode and @line123462

It’s not collecting the points correctly for some reason? Here’s my script:

label minigame
MURDERER (talk_fight_angry_loop)
I’m afraid I can’t let you do that.
choice [timed: 3]
“Duck!”{
&YOU moves to layer 4 AND MURDERER moves to layer 6
@YOU is standup_neutral AND MURDERER is kick_crotch_give
&MURDERER is laugh_giggle
&speechbubble is 118 280 to 100% with tail_top_right
YOU (idle_exhausted_cramp_loop)
(Shoot!)
}
“Punch!”{
@MURDERER +1
&YOU moves to layer 6 AND MURDERER moves to layer 4
@YOU is punch_fight_give_angry_loop AND MURDERER is punch_fight_receive_angry_loop
&MURDERER is idle_exhausted_cramp_loop
&speechbubble is 118 280 to 100% with tail_top_right
YOU (react_angry_shakefists)
(He’s getting it!)
}
“Kick!”{
&YOU moves to layer 4 AND MURDERER moves to layer 6
@MURDERER is punch_fight_give_angry_loop AND YOU is kick_crotch_give THEN MURDERER is punch_fight_give_angry AND YOU is punch_fight_receive_angry
&speechbubble is 118 280 to 100% with tail_top_right
YOU (idle_exhausted_cramp_loop)
(Shoot!)
}
&speechbubble is 118 280 to 100% with tail_top_right
YOU (idle_fight_angry_loop)
(What should I do now??)
choice [timed: 3]
“Duck!”{
@MURDERER +1
@YOU is standup_neutral AND MURDERER is punch_fight_give_angry
&MURDERER is idle_exhausted_cramp_loop
YOU (react_angry_shakefists)
(I’m not letting him get away with this!)
}
“Punch!”{
&YOU moves to layer 6 AND MURDERER moves to layer 4
@YOU is punch_fight_give_angry AND MURDERER is standup_neutral
&MURDERER is laugh_chuckle
YOU (idle_exhausted_cramp_loop)
(Shoot!)
}
“Kick!”{
&YOU moves to layer 4 AND MURDERER moves to layer 6
@MURDERER is punch_fight_give_angry_loop AND YOU is kick_crotch_give THEN MURDERER is punch_fight_give_angry AND YOU is punch_fight_receive_angry
&MURDERER is laugh_crackup
YOU (idle_exhausted_cramp_loop)
(Shoot!)
}
&MURDERER is idle_fight_angry_loop
&speechbubble is 118 280 to 100% with tail_top_right
YOU (idle_fight_angry_loop)
(What now??)
choice [timed: 3]
“Duck!”{
&YOU moves to layer 4 AND MURDERER moves to layer 6
@YOU is standup_neutral AND MURDERER is kick_crotch_give
&MURDERER is laugh_giggle
YOU (idle_exhausted_cramp_loop)
(Shoot!)
}
“Punch!”{
&YOU moves to layer 4 AND MURDERER moves to layer 6
@YOU is punch_fight_give_angry AND MURDERER is standup_neutral
&MURDERER is laugh_giggle
YOU (idle_exhausted_cramp_loop)
(Shoot!)
}
“Kick!”{
@MURDERER +1
&YOU moves to layer 6 AND MURDERER moves to layer 4
@YOU is kick_crotch_give AND MURDERER is kick_crotch_receive_rear AND MURDERER faces left
&MURDERER is idle_exhausted_cramp_loop AND MURDERER faces right
YOU (react_angry_shakefists)
(That douche deserved that!)
}
@speechbubble reset
if (MURDERER = 0){
NARRATOR
Your score is | bold , color:carmel |0/3|reset, no-space|. You could’ve done better!
goto retry
} elif (MURDERER = 1) {
NARRATOR
Your score is | bold , color:carmel |1/3|reset, no-space|. You could’ve done better!
goto retry
} elif (MURDERER = 2) {
NARRATOR
Your score is | bold , color:carmel |2/3|reset, no-space|. Good job!
goto retry
} elif (MURDERER = 3) {
NARRATOR
Your score is | bold , color:carmel |3/3|reset, no-space|. Amazing!
goto contin
}
label retry
NARRATOR
Would you like to try again?
choice
“Yes.”{
goto label minigame
}
“No.”{
goto contin
}
label contin

The last one should be else on its own, and you need to add 0 points to the choices that don’t collect points.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.