RMMV Calling Common Event in passive states using YEP_BuffStatesCore and YEP_AutoPassiveStates

Zakarijah

I love making maps!
Veteran
Joined
Aug 18, 2019
Messages
153
Reaction score
21
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,418
Reaction score
2,513
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
153
Reaction score
21
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,418
Reaction score
2,513
First Language
English
Primarily Uses
RMMZ
Inside your <Custom Action End Effect> tag.
 

Trihan

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

Zakarijah

I love making maps!
Veteran
Joined
Aug 18, 2019
Messages
153
Reaction score
21
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,418
Reaction score
2,513
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

Create MiniMaps, Sprites for MV Enemies, & Aethereal Plane Battlebacks | RPG Maker News #74

Vtubers Vs MOTHER.png

This might be my next project. You like it?
I'm off to search the master script list for my skill issue. HOORAY! FUN!
Fun fact: Digimon is an isekai :kaoswt2:
The problem with being a perfectionist is that you are never done with something.

Forum statistics

Threads
112,326
Messages
1,067,403
Members
145,963
Latest member
Nekonix
Top