OK I kinda have it working 100% the way I want but for some reason I need a 5 second wait to force a idle HPP check.
Here is the Code:
AutoExe:
Code:
ae register 10012 "hpp_100" input /ja "IdleMode";
This is used to fire once I get 100% so it will go to just PDT only gear.
SpellCast:
Code:
<variables clear="true">
<var name="CheckIdleHPP">yes</var>
<var name="Idle">Idle-PDT</var>
</variables>
Code:
<if spell="CombatMode">
<!-- Idle Set auto swap -->
<if status="Idle">
<if hpplt="95">
<addtochat color="121">[ Idle-Regen-10tic Set ]</addtochat>
<var cmd="set Idle Idle-Regen-10tic" />
</if>
<elseif hpptg="94" hpplt="100">
<addtochat color="121">[ Idle Idle-Regen-6tic ]</addtochat>
<var cmd="set Idle Idle-Regen-6tic" />
</elseif>
<else>
<addtochat color="121">[ Idle Idle-PDT ]</addtochat>
<var cmd="set Idle Idle-PDT" />
</else>
<if advanced='"$CheckIdleHPP" == "yes"'>
<var cmd="set CheckIdleHPP no" />
<addtochat color="121">[ Idle Checking Idle HP Variable ]</addtochat>
<cmd>wait 5; CombatMode</cmd>
</if>
</if>
<!-- General gear handling -->
<if advanced='"$Active" == "0"'>
<if status="Engaged">
<var cmd="set CheckIdleHPP yes" />
<equip set="TP|$Armor" />
</if>
<elseif advanced='"%status" != "zoning|dead"'>
<equip set="$Idle|$Armor|Movement" />
</elseif>
</if>
<cancelspell />
<return />
</if>
<elseif spell="IdleMode">
<if status="Idle">
<cmd>CombatMode</cmd>
</if>
</elseif>
Ninjutsu/Job Abilities use the
Code:
<var cmd="set CheckIdleHPP yes" />
check so after each cast if I am at ~98% HP it will fill me back up.
I been using the variable because when I disengage from enemy I will sit at just under full HP because it seems SC thinks I am 100% even though I'm not.
IE: Engaged I am 1000/1000 HP then go Idle and now 999/1000 cause of gear change.
So I had to add the wait 5 when I am idle/disengaging to get it to work.
I guess my biggest question is is there a better way to write this in so SC will run the check and change to the right regen set soon as I disengage or right after cast/job ability?
Mainly trying to get rid of that 5 second wait after performing an acton/ending a fight.
Any help would be great, thank you.