Hey everyone! Thanks for taking the time to read this.
I need enemies to have TP in combat, and for skills to be able to Damage and Drain enemy TP. I thought this was actually included on the base engine, but apparently it's not. I'd also need control over how their TP is generated (none, in the case of my game, I don't want it to regenerate for any reason, but I figure having access to those options from the plug-in window would be very helpful to anyone else who uses this script). I could do this myself with variables and scripting, except that I need their MP and TP to display as a bar on the enemy like HP does, and doing that just with scripts is beyond my current abilities.
I'm not sure if the MP/TP bars is in any way related to the mechanic itself on the programming end, so should this be split into two plug-in requests? One for Enemy TP and one for Enemy MP/TP Bars?
Enemy TP is part of the base game and works exactly the same as actor TP as far as I can tell - they gain TP if they use a skill with TP gain and when they take damage. If you simply install a plugin that adds MP/TP bars you should be able to see it working. I think there are several to choose from; I use the one by Aesica.
Changing how TP regenerates on the other hand does require a plugin. I think I saw a plugin from either SRD or HimeWorks that does this; I also have one in development, but it's not released.
Yes. I'm not sure about other TP-related plugins but mine definitely handles TP damage and drain. I was meaning to release it anyway, so now's as good a time as any. It'll be in my plugin thread.
Even without an enemy HP/MP/TP bar plugin, you can see the effect of enemy TP by giving an enemy a skill that costs TP, and noticing that it generally won't use that skill until a few turns have passed.
Try this in the damage formula:
B.gainTp(x)
With x being a negative number.
Make sure the dam formula itself ends with a number.
For example
b.gainTp(-25); 200
This will do 200 damage to the target while making them lose 25 TP.
Hey guys,
So I tried everything above and managed to get the bars working as intended, but I still have no control over enemy TP from a mechanics perspective. I need it to function as a second MP bar - all enemy TP bars starting at 100, does not regenerate when attacking, can be damaged and drained by player skills or consumed by spell casts.
Modifying how TP works will require a plugin. My SFG_ExpandedTP should be able to handle what you need, I think, not sure if there are others. Basically set init TP to 100 and the formula for TP charge to 0, and make your actors preserve TP if you don't want them to also start with 100 at the beginning of every battle. To prevent it from regenerating when attacking, just set the TP charge of all your skills to 0.
I organized the plugin parameters in an unfortunate way which is very confusing. The Init Value applies only to actors or enemies that don't preserve TP. If you've set my plugin to invert Preserve TP, then make sure no enemies have the Preserve TP trait. Otherwise, you'll need to add it to all enemies.
From my understanding of your requirements, I think it's correct for actors to have Preserve TP while enemies do not have Preserve TP (and actors should have a TP Regeneration trait). If that doesn't work out, it's possible my plugin won't work for your needs as it is right now.
That sounds like the plugin actually isn't being run. Perhaps it requires SFG_Utils to be installed above it. If you already did that and it still doesn't work, try pressing F8 to see if there's some error in the console.
Is the 10 TP gain on the attacker or the target?
If it's the target, can I see your plugin parameters?
Parameters:
Effect ID - 100
Show In Status - true
TP Icons
Buff Icon (blank)
Great Buff Icon (blank)
Debuff Icon (blank)
Greater Debuff Icon (blank)
Preserve TP
Invert - False
Init Value - 100
Clear Value - 0
Charge TP by Damage
HP Damage - false
MP Damage - false
Formula (blank)
TP Gain Bonuses
Critical Bonus - 0
Super Bonus - 0
In addition to the above, my test Enemy also has the following in their Note Tags:
<base_mtp: 100>
<init_tp: 100>
The TP gain problem is on the Actor, not the Enemy.
Actor A starts battle with 0 TP (correct), Enemy B starts battle with 99 TP (should be 100)
Actor A attacks Enemy B
Enemy B is still at 99 TP (no gain)
Actor A gains 10 TP