I have some scripted arena fights the actor must win and instead of just button mash attack, i want the actor to use different special skills for different enemys to survive a attack that would one-shot her. Im looking for a way to set enemy TP to 0 at start of battle, then enemy can use a charged attack that generates 50 TP and my actor has 1 turn to use "pummel" to silence the enemy and simultaneously reduces their TP to Zero. I was able to make a charge skill that generates 50TP but cant find a option so enemy starts with 0TP or drain enemy TP. I've tried something simular with MANA instead of TP, so the enemy charges and receives 50 mana to use his 50 mana cost ultimate skill, but neither mp drain nor mp damage seem to do anything. It shows 50 in blue color when my actor pummels, but enemy still has his 50 mana left for his skill and wrecks me. damage formula is "a.atk * 50 - b.def * 0" type is MP damage, element is none, tried the same formula with mp drain.
Ive put ~300hours of work in my ~60 minutes of actual gameplay so far, to push the gaming expierence and quality as high as possible and it rly drives me insane, that i fail so hard at something i thought was a simple 5 minute task, im trying for hours without any success. Sry for my spelling, not a native english speaker.
Edit: We found a simple way to do it, added tutorial at the end of thread.
First of all, enemies can have and gain TP but I don't think that they can spend the TP. They might ignore TP costs as well. It's kind of weird but it's intended.
However, it's very strange that the MP version of what you're trying to do also doesn't work. It should definitely work as you were hoping - the MP drain should stop the enemy from using the attack if they no longer have enough MP.
Remember that (unless you are using a plugin or troop eventing to change this) enemies always start battles with full MP. So if they have 200 Max MP, they charge 50 (staying at 200 because it's the max), and then you drain 50, they'll still have 150 MP, which is enough to use the skill.
If that's not the issue, then I would recommend finding a plugin that shows enemies' HP/MP bars. That will help you determine whether it's a problem with the enemy's behavior, with the MP Drain move, or with their actual MP amounts. Additionally, you could try implementing the MP requirement through enemy behavior rather than through skill costs: Give the one-shot skill a high priority, but also give it a requirement that the enemy has between X and Y % of their MP remaining (so if they have 200 Max MP, they would need to have between 25% and 100% of their Max MP in order to use this skill).
I definitly testet TP on enemy and he wont use the skill, until hes charging and getting the 50TP, i have just no way of removing it. Hm, maybe the problem is, that i let him start with 0 Max MP, he gets 50 and has 50/0 Mana, i'll consider your solutions and try to work this out =D TY for your response.
Kind regards
For anyone who may tumble over this threat, we were able to do it way simpler and functional than before, enemy MUST Charge the attack and if we want to, we can "kick" him and set it to a non charged state, so he wont use the skill just next turn and has to use charge up again:
Go to Database>Types and add charged Spell(call it whatever you like)
Create 2 States:
1.Charge: set removal condition to turn end and turn duration 2 turns.
2.Interrupt: create Trait "Seal Skill Type charged Spell", removal turn end, duration 1
Create 3 Skills:
1.Pummel/Kick(call it whatever you like): nothing matters(dmg formula skill type,etc) just add Effect "Add State Interrupt 100%"
2.Charge up: Scope "The User" and add Effect "Add State Charge"
3.Inferno Strike(you can call the spell/skill whatever you like): set Skill Type to "charged Spell"
Now we can interrupt the enemys charged attack by removing the charge state with our Pummel, this forces the enemy to use charge up again, before he can use Inferno Strike. This will lead to way more dynamic bossfights, because you simply get oneshot if you dont use the tools provided to cancel/block the attacks you have created.
there is an even simpler way to do this:
on the enemy action pattern, you can set a skill to the condition of a state and give it a high rating.
then that skill will be executed if the enemy has that state active during the decision phase of the turn.
make that conditional state the charged up state as described above, but have that state be cancelled on damage.
that is all that is needed to have a skill dependent on a charge-up turn and allow that charge-up to be interrupted by damage.