I'm trying to incorporate a magic burst set in my SCH set, so I copied all relevant code from the BLM lua, but its failing to activate. Am I missing something? Heres the stuff I copied over to the SCH lua.
Code:function user_setup() state.MagicBurst = M(false, 'Magic Burst') send_command('bind @` gs c activate MagicBurst') end sets.magic_burst = {body="Helios Jacket",ear1="Static Earring",ring1="Locus Ring"}--{neck="Mizukage-no-Kubikazari"} function job_post_midcast(spell, action, spellMap, eventArgs) if spell.skill == 'Elemental Magic' and state.MagicBurst.value then equip(sets.magic_burst) end end function job_aftercast(spell, action, spellMap, eventArgs) if spell.skill == 'Elemental Magic' then state.MagicBurst:reset() end end
My SCH lua didnt have a job_aftercast, so I just pasted that one in, but it does have a function job_post_midcast(spell, action, spellMap, eventArgs) already. I've tried the following to no avail:
Code:function job_post_midcast(spell, action, spellMap, eventArgs) if spell.action_type == 'Magic' then apply_grimoire_bonuses(spell, action, spellMap, eventArgs) if spell.skill == 'Elemental Magic' and state.MagicBurst.value then equip(sets.magic_burst) end end end function job_post_midcast(spell, action, spellMap, eventArgs) if spell.action_type == 'Magic' then apply_grimoire_bonuses(spell, action, spellMap, eventArgs) end if spell.skill == 'Elemental Magic' and state.MagicBurst.value then equip(sets.magic_burst) end end function job_post_midcast(spell, action, spellMap, eventArgs) if spell.action_type == 'Magic' then apply_grimoire_bonuses(spell, action, spellMap, eventArgs) elseif spell.skill == 'Elemental Magic' and state.MagicBurst.value then equip(sets.magic_burst) end end
Of these three, I thought the top one would be the one that works, but apparently not. Anyone know how to get around this? I'm using the Kinematics lua's if that matters.
I just tried it on the blm lua and it doesnt work either, and I dont think I changed any of the default code on that one.
edit: got it working on blm, had to change a couple things. Trying to get it in sch one now.
XI Wiki


