I'm trying to make a gs for my sam but running into some problems given my limited programming abilities. Basically I want different sets based on the weapon I have equipped but I think I have the syntax screwed up and it errors out when I try to load it, here is a sample of what I'm trying:
Code:
sets.WS = {}
sets.WS.Masamune["Tachi: Fudo"] = {ammo="Thew Bomblet",head="Otomi Helm",neck="Justiciar's Torque",ear1="Moonshade Earring",ear2="Brutal Earring",
body="Phorcys Korazin",hands="Miki. Gauntlets",ring1="Rajas Ring",ring2="Pyrosoul Ring",
back="Takaha Mantle",waist="Windbuffet Belt",legs="Miki. Cuisses",feet="Mikinaak Greaves"}
sets.WS.Tsurumaru["Tachi: Fudo"] = set_combine(sets.WS.Masamune['Tachi: Fudo'],{back="Buquwik Cape"})
It errors out with attempt to index field 'Masamune' (a nil value). Any ideas how i should be coding this? Also once I get past that when I'm calling it in precast would it be like:
Code:
function precast(spell,action)
verify_equip()
if sets.JA[spell.english] then
equip(sets.JA[spell.english])
elseif spell.type=="WeaponSkill" then
if sets.WS[player.equipment.main[spell.english]] then equip(sets.WS[player.equipment.main[spell.english]])
else equip(sets.WS.General) end
end
end
Thanks again for any input