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,453
Reaction score
2,571
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,453
Reaction score
2,571
First Language
English
Primarily Uses
RMMZ
Inside your <Custom Action End Effect> tag.
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
3,453
Reaction score
2,571
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,453
Reaction score
2,571
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 Posts

Latest Profile Posts

Man, this quick One Map game is causing unprecedented amounts of trouble.
I always end up having issues with things i'd never expect.

Capture.PNG

Those friggin mountains man xD
Time for my daily walk/jog ''Literally starts raining while I open the door''
I just discovered there's a giant jellyfish in the Ace RTP. My day is made.

Forum statistics

Threads
112,401
Messages
1,068,057
Members
146,053
Latest member
komradiv
Top