Hi there,
Just wondering if theres a way for GS to recognize current weather SPELL and equip Loafers only if the following is true
Klimaform is active
Current spell being cast is same as current weather SPELL
Thanks
Arbatel Loafers And Gearswap |
||
|
Arbatel Loafers and Gearswap
Hi there,
Just wondering if theres a way for GS to recognize current weather SPELL and equip Loafers only if the following is true Klimaform is active Current spell being cast is same as current weather SPELL Thanks Are you saying that you need, for example, Thunderstorm to actually be on, as opposed to thunder weather being in the zone?
I think they mean a way for it to only equip them when Klimaform matters, like if Firestorm is up and they have to use an Ice spell, for example, it will use the feet set to normally work in that slot without Klimaform up.
if (spell.skill == 'Elemental Magic' and world.weather_element == spell.element and buffactive.Klimaform) then
Yeah, but I'm confused about him emphasizing "current weather SPELL," as that seems to exclude world weather. I'm not a SCH, so I don't know how Klimaform works, but I would have assumed world weather is fine. The construction for what he wants would depend on this.
Your 100% right Flippant natural or forced weather works for it. Maybe he doesn't know that a storm overrides any natural weather going on around you?
Yea it would matter based on his needs but it would make no sense on SCH to want that only, since both work. Oh does world.weather_element account for SCH weather spell?
Code if state.Buff.Klimaform and spell.skill == "Elemental Magic" and spell.element == world.weather_element then
equip(sets.buff['Klimaform'])
endThis is how it's written in Mote's SCH file, under function apply_grimoire_bonuses zerkles said: » Oh does world.weather_element account for SCH weather spell? It does. This is what I use for Belt (Hachirin-no-Obi) to be equiped during matching nukes / WS (It will however Override the WS/Spell gear with it)
Hopefully helps. you could do: Code
equip({waist="Hachirin-No-Obi",feet="Arbatel Loafers +1"})
Anyways here it is: Code -- Run after the general midcast() is done.
function job_post_midcast(spell, action, spellMap, eventArgs)
if spellMap == 'Cure' and spell.target.type == 'SELF' then
equip(sets.self_healing)
end
--if spell.action_type == 'Magic' then
-- apply_grimoire_bonuses(spell, action, spellMap, eventArgs)
--end
if spell.skill == 'Elemental Magic' then
if spell.element == world.day_element or spell.element == world.weather_element then
equip({waist="Hachirin-No-Obi"})
--add_to_chat(8,'----- Hachirin-no-Obi Equipped. -----')
end
end
if spell.skill == 'Elemental Magic' then
if state.MagicBurst.value then
equip(sets.magic_burst)
end
end
if spell.type == "WeaponSkill" then
if spell.element == world.weather_element or spell.element == world.day_element then
--equip({waist="Hachirin-no-Obi"})
--add_to_chat(8,'----- Hachirin-no-Obi Equipped. -----')
end
end
endta ta~ Code if buffactive.Klimaform and spell.skill == "Elemental Magic" and spell.element == world.weather_element then
equipSet = set_combine(equipSet,{feet="Arbatel Loafers +1"})@Bismarck.Kuroganash
That wouldn't be very good. First, day doesn't help his feet only weather. Second, it has no check for Klimaform either. Anyway the answer was already given. Just to piggy pack off this a little more..
Feet work just fine, now my problem is I have my Obi working correctly, but I do not want Obi to eqp for helix. My current code looks like: Code function job_post_midcast(spell, action, spellMap, eventArgs)
if spell.action_type == 'Magic' then
apply_grimoire_bonuses(spell, action, spellMap, eventArgs)
end
if spellMap == 'Cure' and spell.target.type == 'SELF' then
equip(sets.self_healing)
end
if spell.action_type == 'Magic' then
apply_grimoire_bonuses(spell, action, spellMap, eventArgs)
end
if spell.skill == 'Elemental Magic' then
if spell.element == world.day_element or spell.element == world.weather_element then
equip({waist="Hachirin-No-Obi"})
add_to_chat(8,'----- Obi Equipped. -----')
end
if spell.element == world.weather_element or spell.element == world.day_element or
(spell.element == 'Lightning' and buffactive['Thunderstorm']) or
(spell.element == 'Ice' and buffactive['Hailstorm']) or
(spell.element == 'Water' and buffactive['Rainstorm']) or
(spell.element == 'Fire' and buffactive['Firestorm']) or
(spell.element == 'Earth' and buffactive['Sandstorm']) or
(spell.element == 'Wind' and buffactive['Windstorm']) or
(spell.element == 'Light' and buffactive['Aurorastorm']) or
(spell.element == 'Dark' and buffactive['Voidstorm']) then
if spell.skill == 'Elemental Magic' and spellMap ~= 'Helix' then
equip(sets[spell.element])
end
end
end
endWell, you have the rules for it twice, and you're only checking that spell map is not Helix the second time.
Code function job_post_midcast(spell, action, spellMap, eventArgs)
if spellMap == 'Cure' and spell.target.type == 'SELF' then
equip(sets.self_healing)
end
if spell.action_type == 'Magic' then
apply_grimoire_bonuses(spell, action, spellMap, eventArgs)
end
if spell.skill == 'Elemental Magic' then
if (spell.element == world.day_element or spell.element == world.weather_element) and spellMap ~= 'Helix' then
equip({waist="Hachirin-No-Obi"})
add_to_chat(8,'----- Obi Equipped. -----')
end
end
endDoes this part mean NOT equal to helix?
spellMap ~= 'Helix' and thank you very much for the help |
||
|
All FFXI content and images © 2002-2025 SQUARE ENIX CO., LTD. FINAL
FANTASY is a registered trademark of Square Enix Co., Ltd.
|
||