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 Profile Posts

I spent the past couple of days transferring my RM2K3 project over to RMMV. I upscaled everything 3x and it looks so cute I can't T_T
Small update on my random sprites sheet :kaoswt2:
cfcQKj8.png


Here's Azrael sprite with the fire weapon, hope it came out good.
A13774F4-298B-4F4D-B639-E6921E49FCC2.jpeg
Art test for a victory title screen change

Forum statistics

Threads
113,763
Messages
1,077,285
Members
147,800
Latest member
visual2021
Top