|
Arbatel Loafers and Gearswap
By zerkles 2016-08-27 17:44:40
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
Ragnarok.Flippant
サーバ: Ragnarok
Game: FFXI
Posts: 658
By Ragnarok.Flippant 2016-08-27 17:50:45
Are you saying that you need, for example, Thunderstorm to actually be on, as opposed to thunder weather being in the zone?
By Osterburg 2016-08-27 17:59:16
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.
Asura.Chiaia
VIP
サーバ: Asura
Game: FFXI
Posts: 1652
By Asura.Chiaia 2016-08-27 18:13:52
if (spell.skill == 'Elemental Magic' and world.weather_element == spell.element and buffactive.Klimaform) then
Ragnarok.Flippant
サーバ: Ragnarok
Game: FFXI
Posts: 658
By Ragnarok.Flippant 2016-08-27 18:14:21
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.
Asura.Chiaia
VIP
サーバ: Asura
Game: FFXI
Posts: 1652
By Asura.Chiaia 2016-08-27 18:16:41
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.
By zerkles 2016-08-27 18:50:45
Oh does world.weather_element account for SCH weather spell?
サーバ: Odin
Game: FFXI
Posts: 177
By Odin.Speedyjim 2016-08-27 19:25:11
Code if state.Buff.Klimaform and spell.skill == "Elemental Magic" and spell.element == world.weather_element then
equip(sets.buff['Klimaform'])
end
This is how it's written in Mote's SCH file, under function apply_grimoire_bonuses
[+]
Ragnarok.Flippant
サーバ: Ragnarok
Game: FFXI
Posts: 658
By Ragnarok.Flippant 2016-08-27 19:36:10
Oh does world.weather_element account for SCH weather spell?
It does.
サーバ: Bismarck
Game: FFXI
Posts: 1346
By Bismarck.Kuroganashi 2016-08-29 14:29:38
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
end
ta ta~
サーバ: Asura
Game: FFXI
Posts: 1362
By Asura.Toralin 2016-08-29 14:33:13
Code if buffactive.Klimaform and spell.skill == "Elemental Magic" and spell.element == world.weather_element then
equipSet = set_combine(equipSet,{feet="Arbatel Loafers +1"})
Asura.Chiaia
VIP
サーバ: Asura
Game: FFXI
Posts: 1652
By Asura.Chiaia 2016-08-29 14:36:35
@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.
[+]
By zerkles 2016-09-05 11:21:05
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
end
Ragnarok.Flippant
サーバ: Ragnarok
Game: FFXI
Posts: 658
By Ragnarok.Flippant 2016-09-05 11:55:22
Well, 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
end
By zerkles 2016-09-05 12:10:40
Does this part mean NOT equal to helix?
spellMap ~= 'Helix'
and thank you very much for the help
Ragnarok.Flippant
サーバ: Ragnarok
Game: FFXI
Posts: 658
By Ragnarok.Flippant 2016-09-05 12:46:03
Yes.
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
|
|