Dragon_Soul

Villager
Member
Joined
Mar 26, 2021
Messages
15
Reaction score
0
First Language
English
Primarily Uses
RMMV
I might just be stupid, but how do I make a percent chance happen through common events. I have a skill I called "Raw Power", it increases your attack by 100% for 3 turns, but each use has the chance to inflict rage. How would I make this happen at a 25% chance rate?
 

Jragyn

JABS codemonkey
Veteran
Joined
Aug 14, 2012
Messages
221
Reaction score
172
First Language
English
Primarily Uses
RMMZ
I might just be stupid, but how do I make a percent chance happen through common events. I have a skill I called "Raw Power", it increases your attack by 100% for 3 turns, but each use has the chance to inflict rage. How would I make this happen at a 25% chance rate?
Sounds like the "100% attack up for 3 turns" and "rage" should just be two separate states that can be applied by the same skill. The first effect for 100% chance, rage effect for 25% chance.
 

Milennin

"With a bang and a boom!"
Veteran
Joined
Feb 7, 2013
Messages
2,879
Reaction score
2,050
First Language
English
Primarily Uses
RMMV
The above would be the best way to go, probably. But in the unlikely case you still need it to happen through a Common Event, you roll a random number between 1-4 on a variable (can be any variable, just use a temporary use variable for it). Then below that a conditional branch that checks whether the variable is at 1, and if so apply the special state to the user (this is easy to know if it's the only character that can use the skill, it'll be a lot more complicated if more characters can use it).
 

Dragon_Soul

Villager
Member
Joined
Mar 26, 2021
Messages
15
Reaction score
0
First Language
English
Primarily Uses
RMMV
I think I understand? Can I see either or of these in a image so I know if I am understanding it?
 

Jragyn

JABS codemonkey
Veteran
Joined
Aug 14, 2012
Messages
221
Reaction score
172
First Language
English
Primarily Uses
RMMZ
@Dragon_Soul
Thinking something like this on a skill in the skills tab of the database in RMMZ should do the trick, except I just used a couple of random states, you can specify whatever states your game leverages instead. (the stuff around the red marking)
1620766529705.png
 

Latest Threads

Latest Posts

Latest Profile Posts

would i get in trouble if i didn't take out the computer icons on my fake computer screen i had Discord, Messanger, and rpg maker up
Auto-Adjust Text Outline, Run Common Events on Transfer | RPG Maker News #111

I sweep the floor. My brother, "You didn't do a good job. There are dust bunnies everywhere." He sweeps the floor weeks later. "I just swept. Why are there dust bunnies everywhere?" Me," Guess you didn't do a good enough job."
Today, I tortured my internet by downloading 20 files at once and then I played a guessing game as to which would finish their download first :kaojoy:
Oh god, just watched HawkZombie's stream of my game and realised that *none* of the branching scenes work properly. One has no character graphic, one soft locks due to a passability issue, and one doesn't have its autorun set to the right trigger. I've got first prize in the bag, baby.

Forum statistics

Threads
113,791
Messages
1,077,505
Members
147,836
Latest member
egekaia
Top