Item Search
     
BG-Wiki Search
Page 207 of 328 FirstFirst ... 157 197 205 206 207 208 209 217 257 ... LastLast
Results 4121 to 4140 of 6548
  1. #4121
    Insert witty title here
    Join Date
    Jun 2007
    Posts
    1,191
    BG Level
    6
    FFXI Server
    Phoenix

    You can set a variable to whatever is in another variable
    <var cmd="set toggle $OtherVariableName">
    This might work for what you're trying to do, but I'm not sure exactly what you're trying to do.

    If you're trying to lock twilight gear on war, if you think you'll need the RR3, I would make a set called Twilight, then have your engaged rule call on a variable.

    Code:
    <var name="engaged">engaged</var>
    
    
    <set name="engaged">
    	gear
    </set>
    <set name="twilight" baseset="engaged">
    	<head>Twilight Helm</head>
    	<body>Twilight Mail</body>
    </set>
    
    
    <equip when="engaged" set="$engaged" />
    <if status="engaged">
    	<equip when="aftercast" set="$engaged" />
    </if>
    	<else>
    		<equip when="idle" set="idle" />
    	</else>
    <if spell="triggerspell">
    	<if advanced='"$engaged" = "idle">
    		<var cmd="set engaged twilight" />
    	</if>
    		<else>
    			<var cmd="set engaged engaged" />
    		</else>
    </if>
    See if that works for you.

  2. #4122
    Puppetmaster
    Join Date
    Nov 2008
    Posts
    62
    BG Level
    2
    FFXI Server
    Bahamut

    I want to toggle a variable between 1 and 0.

    The name of the variable I want to toggle is named in the $toggle variable.

    This is so I can toggle any of the variables I have setup, by changing the $toggle variable to the name of the variable I wish to toggle.

  3. #4123
    Chram
    Join Date
    Sep 2007
    Posts
    2,526
    BG Level
    7
    FFXI Server
    Fenrir

    This may or may not be related, but I had an awful time getting that to work for any variables that started with the letter "t". Spellcast's variable expansion mechanics are really finicky. Try using a different variable name.

  4. #4124
    Puppetmaster
    Join Date
    Nov 2008
    Posts
    62
    BG Level
    2
    FFXI Server
    Bahamut

    It definately doesn't work with variables starting with t, which is very wierd.

    After some more testing I'm pretty sure its not possible. SC seems to interpret the $ literally, so if I do //sc var inc $check. It will increment the variable called "$check" rather than a variable with the same name that $check contains.

  5. #4125
    An exploitable mess of a card game
    Join Date
    Sep 2008
    Posts
    13,197
    BG Level
    9
    FFXIV Character
    Gouka Mekkyaku
    FFXIV Server
    Gilgamesh
    FFXI Server
    Diabolos

    Variable Usage

    Assigning a variable to a value:
    set VariableName Value

    Assigning a variable to another variable's value:
    set Variable1Name $Variable2Name
    Note: When assigning one variable to another, it will only transfer one word unless using quotes when defining the second variable.
    Assigning a variable to reference another variable:
    set Variable1Name \$Variable2Name

    Combining pre-defined and user defined Variables:
    pre-defined variables will process before user defined variables.
    So in the example below you can have a dynamic staff swap.
    Not sure if that helps, but some ideas might pop up.

  6. #4126
    Salvage Bans
    Join Date
    Mar 2010
    Posts
    769
    BG Level
    5
    FFXI Server
    Leviathan

    Ok so, after I use Metatron Torment I don't change out of my weapon skill gear. I think it has something to do with how I handed the AM PDT and MDT sets, but I am not sure, nor can I figure it out. Can someone look at it for me.

    Here is mt xml. http://pastebin.com/fZtfAJ7t

  7. #4127
    The Tower
    Join Date
    Apr 2005
    Posts
    2,160
    BG Level
    7
    FFXIV Character
    Stromgarde Siren
    FFXIV Server
    Gilgamesh
    FFXI Server
    Siren

    I'd like to create a rule for my mule's Minstrel's Ring where if my hp was above a certain value it would equip all of my hp down equipment for a second or so before starting to cast songs proper. This needs to be separate from the casting itself to take advantage of the other casting gear. Is this possible?

  8. #4128
    Chram
    Join Date
    Sep 2007
    Posts
    2,526
    BG Level
    7
    FFXI Server
    Fenrir

    @Haborym -- First had to reformat it to be readable. I'm wondering if this is an issue with how Notepad++ saves files, since the problem shows up far more often than it should. Or do you use a different program than that?

    You have a duplicate <cancelspell /> under Banishga V. Honestly, you only need a single <cancelspell /> after <if spell="$TriggerSetOne|$TriggerSetTwo|$TriggerSetTh ree"> instead of one inside each individual spell check.

    Aside from various redundant code, though, I don't see anything that would cause the aftercast gear to not be equipped at all. I'd suggest putting an <addtochat> message in the Dancing Chains section to make sure that it's actually being called.


    Quote Originally Posted by Stromgarde View Post
    I'd like to create a rule for my mule's Minstrel's Ring where if my hp was above a certain value it would equip all of my hp down equipment for a second or so before starting to cast songs proper. This needs to be separate from the casting itself to take advantage of the other casting gear. Is this possible?
    I think this should work.

    Code:
    <var name="HPThreshold">900</var>
    
    <set name="HPDown">
      <head></head>
      ...
    </set>
    
    
    
    <if type="BardSong">
      <if hpgt="$HPThreshold">
        <equip when="precast" set="HPDown" />
        <command>pause 0.5;input %CommandPrefix %Spell %SpellTargetRaw</command>
        <cancelspell />
        <return />
      </if>
      
      ...
    </if>

  9. #4129
    Salvage Bans
    Join Date
    Mar 2010
    Posts
    769
    BG Level
    5
    FFXI Server
    Leviathan

    Quote Originally Posted by Motenten View Post
    @Haborym -- First had to reformat it to be readable. I'm wondering if this is an issue with how Notepad++ saves files, since the problem shows up far more often than it should. Or do you use a different program than that?

    You have a duplicate <cancelspell /> under Banishga V. Honestly, you only need a single <cancelspell /> after <if spell="$TriggerSetOne|$TriggerSetTwo|$TriggerSetTh ree"> instead of one inside each individual spell check.

    Aside from various redundant code, though, I don't see anything that would cause the aftercast gear to not be equipped at all. I'd suggest putting an <addtochat> message in the Dancing Chains section to make sure that it's actually being called.
    No, I use notepad++ and the double <cancelspell /> was an accident, thanks for pointing it out. I'll try the autochat now, and get back to you in a few mins, thanks for looking.

  10. #4130
    Salvage Bans
    Join Date
    Mar 2010
    Posts
    769
    BG Level
    5
    FFXI Server
    Leviathan

    Ok, added the autochat and it seems to not be triggering after Metatron, but it is other weapon skills.

  11. #4131
    An exploitable mess of a card game
    Join Date
    Sep 2008
    Posts
    13,197
    BG Level
    9
    FFXIV Character
    Gouka Mekkyaku
    FFXIV Server
    Gilgamesh
    FFXI Server
    Diabolos

    Anyone used %TPCost and %TPAfterCast successfully?

  12. #4132
    Chram
    Join Date
    Sep 2007
    Posts
    2,526
    BG Level
    7
    FFXI Server
    Fenrir

    I use the TPAftercastLT rule in my dnc spellcast, but not the variable version. Used to use TPCost, but rejuggling the math I just switched to a TP check.

  13. #4133
    Melee Summoner
    Join Date
    Mar 2010
    Posts
    25
    BG Level
    1
    FFXI Server
    Caitsith

    Quote Originally Posted by Yugl View Post
    Anyone used %TPCost and %TPAfterCast successfully?
    I use %TPAfterCast in my /dnc rules:
    http://pastebin.com/KYvRKGkN

  14. #4134
    Salvage Bans
    Join Date
    Mar 2010
    Posts
    769
    BG Level
    5
    FFXI Server
    Leviathan

    This should work if I want to make sure I never have a MDT or PDT set on when I have Magical, or Physical Shield up, right?

    Code:
    <!-- Equip PDT (Barbed Crescent) -->
    <elseif Spell="Barbed Crescent" NotBuffActive="Physical Shield">
    	<cancelspell />
    	<if advanced='"$Armor" == "$PDT"'>
                  <var cmd="set Armor BlankSet" />
            </if>
            <else>
                   <var cmd="set Armor $PDT" />
                   <addtochat>PDT Set Equipped</addtochat>
            </else>
    	<command>Dancing Chains</command>
    </elseif>
    <!-- Equip MDT (Aegis Schism) -->
    <elseif Spell="Aegis Schism" NotBuffActive="Magical Shield">
    	<cancelspell />
    	<if advanced='"$Armor" == "$MDT"'>
    		<var cmd="set Armor BlankSet" />
            </if>
            <else>
                <var cmd="set Armor $MDT" />
                <addtochat>MDT Set Equipped</addtochat>
            </else>
    	<command>Dancing Chains</command>
    </elseif>
    <elseif spell="Herb Pastoral">
    	<cancelspell />	
    	<if BuffActive="Physical Shield" advanced='"$Armor" == "$PDT"'>
    		<var cmd="set Armor BlankSet" />
    	</if>
    	<else BuffActive="Magical Shield" advanced='"$Armor" == "$MDT"'>
    		<var cmd="set Armor BlankSet" />
    	</else>
    	<command>Dancing Chains</command>
    </elseif>

  15. #4135
    An exploitable mess of a card game
    Join Date
    Sep 2008
    Posts
    13,197
    BG Level
    9
    FFXIV Character
    Gouka Mekkyaku
    FFXIV Server
    Gilgamesh
    FFXI Server
    Diabolos

    Thanks for the confirmations on %TPCost. Turns out that I was editing the wrong sandbox XML, so the rule changes never took effect.

  16. #4136
    Banned.

    Join Date
    Jul 2007
    Posts
    10,330
    BG Level
    9

    Any idea why line 370 is throwing an error?

    (It's the </rules>)

    http://pastebin.com/06GGFa5V

  17. #4137
    An exploitable mess of a card game
    Join Date
    Sep 2008
    Posts
    13,197
    BG Level
    9
    FFXIV Character
    Gouka Mekkyaku
    FFXIV Server
    Gilgamesh
    FFXI Server
    Diabolos

    Missing a </if> before <!-- Job Ability --> line.

  18. #4138
    Radsourceful

    Join Date
    Jul 2007
    Posts
    1,964
    BG Level
    6
    FFXI Server
    Bismarck

    No closing </if> to line 359

  19. #4139
    Banned.

    Join Date
    Jul 2007
    Posts
    10,330
    BG Level
    9

    awesome, shits about to be on now

  20. #4140
    Banned.

    Join Date
    Jul 2007
    Posts
    10,330
    BG Level
    9

    Alright, I changed a few more things to make it work better, as it was kind of sucked so now I'm running into a different problem.

    I admit, I don't really know what I am doing but...

    This:
    Code:
    	<equip when="engaged|aftercast" set="tp" />
    	<eqiup when="idle|aftercast|resting" set="idle" />
    Swaps to melee set after casting while meleeing, swaps ws set back to melee. Swaps to melee set after casting while idle.
    .
    Code:
    <equip when="engaged|idle|aftercast" set="idle" />
    Swaps in sets for spells, abilities, melee gear. After casting while engaged, goes to idle gear, after WS while engaged, goes to idle gear.

    Entire spellcast: http://pastebin.com/ztFRAJLY

Page 207 of 328 FirstFirst ... 157 197 205 206 207 208 209 217 257 ... LastLast

Similar Threads

  1. Spellcast Shop Thread
    By Yugl in forum FFXI: Everything
    Replies: 232
    Last Post: 2014-03-18, 04:47
  2. time spent on ls events, helping friends and your own time
    By freewind in forum FFXI: Everything
    Replies: 6
    Last Post: 2005-09-06, 16:42