RMMV Calling Common Event in passive states using YEP_BuffStatesCore and YEP_AutoPassiveStates

Zakarijah

I love making maps!
Veteran
Joined
Aug 18, 2019
Messages
150
Reaction score
20
First Language
English
Primarily Uses
RMMV
I'm trying to create a passive state in battle that cycles through a battle bonus at the end of each individual character action.

The state is invisible, never goes away, and is only ever active in battle

I have the common event set up and ready to go

But I have ZERO idea what I'm supposed to put inside the passive state's notetags for it to call a common event.

And I also don't understand how to make a state only last for a single character 'action' instead of an entire turn.
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
3,341
Reaction score
2,474
First Language
English
Primarily Uses
RMMZ
Try $gameTemp.reserveCommonEvent(id).

Also you can either set the state's auto-remove timing to be "on action end" rather than "on turn end" in the database, or in your state's <Custom Action End Effect> put in a user.removeState(stateId) instead of having any auto-remove setting.
 

Zakarijah

I love making maps!
Veteran
Joined
Aug 18, 2019
Messages
150
Reaction score
20
First Language
English
Primarily Uses
RMMV
Try $gameTemp.reserveCommonEvent(id).

Also you can either set the state's auto-remove timing to be "on action end" rather than "on turn end" in the database, or in your state's <Custom Action End Effect> put in a user.removeState(stateId) instead of having any auto-remove setting.
where would I put $gameTemp.reserveCommonEvent(id)?
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
3,341
Reaction score
2,474
First Language
English
Primarily Uses
RMMZ
Inside your <Custom Action End Effect> tag.
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
3,341
Reaction score
2,474
First Language
English
Primarily Uses
RMMZ

Zakarijah

I love making maps!
Veteran
Joined
Aug 18, 2019
Messages
150
Reaction score
20
First Language
English
Primarily Uses
RMMV
Inside your <Custom Action End Effect> tag.
I'm unsure what happened but now it seems to not even show up in battle anymore... I tried setting the common event to trigger: none/auto/parallel and nothing seems to change (parallel makes it run endlessly).

And right before this is was working but not cycling through the actual bonus'...

Did I mess something up?
 

Attachments

  • Battle_Bonus_01.png
    Battle_Bonus_01.png
    171.9 KB · Views: 4
  • Battle_Bonus_02.png
    Battle_Bonus_02.png
    212.6 KB · Views: 4
  • Battle_Bonus_03.png
    Battle_Bonus_03.png
    114.2 KB · Views: 4

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
3,341
Reaction score
2,474
First Language
English
Primarily Uses
RMMZ
If it won't call the common event, just put the effect into the notetag instead. You can generate a random number and add the state in code.
 

Latest Threads

Latest Profile Posts

BCj
Made a logo for Mana Star :D
330bb1fde7bb06b13e23fefd83501163.png
it's e3 season again..!
Today is a day of optimizations.

Forum statistics

Threads
112,175
Messages
1,066,340
Members
145,765
Latest member
Bubix
Top