I'm not that proficient with gearswap yet, and I am trying to finish writing out my Run file. I been wondering is there a way to reverse cycle through an options set or to associate two sets of options to a single state? I'm trying to do this for runes so I can select which i want/need and use quickly. Any insight or assistance is appreciated.
for the first you just need to make a command to go the other way in the cycle
example:
for the second yes its posibleCode:function get_sets() test = {"test1","test2","test3"} extest = {"test2","test3","test1"} test_count = 1 end function self_command(command) if command == "test_up" then if test_count < 3 then test_count = test_count +1 elseif test_count == 3 then test_count = 1 end else command == "test_down" then if test_count > 1 then test_count = test_count -1 elseif test_count == 1 then test_count = 3 end end end
using the example above
test[test_count]
extest[test_count]
question for mote:
A friend of mine wants to setup his blm the way that when he uses Ice Elemental spells, the mote blm lua equips Ngqoqwanb as the nukeing staff. Since i dont use mote luas, i figure I ask you first, before looking for hours into includes etcs. I saw the mapping on the fastcast and recast staves, but there was none available for elemental damage staves. how would my friend go best about including that rule into your blm.lua?
Add a custom spell map, and construct a set based on that.
Quick example, tweaking the existing function:
Code:sets.midcast.IceNukes = {main="Ngqoqwanb", ...} -- Custom spell mapping. function job_get_spell_map(spell, default_spell_map) if spell.skill == 'Elemental Magic' and default_spell_map ~= 'ElementalEnfeeble' then if spell.element == 'Ice' then return 'IceNukes' end end end
thx alot <3, i forwarded your answer and he is implementing it right now
I have no issues with Mote's current COR.lua. Probably an isolated issue.
Why would this bit of code work perfectly if I change Weakness to Haste or Stoneskin or whatever buff for testing purposes, but leaving it Weakness and dieing and raising up I get nothing? No print to screen or changing to twilight.
Code:function buff_change(name,gain_or_loss) if name == 'Weakness' and gain_or_loss then equip{head="Twilight Helm",body="Twilight Mail"} disable('head','body') add_to_chat(167,'Weaken! >>> (Enabling Twilight Set)') send_command('timers create "Weakness" 300 up abilities/00255.png') elseif name == 'Weakness' and not gain_or_loss then enable('head','body') status_change(player.status) add_to_chat(162,'Unweak >>>> (Disabling Twilight Set)') send_command('timers delete "Weakness"') end end
Instead of 'Weakness', try 'weakness' I noticed it was lower case in mote-global.
Quick question,
Instead of this, which works fine:
Why doesn't something like this work instead, or I assume I got it a bit wrong.Code:enable('ammo','head','neck','ear1','ear2','body','hands','ring1','ring2','back','waist','legs','feet')
Code:enable('all')
Ok yea those work. I'm sure you just forgot but you need the ' in there.
I just don't like how it shows in the console when I do it that way. If I use the other enable and name out all the pieces of gear to enable then it don't show in the console.Code:send_command('gs enable all')
I guess doing it both ways work, but just looks cleaner with it not popping up in the console.
Thanks!
Thanks Johnblaze, found the issue late last night. When I download the new Cor file I put it on flash drive which is i found out is corrupted, and the file became partly corrupted. I have a habit of downloading things on a flash drive 1st... and it's time for a new one.
I was thinking this morning about how to do something similar with Cor rolls (utility and niche-use rolls that are not used much). I get the part about needing 2 sets to cycle back and forth but would asscioated with the command. Maybe it's the test1, test2, test3, and test_count throwing me off so I can't grasp how to apply the logic of it. Could you give another example using spells or JAs? I use Mote's luas architecture. Could I use this for my basis:
since "gs c cycle UtiliyRollMode" would already go in once direction. How would I fashion a command to use the above to cycling back through the options? Trying to wrap my head around this, sorry to be a bother.Code:options.UtiliyRollModes = {"Corsair's Roll","Miser's Roll","Monk's Roll","Gallant's Roll","Dancer's Roll","Puppet Roll","Beast Roll","Drachen Roll"} state.UtiliyRollMode = "Corsair's Roll"
Quick question regarding the skillup.lua. All I'm looking to do is have it use pollen over and over, I spent like an hour and half messing with it and alas it will only do it once. If this helps, the char only has one blu spell (lvl 26 atm). I just want to skill up her blue magic while I PL her. Is this possible, lol, I am pretty nub when it comes to these kinds of things. Thanks in advance.