how can i make it if you lose the wuxing minigame you die

Balendra

Veteran
Veteran
Joined
Mar 4, 2022
Messages
289
Reaction score
106
First Language
english
Primarily Uses
RMMV
heres the plugin link

so in my game i wanna have a part where before you entire the final area of the game theres a enemy guarding it and if you beat him at the wuxing minigame he lets you past if you lose then you die i dont know if its possible though
 
Last edited:

Broliant112

The Emo One
Veteran
Joined
May 28, 2021
Messages
54
Reaction score
22
First Language
English
Primarily Uses
RMVXA
You might want to clear this up. You don't specify who the "him" is that the enemy is guarding. It is also probably very possible.
 

Balendra

Veteran
Veteran
Joined
Mar 4, 2022
Messages
289
Reaction score
106
First Language
english
Primarily Uses
RMMV
You might want to clear this up. You don't specify who the "him" is that the enemy is guarding. It is also probably very possible.
Oh the enemy guarding the area is a dragon i didnt mean to say him
 

contentdeleted

Villager
Member
Joined
Jul 19, 2022
Messages
22
Reaction score
9
First Language
English
Primarily Uses
RMMV
It looks like the minigame doesn't set anything that you can use to tell who won the game after the minigame scene ends. Luckily you can add that yourself very easily.
After a round is completed go ahead and add the winner info to a game variable.
On the above line (923) of the script just add the code
Code:
$gameVariables.setValue(NUMBER, $gameVariables.value(NUMBER) + winner[0]));
Where NUMBER is the variable number you want to use.

Then in your event that calls the minigame you can check if the variable is > 0 (the player won the most rounds overall) or less than 0 (the player lost more rounds) and handle the player death or npc movement in each branch. Of course it will be zero if there were only ties or equal losses and wins but that's up to you to decide if that constitutes a loss or a win.
Also with this method of incrementing the game variable I suggest setting your variable to 0 before calling the minigame. You could also just set the variable instead of adding to it if you're not running multiple rounds. ie
$gameVariables.setValue(NUMBER, winner[0]);

Hope this helps!
 

Latest Posts

Latest Profile Posts

DamageActor3_7.png added!
index.php

Making a "characters first appearance" drawing for my game. Now I just have to finish the sprite art animation for her grand entrance.​
ScreenShot_9_24_2022_7_56_24.png
New area being started today. It leads to one of the games 2 optional bosses.
A secret desire of mine: I want to make a horror game based on Celtic mythology. I've seen plenty of Greek, Japanese and Norse mythology-based horror games, but I don't think I've ever seen a Celtic-based horror game anywhere...
FF Opera Omnia is in quite a bizarre state right now. As soon as the tutorial is completed, the game levels all characters to level 70 and makes all new characters start at level 70.

Forum statistics

Threads
125,537
Messages
1,171,785
Members
164,604
Latest member
beginner37
Top