issues with action patterns

I've always had a prob dealing with action patterns... long story short:

Very simple, i want  my creature to only cast a spell when it is at 50% or less health, how ever even though it has taken no damage, it uses the spell..?  🙂

so will it use the spell in 'general' along with the rest in the 3 only ratio and then it takes priority when the creature is at 50% or less? Cause it aint workin for me 🙁

*edit, i have tried it at 10 and it still does the same thing, dropping it down to eight seems to prolong the use of the spell though still not make it do as it should.

*edit, i adjusted it a bit i set a page event on the troop page:

condition enemy [1.witch] hp 50% or below'

turn a switch opening the spells lvl 10 priority, what i noticed was that it turned the switch when the players hp hit 50% or below..  hmm tried this before also, though not looked at it as 'closely'

any help is greatly appreciated >.<

the scripts i am using if it makes any difference 🙂

Yanfly engine ace
Yanfly EA Move restrict
Tsukihime’s Equip slots and customEquip types
Tsukihime’s Large choices, choice options and custom event triggers
Khas awesome lighting effects
Xail System- core
XS-pretitle (Xail System)
Quest Journal
Game_Quest

is this a script issue?

ive searched, it is hard create the right question/ words to locate a fix >.<

*edit: another thing i have noticed, the creature is not responding to HP adjustments, cranked it's hp to 999999 to test, , it died at around 120 i think, maybe i should do a fresh install of rpgmaker? thinking that transfering everything over will just bring the issue.

thanks again!  😀
That's bizarre: I can see that you defined 50% in the small box to the side, but look in the main monster info box - "HP 0% ~ 107269324..."??? If it was being read literally, small wonder it was being used at all HP percentages.
That's a problem with the way it's displayed. It works properly in-game.


Is that saying when their HP is BELOW 50%, or ABOVE 50%? Hover your mouse over parts of that line and see what the popup description says (I'm at work and don't have Ace with me, so can't check myself).


If you want it to use it in general with the others, keep it within the 3 distance.


If you want it to use that spell, and that spell ONLY, when it's below 50%, make its priority higher than the others (more than 3 higher) so it's the only one to choose from.


If you want it to use that spell in general with the others most of the time, but ONLY that spell when it's below 50%, put it in twice - once with a similar priority and no condition, and once with the higher priority and the condition.


If you can't get the condition to work, you might need to use a switch or a state or something and activate it when they go below 50% and deactivate it when they go above 50%, then use the state or switch as the condition.
It states 'Possible when this characters HP has reached a specified percentage of the maximum'

Thanks i learnt something there 🙂

Tried and using your suggestions, thanks

Mid battle i get the monster to transform and transform back, pretty positive it was a contributing factor, messing up the switch lay out causing it to start earlier

it states stam and hp will transfer though of coarse the switches etc didnt (though hp never 'changed') which i can sorta over come with an animation

She summons 2 undead and consumes them one by one as they fight for her

the problem i had after sorting the first issue was getting her to stop consuming once she ate em all 😀

i used a state that seals her consume skill when the death state was applied to all  'consumables'

and then turned of the seal skill state when she summoned them again

Thanks again for your help 🙂

Original thread: https://forums.rpgmakerweb.com/threads/issues-with-action-patterns.30711/