I use Sumrnddde's timed attacks an I have it set up for each power bracket will cause it ta heal or damage tha player depending on if they do tha timed attack right in tha margin. I use this:
if ($gameTemp.tas_power >= 0.4) { a.gainHp(1) } else { a.gainHp(-1) }
So full power = 1 an if tha player hits within tha margin of 0.4-1 then tha skill is "successful" an plays out.
An that works for tha HP part. ... but I want tha first thing ta also inflict a battle state to an enemy. Cuzz battle states will be used ta check an call a common event in battle (a skill picture). So how do i add additional "inflict state to tha enemy" in battle during that first part.? ?
Or is there a easier way ta do "picture display on success" besides battle state/event check
throw b.addState(x); in whichever {} its needed in.
So just if ($gameTemp.tas_power >= 0.4) { a.gainHp(1) b.addState(1) } else { a.gainHp(-1) } right? ? I'll try it
Like ($gameTemp.tas_power >= 0.4) { a.gainHp(1); b.addState(1); } else { a.gainHp(-1) } ?
tried different possible combinations an can't get it ta work. ...
May be I have tha rest set up wrong?? ? I have it on troop ta flip switch ta call common event with tha skill picture if tha state is inflicted on the troop events. Can may be tell me exactly what ta put else in there (if thats not how ya do it- I was just coming up with things myself tryna get it right)
Still can't get it ta work so any suggestions yo? ?
Now I tried allso a script for skill cut-in (before I tried this way) but tha problem with that is that it'd play that animation before tha skill AND play it again if tha skill was successful. ..
please post a screenshot of the entire skill that you're trying to use.
It might be something else in that skill or it might be a typo that you're automatically correcting when retyping here or a few other causes, but we need to see the full data of that skill to continue to help.
OK, where to start....
1) please restore state #1 to its original function (death) and use another state.
If you start a new project, you'll see a note (which you already deleted in that state screenshot) that the state #1 has specific functions, and those cannot be removed without a plugin (and it would cause problems if they were removed).
To be more precise, applying the death state will always set HP to zero and giving HP to an actor will always remove the death state, even if you yourself do nothing as part of the skill.
2) never delete the names in the database, it will make your events more difficult to read.
That is more like an advice, because you get things like that conditional branch "if #1 is inflicted", that would list the name if the state had a name
3) you're testing if the actor is death on turn 0 (which means before the combat starts) and never again later, so of course nothing reacts to that.
4) during battlescene, common events can only be called - there is no autorun or parallel process active.
So instead of switching on switch #4 to trigger the common event, remove the switch and use the "call common event" command (and set the common event to no trigger as well)