Hello, we're looking for a plugin that will allow us to modify the enemy tag so that if a state is inflicted in combat, another is immediately added.
For example, if poison is added to a slime, blind is immediately added. Poison is kept (it's not overwritten), but it's added as well. So in this example, the following occurs:
1. The slime is inflicted with poison.
2. Via the plugin, the slime is immediately also inflicted with blind.
3. The slime now has both poison and blind combined.
Please let us know if you have any questions.
this all in 1 action or is the poison from before and the blind is getting added when it normally would have poisoned?
damage formula: if (b.isStateAffected(x)) b.addState(y); formula
if hits add state Y as long as it was already affected by state X before hand
Not 100% sure what you are asking. If Poison is inflicted, then both poison and blind will be applied.
I will ask just to make sure. Is there a reason why you don't just make your poison state also inflict the same effects as your blind state to achieve both results at once?
It there a reason you can't just have the skills that inflict poison inflict blind too?
Or is it that you want blind to be added ONLY if poison has successfully been added first?
If so, you may wanna try using the damage formula to do it.
Yes, I want to add blind only if poison is successful.
And it needs to be per enemy, not per skills, so the damage formula won't work.
Ok. So to expand on your opening example, say we have 2 enemies: a bat and a slime.
You poison the bat and it's business as usual. The bat gets the poison state added no problem.
The slime has a notetag in the db saying when poisoned, add blind, so when the slime gets poisoned, it automatically has blind added as well. Is that the way you want the plugin to work?
Ok. I'll see what I can do. For the sake of asking, is there any other relavent features you'd like to see?
I don't think so. This is mainly to assist the player is really debilitating enemies if they use the correct states.
what u can do is make a state that does nothing. the slime has this state on him. and in damage formula for poison have
if (b.isStateAffected(X)) b.addState(Y)
where X is the nothing state and Y is blind.
as long as the attack hits it will blind them 100% but only if they have that nothing state on them.
im using this in my current game to add elemental damage over time effects to enemies weak to that element and also for my redmage class
so it can use poison twice in a row to make its a stronger effect
the poison damage formula can has as many "if" statements as needed just need to make a separate nothing state for each different added effect u want to happen.
if (b.isStateAffected(97)) b.addState(8); if (b.isStateAffected(98)) b.addState(11); .....
the slime has state 97 on it which does nothing except tell the damage formula what to add. while the bat has state 98 on it
u might have like an undead bat with 2 of those nothing states on it so when u use poison it will get both rage and slow or something like that
this doent have to b used with only poison either. u could add that same if statement to damage spells or other status effects too. just make sure that the end of the damage formula looks like .addState(X); 0 if it is something that doesnt deal damage normally.
just replace the 0 with a normal damage formula if it is an attack spell
On first look, the only thing that calls out to me is the spelling of the plugin.
Try renaming the plugin exactly the same as in the header. (Caps count)
Also, make sure the enemy is not immune to the new state. The rate, etc are not calculated, but if immune, the state won't be added.
And for testing purposes add the add state message so you can better confirm that the state was applied.
EDIT: also as a test, you can add the KO state.
Let me know if we need to troubleshoot further.
Hey there!
OK, we did the following:
1. Renamed the plugin to MalAddExtraState. (Deleted it from the project, saved, and readded with the correct capitalization).
2. Made sure the enemy is not immune to the new state.
3. Made sure the messages were on.
4. Changed the new state to KO.
We still cannot get it to work. The exact same issue is showing up, where the new state just isn't applying.