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

Trihan

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

Zakarijah

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

how does everybody even finish anything

i have like 5 projects in the backburner and it's just so sad that i probably won't get to finish all or maybe even any of them
Did you know that 90% of people in the world use the number in their sentence as they see fit?
It's been a long time since I was here but I have a lot of updates... btw I am teaching again about game programming and game design in some schools here in Brazil hahahaha It's good to see kids and teens learning this kind of thing!
welp, I literally can't continue working on ALEX now that my MZ trial is up (unless I somehow place in the jam which I don't remotely deserve to for my unfinished crap) so I am back on my bullshit

Forum statistics

Threads
113,891
Messages
1,078,235
Members
147,983
Latest member
H3ctorGH
Top