Skill With Two Potential Outcomes

TheChatotMaestro

doesn't know what she's doing
Veteran
Joined
Oct 27, 2017
Messages
43
Reaction score
1
First Language
English
Primarily Uses
RMMV
How do I make a skill that has a 50% chance of doing one thing, and a 50% chance of doing a different thing? (EG: 50% chance to raise MDef, 50% to raise PDef)
 

Harosata

Dramatic Lightning's BFF
Veteran
Joined
Aug 20, 2015
Messages
246
Reaction score
70
First Language
English
Primarily Uses
RMVXA
Without scripts, you need at least 3 skills and one Common Event. One skill (50-50) only calls a Common Event as a feature and your other two is PDF 100% and MDF 100%.

Your Common Event should be something like

if script: rand(2) == 0
-Force Action: PDF 100% - Caster on Last Target
else
-Force Action: MDF 100% - Caster on Last Target
end.

In theory, casting 50-50 will run this common event, which will then cast one of the two skills depending on what rand(2) generates (0 or 1). Last Target should take the last target of the caster, and since we targeted this through 50-50, the MDF/PDF would be cast on that same target.
 

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

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,051
Messages
1,018,549
Members
137,837
Latest member
Dabi
Top