So, in the note-tag "<custom catb cs: i, c, a>":
i = the interval of triggering the effect? If set to 1, the state will be updated every seconds, if set to 2 than the state will be updated every 2 seconds, etc?
c = the condition of the state? So, I could, for example, make conditions like "$game_party.gold % 10 == 0", and that state would only trigger if the party got a gold amount divisible by 10? I know, epic example. 😛
a = the actual effect of the state? I noticed that you made a common event example in the script, but common events can't run in the battle normally. Did you make common events work in battles or it is just an impractical example?
And there is the "where s ranges from 1 to 99 seconds" comment. What "s"?
Is it this "s": "<custom catb cs: i, c, a>"? Or something else?
The duration is set in the database editor with the "duration in turns" option or not?
Also, the description says "Lets users set up to 4 states with duration being 1-99 seconds".
What does that mean? We can have only 4 states set up this way or there can be only 4 states like this activated on a battler at once?
Sorry for the many questions! I just want to make sure that I don't misunderstand anything.
The script sounds very useful, and I have it installed in my project, but I never actually used it before, because of the heavy scripting required. Now I learned some scripting and it doesn't seem too intimidating anymore. 😀
1. The countdown will trigger every second regardless of what the value of i is, but c will only be checked every i seconds and a will only be executed if c is checked and returns true
2. You're right on how c and a works.
3. Some Common Events can be run in battles, as some skills have an effect being Common Event and they can call those Common Events as intended.
Spoiler
The Common Event Effect is implemented using this method:
#-------------------------------------------------------------------------- # * Apply Effect of Use to Other Than User #-------------------------------------------------------------------------- def item_global_effect_apply(effect) if effect.code == EFFECT_COMMON_EVENT $game_temp.reserve_common_event(effect.data_id) end end
4. s is a typo, it should be i, and yes, the duration is set in the database editor with the "duration in turns" option. Actually it can be more than 99 seconds, but as long as the countdown of actor states is greater than 99 seconds it won't be displayed due to how Yanfly Engine Ace - Buff & State Manager works.
5. You can set as many countdown states as you want and you can add as many of them to a battler as you want at once, but only 4 of them will be displayed on the status window due to how YEA - Ace Battle Engine works.
Ok, I did what you said, and this it shows this mistake
I changed the line of CATB2 to this:
"@result.clear; @result.make_damage(2, $data_skills[152]); execute_damage(self)"
The ability number 152 has HP damage (I didn't put something in the damage formula for this one) and this is what happens
Ohh, I have a question, is there a way when the sap state makes its work, doesn't display the damage per second? I want to remove that display of this damage
1. For the error, may you please list all list you used preserving their order?
2. To stop the damage from displaying, change CATBA2 to this instead: