MiLo-Katergaris

Veteran
Veteran
Joined
Apr 17, 2019
Messages
37
Reaction score
4
First Language
English
Primarily Uses
RMMV
I would like to use Yanfly's Action Sequences (if there's another way I'd appreciate those answers as well, but I'm pretty sure it can be solved with that plugin and I'm already using it) to create a unique skill.

The skill has a 10% chance to add a state to the target. However, on the second turn in battle the state will have a 100% chance to be added to the target. How would I go about doing this?
 

BlueMoon

Nebula Games Leader
Veteran
Joined
Jan 10, 2017
Messages
363
Reaction score
485
First Language
Italian
Primarily Uses
RMMZ
I'm not sure how you're making this, but if you're making everything through action sequences:

Code:
if $gameTroop.turnCount() === 2:
// add your state here...
else
if Math.randomInt(100) > 90: // 10% of chance of adding the state
// add your state here...
end
end

However, if the application of the state is also at 100% after the second turn, you can use just $gameTroop.turnCount() > 1 as condition.
 

Latest Threads

Latest Profile Posts

Working on a characteeer! (Why is it so hard to color hair?) ;-;
Silly-Sketches.png
Just finished eventing a couple simple puzzles in RMMV, for my very first game "Sample Quest." Just messing around, throwing things together, and calling it a story XD On a non-RM note, got my hair cut today!
I feel the need to inform everyone on the forums NOT to go with Web Hosting Canada for your hosting needs. It is by far the worst customer service and just overall experience I have ever had with hosting and I am Canadian...
BCj
Got another eye surgery monday. Hope I'll recover quick and all's well. A bit tired of surgeries. On a happy note, working on the next chapter of Escalia so hope I can continue soon :)
Celebrating the arrival of autumn in the Northern Hemisphere :)

Forum statistics

Threads
115,368
Messages
1,089,316
Members
150,057
Latest member
kotfwing
Top