RMMV How to store critics in a variable

STARFALL

STARFALL
Veteran
Joined
Jul 6, 2020
Messages
56
Reaction score
7
First Language
spanish
Primarily Uses
RMMV
How to count the critics made by a player and store them in a variable. and stop this count when it reaches a certain number
 

Soulrender

Jack Of All Trades
Veteran
Joined
Jan 12, 2019
Messages
808
Reaction score
440
First Language
Poland
Primarily Uses
RMMV
The easiest way would be using this plugin:

Then create an empty state like this:

Then in note field paste this:
Code:
<Custom Establish Effect>
if (target.result().critical && value > 0){
var limit = 10;
$gameVariables.setValue(1, $gameVariables.value(1) + 1);
if ($gameVariables.value(1) >= limit){
$gameVariables.setValue(1, limit);
}
}
</Custom Establish Effect>
and give that state to your actors. Finally it should look like this:
 

STARFALL

STARFALL
Veteran
Joined
Jul 6, 2020
Messages
56
Reaction score
7
First Language
spanish
Primarily Uses
RMMV
You can't imagine how much I needed that for my game. Thank you
The easiest way would be using this plugin:

Then create an empty state like this:

Then in note field paste this:
Code:
<Custom Establish Effect>
if (target.result().critical && value > 0){
var limit = 10;
$gameVariables.setValue(1, $gameVariables.value(1) + 1);
if ($gameVariables.value(1) >= limit){
$gameVariables.setValue(1, limit);
}
}
</Custom Establish Effect>
and give that state to your actors. Finally it should look like this:
You can't imagine how much I needed that for my game. Thank you
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Nyeh heh heh


Goblins like spooktober
Welp, ended up at the hospital with the oldest so mebbe might make the game jam's deadline. Maybe not. Regardless, really digging MZ.
I had lots of fun! Kids loved me, and some took pictures. Unfortunately, the videos didn't send... but you'll see Chica in action when I do a trailer for Fandom Scouts!
Dama wrote on akoniti's profile.
Hi
Thanks for your review.
I was checking the trailer for details and as the woman shut the door at the exact moment the song I was hearing said "you slim the door" and I couldn't resist to add it there. :D And I used this idea one more time on another scene.

Forum statistics

Threads
104,693
Messages
1,008,186
Members
136,189
Latest member
MalaacSoran
Top