Question - reducing TP (enemy skill)

● ARCHIVED · READ-ONLY
Started by vs_rene 4 posts View original ↗
  1. Hi! Does anyone know how to make an enemy skill reduce the target (=player character targeted by the enemy) lose a certain amount of TP?

    I am using Yanfly's TP Manager plugin so I have a way to reduce TP by being attacked in general, but I'd like to craft a skill for enemies that for example reduces "10% of TP" for the character hit by it, or even drain TP to the enemy? (the last part is not necessary if not possible)

    I tried a lot of script commands through common events but I'm not really good at Java and it didn't really work... xD
  2. java will do nothing for you - MV uses javascript, not java. And as the saying goes - java is to javascript like ham is to hamster - they have nothing in common but the letters of the alphabet.

    that said, the best choice is to code javascript into the damage formula:
    b.tp-=0.1*b.tp;<insert regular damage formula after the colon>
    This would reduce the targets tp by 10% in addition to whatever other damage will happen.
  3. b.gainTp(-x); damage formula here

    X is the amount of tp to lose. Must be a negative here as a positive will result in a gain. Have fun.
  4. Awesome, thank you SO much for the friendly reply and helping out!