Begin Battle with Status Effect

darkmatter404

Villager
Member
Joined
Feb 2, 2014
Messages
28
Reaction score
4
First Language
English
Primarily Uses
I've successfully set up my game to have a series of passive skills (status effects with no icon) that apply forever using YEP Auto Passive States, and one of those passive abilities is adding a three-turn status effect to one character once battle begins.

If you've player Paper Mario TTYD, it would be the badge lucky day- you get a random positive status when battle starts. Exactly that, with a different effect. It would be a permanent upgrade though, so once you get the ability it would have to work in every subsequent battle.

I've searched around the forums and the few responses I've found either focus on one specific battle or use some crazy workaround that would conflict with all the "status effects"- ie, passive abilities- all my characters have active in combat.

Is there any simple way to just add a status that applies before every fight? Tied to an actor, armor piece, weapon, etc?
 

Doktor_Q

I'm not a real doktor, but I am a real Q
Veteran
Joined
Aug 1, 2016
Messages
873
Reaction score
562
First Language
English
Primarily Uses
RMMV
There's a Custom Battle Start Effect lunatic mode tag in Yanfly's Buffs & States Core. I'd make a passive state responsible for applying your start-of-battle buffs, and use a couple lines of javascript to add the states you want.
Code:
<Custom Battle Start Effect>
  user.addState(yourStateID);
</Custom Battle Start Effect>
should do the trick if it's a constant state, otherwise look up a bit on how to use Math.random() to make it pick an effect at random.
 

darkmatter404

Villager
Member
Joined
Feb 2, 2014
Messages
28
Reaction score
4
First Language
English
Primarily Uses
Just tinkered around with it for a bit and got it to work.

You've been systematically fixing my game almost every day this week, you legend. Thanks.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,047
Members
137,569
Latest member
Shtelsky
Top