I want it to be where any type of magic I cast goes into my sets.midcast.interruption. IE Bluemagic, Healing, Enhancing. ect. But only when I turn a toggle on. Its only for a few select fights. so I dont always need it to be Active. I am not sure where Interruption needs to be to take effect. I cant figure out if its precast or midcast or for the full cast. so I guess until I can figure out when Interruption takes place Both pre and midcast.
here is a quick and dirty way to do it(with one command for each mid/pre cast)
Code:--add these to the top of your getsets() (interruption set default is off) midcast_interruption = false precast_interruption = false --new commands are "mid-interrup" = midcast interruption set, "pre-interrup" = precast interruption set function precast(spell) ... elseif spell.action_type == 'Magic' then if precast_interruption then equip(sets.midcast.interruption) return end .... end function midcast(spell) if spell.action_type == 'Magic' then if midcast_interruption then equip(sets.midcast.interruption) return end .... end function self_command(command) ... elseif command == 'mid-interrup' then midcast_interruption = not midcast_interruption send_command('@input /echo ----- Magic midcast interruption set to '..(midcast_interruption and "ON" or "OFF")..' -----') elseif command == 'pre-interrup' then precast_interruption = not precast_interruption send_command('@input /echo ----- Magic precast interruption set to '..(precast_interruption and "ON" or "OFF")..' -----') end end
Thank you. I am currently trying to farm a spell. But Ill check to see if it works when I get done. I appreciate the help!
alright, So I have been toying around with it. I have it where its semi-working. I get the Precast interruption is ON or OFF working in /echo. But //gs showswaps is not showing it change to my set. Any idea?
its because the set name is sets.midcast.interrupt not sets.midcast.interruption my bad
even with the change to that, I cant find the right way to code the Pre-cast and Mid-cast. I dont know where to place it in those categories. I am sorry for the trouble lol. I have a feeling that there are different actions being done in the midcast and precast sections that overwrites the interruption. but I am not smart enough in LUA code to fix it myself.
the ... = first part of the code .... the rest of the code look at you original code and you will see where it goes
example:
with my code added inCode:function midcast(spell) if spell.action_type == 'Magic' then equip(sets.midcast[spell.english]) if spell.english:startswith('Cure') then if spell.target.name == player.name then equip(sets.midcast.selfcure) else equip(sets.midcast.cure) end end end end
Code:function midcast(spell) if spell.action_type == 'Magic' then equip(sets.midcast[spell.english]) if spell.english:startswith('Cure') then if midcast_interruption then equip(sets.midcast.interruption) return end if spell.target.name == player.name then equip(sets.midcast.selfcure) else equip(sets.midcast.cure) end end end end
Having an issue getting Marsyas to pre-equip when /honormarch typed. Tried the Impact type route but using Mote's v2 gearswap I am assuming it's not defined somewhere somehow.
Also, how does one add these new spells into timers addon like Honor March?
Tried doing the same kind of thing with Mote's impact rule but no dice.
Try replacing helper_functions.lua with this:
https://www.dropbox.com/s/vzum8rq9lv...tions.lua?dl=0
Was that for the durations? Still showing up as 2:30 when it's lasting 3 minutes, not a huge deal, but I still cannot get gearswap to even cast honor march. Keeps throwing ghorn in precast. I don't know how to fix this. Mote made it for me when I finished Daur. Sigh..
Hello ! I'm using the command //gs validate to see if i have all gears the lua use in my inventory, but it doesn't check my wardrobe. Same problem with //gs validate inv.
Is it possible to fix that problem. With wardrobe2 incoming, most of my stuff will be in wardrobe1+2 so it will be more difficult to use these commands.
Thanks
When I hit F10 for my PDT gear, what do I press to swap out of it? Hitting it again or hitting the button for my offensive set doesn't seem to change me out of it?
Assuming it's a PDT lock, I'd have to actually see your lua to give you an answer. If it happens to be a Mote one, then I think that uses alt+F12.
Pretty much clueless when it comes to this stuff, got myself a BLM Lua off XIAH and running into some problems.
Pastebin here: http://pastebin.com/jYQFBTRM
1. It leaves me in my nuking gear after I'm done casting and doesn't go into an Idle set unless I rest
2. The Magic Burst Toggle that came with the sheet isn't working. I added a Spaekona Coat +1 toggle in myself and that works fine though.
3. As far as I can tell the Twilight Cape/Obi functions aren't working either.
4. Wondering how to write a function to lock my back slot when I turn on the Capacity toggle.
Those are the things I've noticed so far. Would appreciate any help.
You've downloaded one of THE most complex files out there for gearswap. In order to really deal with your issue, you would also have to find and post all of the other "includes" lua files that accompany your file.
1. your idle sets all start with nameofidleset = {main={sub = "subitem", etc.}}
Try deleting "main={" and one of the "}" at the end and see if that fixes your idle problems.
2. Don't see the logic that deals with setting the magic burst or the spaekona states
3. Do you have Hachirin-no-Obi? There is a set sets.midcast.Bonus that is set to equip the Hachirin-no-Obi and Twilight Cape in the event that weather/day element matches the element of the spell. Found in the function job_midcast starting on line 387
4. whereever the logic for the toggle is it would be similar to
Code:if (state.Capacity.value) then equip({back="CapacityCape"}) disable('back') else enable('back') end
no he is only using motes default include and organizer-lib both are part of gearswap's default install
i can tell because there are only 2 lines with
include(?????)
one for Mote-Include.lua and one for organizer-lib
if i knew more about motes include i would try to help
but here is the best i can do
1. you do not have any aftercast equips except for Mana Wall
2. if you did not see it here it is (you cant have 2 functions named the same the later one will overwrite all the previous ones)
3. as far as i can tell it should be working (you can verify by using the command "gs show_swaps")Code: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_post_midcast(spell, action, spellMap, eventArgs) if spell.skill == 'Elemental Magic' and state.Spaekona.value then equip({body="Spae. Coat +1"}) end end
4. just as Shadowmeld said is a good way
I would still say that anything using the Mote-Include.lua is probably one of the most complex luas out there, but I didn't know that his includes were part of the gearswap framework now. That is nice. I'll have to look them up when I get home and see if I can find out what his issue is with #2 then.