Help creating a skill formula!

Regular
Hi! I want to make a skill that switches the TP of the target with the HP of the target! But I don't know how to make it happen? I tried using common events, but it just doesn't work? I guess i need a formula for the attack, but I don't know how to approach it! Can anyone here help me by chance?

Thanks!

Lord Vectra

Master Eventer
SW = b.tp; b.tp = b.hp; b.hp = SW; [Damage Formula]

This should work. SW can be renamed to anything. If you don't want it to do damage, putting 0 is fine though you'll have to find a way so "does 0 damage" doesn't show. It's possible, but I don't remember how.

Regular
SW = b.tp; b.tp = b.hp; b.hp = SW; [Damage Formula]

This should work. SW can be renamed to anything. If you don't want it to do damage, putting 0 is fine though you'll have to find a way so "does 0 damage" doesn't show. It's possible, but I don't remember how.
Yeah! Something along those lines... But there's a problem - the HP translates fine to TP with your formula but when the TP is applied as HP, it becomes this long small decimal number... Like 0.7,678,650 etc. etc. But it's starting to get there! Any ideas?

Lord Vectra

Master Eventer
Yeah! Something along those lines... But there's a problem - the HP translates fine to TP with your formula but when the TP is applied as HP, it becomes this long small decimal number... Like 0.7,678,650 etc. etc. But it's starting to get there! Any ideas?
Aight, did some testing. Do this:
SW = b.tp; b.tp = b.hp; b.hp = SW.floor; [Damage Formula]

This will force it to round down due to the ".floor" added when you are making their HP equal their TP.

kyonides

Reforged is laughable
SW.round would be better for it will simply remove the decimals.

Lord Vectra

Master Eventer
SW.round would be better for it will simply remove the decimals.
On testing, it can round up when it shouldn't which is why I use floor instead. The number before the decimal is always the number the TP was, so making it floor reduces the chances of it rounded up when the rounded down answer is always right anyways.

Regular
Aight, did some testing. Do this:
SW = b.tp; b.tp = b.hp; b.hp = SW.floor; [Damage Formula]

This will force it to round down due to the ".floor" added when you are making their HP equal their TP.
Thanks for taking you're time to help me I really appreciate it! It's a lot closer! When i use the HP Damage type, the one actor dies instantly. But when i use the HP recover type, they heal - but double the amount... So I've set it to the element Holy, and made the class of the actor 50 % immune to Holy attacks, and it works! But they still heal a little bit, but I'll take it

Lord Vectra

Master Eventer
Thanks for taking you're time to help me I really appreciate it! It's a lot closer! When i use the HP Damage type, the one actor dies instantly. But when i use the HP recover type, they heal - but double the amount... So I've set it to the element Holy, and made the class of the actor 50 % immune to Holy attacks, and it works! But they still heal a little bit, but I'll take it
Weird. Have you put 0 where it says damage formula but without brackets?

Regular
Ah of course! Works like a charm! Thanks a ton
Weird. Have you put 0 where it says damage formula but without brackets?

Latest Profile Posts

Arrr me mateys, have ye seen the new Advent pirates? Wouldn't want to cross paths with those scallywags.
Is there a clinical term for the disorder wherein you always have way too many Internet browser tabs open?
Kokoro Reflections is my favorite tileset maker. I absolutely love their work. I have bought quite a bit from them. Best RPG Maker tileset creator ever imo.
Me working on a deadline, "don't make the baseline and chords too funky, don't over compose it... remember, you have to finish it." Touches MIDI controller...instant funk.
TGA are coming up, and I'm still mad Lies of P didn't get nominated.
Like, they chose a remake of a 20 year old game and a vanilla 2D Mario game over it?

Bah, humbug!
I'll be there for the trailers and whatever weird mistakes are made.