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
805
Reaction score
438
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

Little early but to all of you that celebrate it :

Tomorrow is Halloween! I can't wait to go to Boxi Park and show off my costume! Also one of Dad's friends is staying the night, so he might get to see the show.
Here's the title-screen for the game I'm working on: :LZSgrin:
Oh man I've been struggling with event spawners and Qmovement compatibility for quite a while- went as far as to use a tool just to pick crops :kaocry: but Ritter got their spawner to work with Qmove and I'm screeing! It's still in testing period but just- the feeling of getting over a large gameplay hurdle is a HUGE relief, I'm so thankful to Ritter! It's a cheap paid plugin but totally worth it!
Welp, I just finished my favorite part of RPG making which is creating skills, now onto the tasks I like less so the motivation is lower. At least I'll get to create new ones while designing enemies!

Forum statistics

Threads
104,660
Messages
1,007,916
Members
136,148
Latest member
valval
Top