Tsukihime Mana Shield Effect Help

Joined
Jun 2, 2020
Messages
4
Reaction score
0
First Language
English
Primarily Uses
RMVXA

When an actor with a mana shield state takes damage that's greater than their current HP, the mana shield doesn't absorb the damage, and the actor just dies. How can I make it so that the MP must reach zero before the HP takes any damage?
 

zeroscares

Veteran
Veteran
Joined
Oct 17, 2020
Messages
67
Reaction score
12
First Language
português
Primarily Uses
RMVXA
probably
@hp = [(@hp - hp_damage).to_i, 0].max if @mp == 0
or
hp_damage = @result.hp_damage - mp_damage if @mp == 0
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,660
Reaction score
563
First Language
English
Primarily Uses
RMVXA
Testing those script shows that it does work as intended, but only about 50% of the time.
It's like the shield is randomly applied to an attack.
Not sure what is wrong there.
 
Joined
Jun 2, 2020
Messages
4
Reaction score
0
First Language
English
Primarily Uses
RMVXA
probably
@hp = [(@hp - hp_damage).to_i, 0].max if @mp == 0
or
hp_damage = @result.hp_damage - mp_damage if @mp == 0
Tried adding the "if @mp == 0" part where you suggested, neither of them seemed to work. Tried using both of them at once, and it didn't work either.

If it helps, my actor has a larger Max MP than their Max HP.
 

zeroscares

Veteran
Veteran
Joined
Oct 17, 2020
Messages
67
Reaction score
12
First Language
português
Primarily Uses
RMVXA
Please tell me the names of all battle-related scripts you're using
 
Joined
Jun 2, 2020
Messages
4
Reaction score
0
First Language
English
Primarily Uses
RMVXA
Yanfly Core
Yanfly Ace Battle Engine

Yanfly Anti-Fail Message
Yanfly Follow Up Skill
Yanfly Skill Restrictions
Yanfly Skill Cost Manager
Yanfly Hide Skills
Yanfly Combat Log

Tsukihime Effect Manager
Tsukihime Mana Shield
Tsukihime Thorns
Tsukihime Add Self State

Tsukihime Troop Battle BGM
Tsukihime Post-Battle Events
Tsukihime Casting Time
Tsukihime Conditional States
Tsukihime State Animations

DoubleX's Counterattack Edit

Galv's Parameter Names

Craze's Accuracy Overflow

Fomar0153 Battle Events from another Troop

Selchar's Add Skill Command Exceptions
Selchar's FF7 Limit Break

I have also tried the edits you suggested in a new project, but it didn't work either.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

grief... lol... I keep seeing request for MZ versions of MV plugins. this is why I haven't moved over and just MZ for my MV project.
Egg-sitting minigame is coming along nicely. Are you a bad enough dino to keep all these raptor eggs warm?

I forgot to post the animated version of the previous map I was working on. I'm still arguing with myself on if I like the stark blue ground better than the undergrowth ground used on the waterfall map. Hmm...
now that fmod is free for indie(<200k revenue), it would be interesting to see someone add fmod support for rpg maker
Can't say I can't promise progress on a project just yet. But I can say I had fun databasing tonight. :)

Forum statistics

Threads
105,802
Messages
1,016,579
Members
137,496
Latest member
sulthorne
Top