Replies: 3 comments 4 replies
-
I quite like the removal of the gambit in the listener 👍 |
Beta Was this translation helpful? Give feedback.
1 reply
-
well, i thought i had a grip on this. But, as soon as she uses another mobskill the gambit is reset and she'll use psychoanima again. spellObject.onMobSpawn = function(mob)
local psychoAnima = 3539
local hysteroAnima = 3540
xi.trust.teamworkMessage(mob, {
-- Offets for Lion II and Iroha II messages appear to be incorrect.
[xi.magic.spell.NASHMEIRA_II] = xi.trust.messageOffset.TEAMWORK_2,
[xi.magic.spell.LILISETTE_II] = xi.trust.messageOffset.TEAMWORK_3,
[xi.magic.spell.ARCIELA_II] = xi.trust.messageOffset.TEAMWORK_4,
})
mob:addSimpleGambit(ai.t.SELF, ai.c.HPP_LT, 35, ai.r.MS, ai.s.SPECIFIC, psychoAnima)
mob:addSimpleGambit(ai.t.PARTY, ai.c.HPP_LT, 25, ai.r.MA, ai.s.HIGHEST, xi.magic.spellFamily.CURAGA)
mob:addSimpleGambit(ai.t.PARTY, ai.c.STATUS, xi.effect.SLEEP_I, ai.r.MA, ai.s.SPECIFIC, xi.magic.spell.CURAGA)
mob:addSimpleGambit(ai.t.PARTY, ai.c.STATUS, xi.effect.SLEEP_II, ai.r.MA, ai.s.SPECIFIC, xi.magic.spell.CURAGA)
mob:addListener('WEAPONSKILL_STATE_EXIT', 'ANIMA_USED', function(mobArg, wsid)
local itemOneGambit = mobArg:addSimpleGambit(ai.t.SELF, ai.c.HPP_LT, 35, ai.r.MS, ai.s.SPECIFIC, psychoAnima)
-- local itemTwoGambit = mobArg:addSimpleGambit(ai.t.SELF, ai.c.HPP_LT, 35, ai.r.MS, ai.s.SPECIFIC, psychoAnima) -- TODO: Finish
if wsid == psychoAnima then
print(itemOneGambit)
mobArg:removeSimpleGambit(itemOneGambit)
end
if wsid == hysteroAnima then
mobArg:removeSimpleGambit(itemTwoGambit)
end
end)
-- Receives a 10% Bonus to HP and MP
mob:setMod(xi.mod.MPP, 150)
mob:updateHealth()
mob:addHP(mob:getMaxHP())
mob:addMP(mob:getMaxMP())
mob:setTrustTPSkillSettings(ai.tp.ASAP, ai.s.RANDOM)
end |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
While trying to put this trust together, I've come across an interesting problem.
One of Prishe II's gimmicks, is that she has one-time use items that she uses under certain conditions:
My current method for handling this feature includes creating the gambit as usual, and having a listener remove it once it's used:
One alternative I tried, was setting a local var on Prishe when she executes this skill, then checking for it in the
onMobSkillCheck
of the mobskill script, but it seems like this function is ignored entirely for trusts (I tested this adding a print to theonMobSkillCheck
ofProvoke
, and having Valaineral use it (no print).How would you like me to handle this case?
You can see Prishe II use this ability below at the 5:35 marker:
https://drive.google.com/file/d/10BnOcIMXn3Ea2PIM8dVFk9zczYbPCQVQ/view
Beta Was this translation helpful? Give feedback.
All reactions