My current one doesn't, but with the addition of sudden lunge (1.0s cast time, compare it to head butt's 0.5s cast time), I was thinking if I can cut this number closer to 0.5s.
I wanted to write a check to see if last utsusemi was ichi or ni, that way i can avoid canceling the buff if doing ichi > ichi.Code:<if spell="Utsusemi*"> <if spell="Utsusemi: Ni"> <if advanced='"$Utsu" == "Ichi"'> <var cmd="set Utsu Ni" /> </if> </if> <else> <if buffactive="Copy Image*" advanced='"$Utsu" == "Ni"'> <var cmd="set Utsu Ichi" /> <if buffactive="Visitant"> <cmd when="precast">cancel 66</cmd> </if> <else> <midcastdelay delay="2"/> <cmd when="midcast">cancel 66</cmd> </else> </if> </else> </if>
I know this idea isnt new but wanted to understand the part:
Since <if spell="Utsusemi: Ni"> is nested a layer down I didnt know if there was a need for the <if advanced='"$Utsu" == "Ichi"'> layer as well or if they could AND check on the same line.Code:<if spell="Utsusemi*"> <if spell="Utsusemi: Ni"> <if advanced='"$Utsu" == "Ichi"'> <var cmd="set Utsu Ni" /> </if> </if>
Forgive me if I didnt explain that well?
Keep the rule the way it is. If you put them on the same line (Ni + advanced), if you did Ni > Ni last, you'll end up changing the Utsu variable to Ichi on the 2nd Ni. The reason is because if they're on the same line, you'll end up going to the <else> rules whenever you do Utsu: Ni + do not have the variable set to Ichi.
I personally use a 1.5s post-FC rule for determining whether I wish to use FC or not.
How can I make spellcast keep savant pants +2 locked when parsimony/penury is active? Right now I have it like this, but if I cast a nuke after using parsimony it changes to nuking pants:
Code:<if spell="Penury|Parsimony"> <equip when="precast"> <legs lock="True">Savant's Pants +2</legs> </equip> </if> <elseif skill="ElementalMagic"> <equip when="midcast" set="Elemental" /> <if advanced="%MoonPCT > 80"> <equip when="midcast"> <neck>Artemis' Medal</neck> </equip> </if> <elseif skill="DarkMagic" notspell="Kaustra"> <equip when="midcast" set="Dark" /> </elseif>
1, you're using precast on your penury/parsimony check, but midcast on your gearswap. 2, you're checking to see if you are casting penury/parsimony, which are decidedly not elementalmagic spells (see BuffActive). 3, if that's the exact order of your if/elseif statements, fixing the previous issues still won't equip the pants at the appropriate time. 4, not sure that I would give up actual nuking pants to wear savant's pants, no matter how well they activate.
Not a scholar, but this should work.
<if mode="OR" spell="Penury|Parsimony" buffactive="Penury|Parsimony">
<equip when="all"><legs lock="yes">Savant's Pants +2</legs></equip>
</if>
Personally, I think that's a terrible way to go about it. First, there's rarely a situation where I would want to wear Savant's Pants over something like Teal Slops or Cybele Pants for nukes, or Portent Pants for enfeebling/enhancing/dark. Sometimes you change your mind after you hit your stratagem and have to cast a different spell. Second, Savant's Pants aren't very helpful in situations where you are casting spells from the opposing grimore, but happen to have Penury/Parsimony active (Reraise under Dark Arts, for instance).
Like I said, not a scholar. lol
Probably add an condition for exclusively using them with specific spells or when MP is critical. You shouldn't need to equip them upon using Parsimony or Penury either.
Friend ran into an issue last night with the XML I wrote him for RNG. Basically I forgot to take into consideration that RNG can use bows and guns and made his ammo based on bow only. Would this be the right way to write the code so it will work for him?
*Edit*Code:<var name="Ammo">Antlion Arrow</var> <if ranged="Armageddon"> <var cmd="set Ammo Steel Bullet" /> </if> <elseif ranged="Gandiva"> <var cmd="set Ammo Antlion Arrow" /> </elseif>
I think that's wrong based on the other line of code I found in a different XML. Should it look like this actually?
Or is that wrong too?Code:<if Spell="Ranged"> <if Advanced='%EquipRange="Armageddon"'> <var cmd="set Ammo Steel Bullet" /> </if> <elseif Advanced='%EquipRange="Gandiva"'> <var cmd="set Ammo Antlion Arrow" /> </elseif> </if>
I think that
<if Advanced='%EquipRange="Armageddon"'>
can more simply be put as
<if equiprange="Armageddon">
So like that? Assuming that's right, could I simplify it even farther and do <if skill="Archery"><elseif skill="Marksmanship"> or would that not work?Code:<if Spell="Ranged"> <if EquipRange="Armageddon"'> <var cmd="set Ammo Steel Bullet" /> </if> <elseif EquipRange="Gandiva"'> <var cmd="set Ammo Antlion Arrow" /> </elseif> </if>
Perfect, thanks a lot!
Just curious; has anyone made a WAR xml based of Yugls or Nightfyres templates?
Great info on RNG weapon check,
Now I can optimize my RNG XML.
Don't know a lot about sublimation and /sch so wanted to ask if anyone had any good/useful sublimation rules.
Thanks for any help.
Anyone have a great rng xml with wildfire setup. I didn't browse through all the thread and I'm sorry if someone already posted one.
i've used spellcast for quite some time, but really my user level is pretty low. i'd like to learn more about autoexec, can someone point me towards a useful guide?