>>26
バフは即時反映されないからフラグを使用して「フラグかバフか」のダブルチェック
-----------------------------------------
function get_sets()
tameru_flg = false
end
function aftercast(spell)
-- ためるが成功した場合
if spell.name == 'ためる' and not spell.interrupted then
tameru_flg = true
end
if tameru_flg or buffactive['ためる'] then
equip(sets.aftercast.tameru)
else
equip(sets.aftercast.normal)
end
end
function buff_change(name,gain,buff_table)
if gain then
if name == 'ためる' then
tameru_flg = true
end
else
if name == 'ためる' then
tameru_flg = false
end
end
end
sets.midcast.DarkMagic={
省略
}
end
function precast(spell)
if spell.type == 'BlackMagic' then
equip(sets.precast)
elseif spell.type =='DarkMagic' then
equip(sets.precast)
elseif spell.type =='WhiteMagic' then
equip(sets.precast)
end
end
function midcast(spell)
if spell.type == 'BlackMagic' then
equip(sets.midcast)
elseif spell.type == 'DarkMagic' then
equip(sets.midcast.DarkMagic)
elseif spell.type =='WhiteMagic' then
equip(sets.midcast)
end
end
最近gearswap使い始めたんですが、midcast暗黒魔法だけ着替えてくれず困ってます。
他は大丈夫なんですがご教授お願いします。
実行環境 (dxdiagコマンド実行結果より抜粋)
------------------
System Information
------------------
Operating System: Windows 10 Home 64-bit (10.0, Build 19042) (19041.vb_release.191206-1406)
Language: Japanese (Regional Setting: Japanese)
DirectX Version: DirectX 12
このような感じでして、precastでfcに着替えているつもりです。また、//gs showswapsを見る限りfcの着替えがされているようです。
-- ◆◆アクション前関数◆◆
function precast(spell)
local sets_val = nil
--if string.find(spell.type, 'Magic') then
--sets_val = sets.fast_cast
if spell.action_type =='Magic' then
sets_val = sets.fast_cast
--windower.send_command('input /equipset 10 echo')
elseif spell.type == 'WeaponSkill' then
sets_val = sets.enmity
elseif spell.type =='JobAbility' then
sets_val = sets.enmity
elseif spell.type =='Ward' then
sets_val = sets.enmity
elseif spell.type =='Effusion' then
sets_val = sets.enmity
end
if sets_val then
equip(sets_val)
end
end
-- ◆◆アクション中関数◆◆
function midcast(spell)
if string.find(spell.type, 'Magic') then
if spell.name == 'フラッシュ' then
equip(sets.enmity)
--windower.send_command('input /equipset 11 echo')
else
equip(sets.midcast.sild)
--windower.send_command('input /equipset 12 echo')
end
end
end