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
56
Reaction score
10
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,655
Reaction score
562
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
56
Reaction score
10
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

Why is there so much month left at the end of money? D=
Hello humans! How goes your day in this journey of living? I hope it is good, for I am human like you, and I am feeling great! Worship the altar.
Sand is basically small rocks

Forum statistics

Threads
105,607
Messages
1,014,966
Members
137,273
Latest member
Parzival
Top