Is it possible to have a <custom apply effect> run a common event? I looked through the Buffs and States Core help file, but didn't see anything about common events. I assume it can be done, I just don't know what to write.
<Custom Apply Effect>
What goes here to run a common event?
</Custom Apply Effect>
Thanks for reading!
~Serv
I'm rather uncertain of the exact code, but I believe it is:
"
$gameTemp.reserveCommonEvent(n);" Where n is the Event ID.
I'll test it out right now and let you know!
*edit*
Doesn't seem to work. I have the common event set to simply display a text, "Hello World", and tint the screen. Nothing happens.
<Custom Apply Effect>
$gameTemp.reserveCommonEvent(27);
</Custom Apply Effect>
You could just got the route of switches, and instead place inside the <Custom Apply Effect> notetag "$gameSwitches[n] = true" then have the common event be autorun on switch.
Hey,
sorry for the late answer. I am having the same problem at the moment, and I think that <custom apply effect> has a limited range of
calls it can make. If you are using action sequence, insert "common event: x" in the skill that provides the state.
Alternatively, u can insert $gameTemp.reserveCommonEvent(x); [damageFormula] in the formula of the skill.
However, calling a common event in <custom remove effect> seems to work (??). If someone could explain this to me, I would be very happy ^^