Item Search
     
BG-Wiki Search
Page 218 of 328 FirstFirst ... 168 208 216 217 218 219 220 228 268 ... LastLast
Results 4341 to 4360 of 6548
  1. #4341
    Radsourceful

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

    Largely, those values are not present in the dats, and it's a hassle to manually input them for every spell, especially those that have meritable recast timer changes.

    For provoke, this is all the information that is given:

    Code:
      <thing type="AbilityInfo2">
        <field name="id">35</field>
        <field name="type">01</field>
        <field name="list-icon-id">41</field>
        <field name="mp-cost">0</field>
        <field name="valid-targets">0020</field>
        <field name="shared-timer-id">5</field>
        <field name="tp-cost">-1</field>
        <field name="category-id">0</field>
      </thing>
    Code:
      <thing type="DMSGStringBlock">
        <field name="index">35</field>
        <field name="string-1">Provoke</field>
        <field name="string-count">1</field>
      </thing>
    Is it something that could be done? Very possible, sure, but I don't see a case for it when recast functions better than that code snip can.

  2. #4342
    Masamune
    Guest

    I see this:
    <field name="shared-timer-id">5</field
    In my opinion, that lead to another table with timers expressed in secs. In yur example provoke huses recast ID 5, so maybe it corresponds to a value stored somewhere else = 30secs, and so other JAs with same recast will link to that same value using ID=5.

    But i have no idea how to .dat mine :S

  3. #4343
    Puppetmaster
    Join Date
    Feb 2011
    Posts
    50
    BG Level
    2
    FFXI Server
    Asura

    Anyone have a fairly modern rng.XML I can use? Looked around and anything I found didn't really do much of what I was hoping for.

  4. #4344
    Dragoon Enthusiast
    Join Date
    Jun 2008
    Posts
    1,106
    BG Level
    6
    FFXIV Character
    Dathus Tomar
    FFXIV Server
    Diabolos
    FFXI Server
    Siren

    Is there a rule/variable that'll activate if a piece of equipment is on? Like for example, if I've got my Omphalos bullet equipped, it won't let me do a ranged attack? Or, if I DO a ranged attack/WS, it'll give me current stock of my other bullets in my inventory afterward?

  5. #4345
    Requiescat in pace.
    Join Date
    Dec 2008
    Posts
    1,341
    BG Level
    6
    FFXI Server
    Lakshmi

    Quote Originally Posted by Dathus View Post
    Is there a rule/variable that'll activate if a piece of equipment is on? Like for example, if I've got my Omphalos bullet equipped, it won't let me do a ranged attack? Or, if I DO a ranged attack/WS, it'll give me current stock of my other bullets in my inventory afterward?
    <if equipammo="Omph*">
    <cancelspell />
    </if>

    or whatever

  6. #4346
    Dragoon Enthusiast
    Join Date
    Jun 2008
    Posts
    1,106
    BG Level
    6
    FFXIV Character
    Dathus Tomar
    FFXIV Server
    Diabolos
    FFXI Server
    Siren

    That'll cancel WS and Ranged attack but still let me QD in it? Awesome, thanks.

  7. #4347
    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

    That cancels all action while you have the ammo equipped. For ranged and WS, you need to embed that within the respective rules:

    <if type="weaponskill">
    <if EquipAmmo="Omph*">
    <cancelspell />
    <equip>
    <ammo>BulletYouUse</ammo>
    </equip>
    </if>
    </if>

  8. #4348
    Masamune
    Guest

    Hello i have a simple problem: what is the correct syntax for escaping a variable name ?

    For example if i have 3 vars "var1""var2"and"var3", each with a defined value (known spells), and then im cycling through them with the safety check:

    <if Spell="?$var$X">
    reset to X=1...
    </if>

    ... to avoid the game giving me error "/ma $var4 doesnot exist... command error"

    In other terms, what is correct symbol to use for escaping the first $ (without escaping the 2nd $!) ? i tried / \ /. \. none works...

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

    First, I don't think you've stated your question very well. What exactly is it that you expect "escaping" to do to help you here? In general computer programming, escaping would be getting the raw value input, not the evaluated value. So what it sounds like you're asking is how to check <if Spell="Var4"> instead of <if Spell="$Var4">, which makes no sense at all.

    So I don't see how escaping the first variable helps you in that case. What you want to be checking is the value of X to make sure it's within safe limits. EG:
    Code:
    <if advanced='$X &gt; 3'>
        <var cmd="set X 1" />
    </if>

  10. #4350
    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

    Yeah, it's not clear. Do you want a run that will go back to (1) after passing (3) or is the variable not working properly (i.e. $Var4 should be primary, but instead, is returning as $Var4).

  11. #4351
    Masamune
    Guest

    Quote Originally Posted by Motenten View Post
    First, I don't think you've stated your question very well. What exactly is it that you expect "escaping" to do to help you here? In general computer programming, escaping would be getting the raw value input, not the evaluated value. So what it sounds like you're asking is how to check <if Spell="Var4"> instead of <if Spell="$Var4">, which makes no sense at all.

    So I don't see how escaping the first variable helps you in that case. What you want to be checking is the value of X to make sure it's within safe limits. EG:
    The cycling works without problem until point when X=4, then i get the error in game:"Command error... /ma $Var4 doesnot exist". This is understandable since this var isnot defined at all (only 3 are)

    So i'm trying to implement a safety check to avoid X getting value 4, simplest being sc var set X = 1 (a reset). As for the check himself, i simply thought reusing exact wording of the error: if spell="$Var4" -> sc var set X=1
    Problem is if i write that, spellcast fails at reading $Var4=$Var4, the check always returning false.

    Unless you know how to write <if Spell=""> ?

  12. #4352
    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

    Code:
    		<!-- Type "//physicaldefense 0#" to change your physical defense mode to the number you select -->
    		<if advanced='(bool)regex("%SpellTargetRaw", "^0[0-9]$")'>
    			<var cmd="set Mode(Physical_Defense:Current#) %SpellTargetRaw" />
    			<var cmd="set Mode(Physical_Defense) $Mode(Physical_Defense:$Mode(Physical_Defense:Current#))" />
    			<var cmd="set Armor(%Status) Physical_Defense:$Mode(Physical_Defense:$Mode(Physical_Defense:Current#))" />
    			<addtochat color="35Mode">Armor(%Status): $Armor(%Status)</addtochat>
    		</if>
    		<!-- Type "//physicaldefense cycle-" to cycle backwards through physical defense modes -->
    		<elseif SpellTargetRaw="cycle-">
    			<var cmd="dec Mode(Physical_Defense:Current#)" />
    			<var cmd="set Mode(Physical_Defense:Current#) 0$Mode(Physical_Defense:Current#)" />
    			<if advanced='$Mode(Physical_Defense:Current#) &lt; 1'>
    				<var cmd="set Mode(Physical_Defense:Current#) $Mode(Physical_Defense:Max#)" />
    			</if>
    			<var cmd="set Mode(Physical_Defense) $Mode(Physical_Defense:$Mode(Physical_Defense:Current#))" />
    			<if advanced='(bool)regex("$Armor(%Status)", "Physical_Defense:*")'>
    				<var cmd="set Armor(%Status) Physical_Defense:$Mode(Physical_Defense:$Mode(Physical_Defense:Current#))" />
    			</if>
    			<addtochat color="35Mode">Physical Defense Mode: $Mode(Physical_Defense)</addtochat>
    		</elseif>
    That's a sample from my upcoming XML. Use whichever one you wish. I personally have a second variable to designate the max value. If you use the first rule though, you can do 0-4 instead of 0-9.

  13. #4353
    Masamune
    Guest

    Quote Originally Posted by Yugl View Post
    Yeah, it's not clear. Do you want a run that will go back to (1) after passing (3)
    this yes

    here is my code:

    Code:
    			<var cmd="inc CycleID" />
    			<if Spell="/$%Skill$CycleID">
    				<var cmd="set CycleID 1" />
    			</if>
    			<var cmd="set NextSpell $%Skill$CycleID" />
    			<command When="aftercast">wait $Delay;input /ma "$NextSpell"</command>
    It is the bolded check which doesnot work...

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

    Well of course it won't work. You're checking the wrong value.

    Quote Originally Posted by Masamune
    So i'm trying to implement a safety check to avoid X getting value 4
    The reason is given right here. The problem as stated is the value of X, so that's the variable you should be checking; instead, you were trying to check VarX.

    Corrected version:
    Code:
          <var cmd="inc CycleID" />
          <if advanced='$CycleID &gt; 3'>
              <var cmd="set CycleID 1" />
          </if>
          <var cmd="set NextSpell $%Skill$CycleID" />
          <command When="aftercast">wait $Delay;input /ma "$NextSpell"</command>

  15. #4355
    Masamune
    Guest

    Quote Originally Posted by Motenten View Post
    Well of course it won't work. You're checking the wrong value.



    The reason is given right here. The problem as stated is the value of X, so that's the variable you should be checking; instead, you were trying to check VarX.

    Corrected version:
    Code:
          <var cmd="inc CycleID" />
          <if advanced='$CycleID &gt; 3'>
              <var cmd="set CycleID 1" />
          </if>
          <var cmd="set NextSpell $%Skill$CycleID" />
          <command When="aftercast">wait $Delay;input /ma "$NextSpell"</command>
    exactly what i want to avoid... since im incrementing infinitely the X if user feels so. i just took 3 vars for picturing the problem here.

    so any other idea than checking X ?

    for example, if im using cure cycling with 5 tiers of cure spells, the error i would get at X=6 will be:

    "Command error... /ma $HealingMagic6 doesnot exist"

    that's why i were trying to check against $var$X while escaping the 1st $.

    EDIT: ok i found the escape symbol on windower wiki, it is indeed the anti-slash \... so can someone explains me why the check below always work when it should only return true on error :
    Code:
    <if Advanced='"$%Skill$CycleID" = "\$%Skill$CycleID"'>
    please ?

    EDIT2: found an aberration i don't understand:
    Code:
    <if Advanced='"$%Skill$CycleID"="\$%Skill*"'>
    	<var cmd="set CycleID 1" />
    </if>
    doesnot work (never resets CycleID to 1)
    but if i write harcoded, it works:
    Code:
    <if Advanced='"$%Skill$CycleID"="\$%Skill4"'>
    	<var cmd="set CycleID 1" />
    </if>
    Advanced doesnot support wildcards ?

  16. #4356
    Relic Weapons
    Join Date
    Sep 2007
    Posts
    377
    BG Level
    4
    FFXIV Character
    Caprese Dionir
    FFXIV Server
    Hyperion
    FFXI Server
    Sylph

    So I'm looking to equip gear when I engage on DNC, based on which buffs I have. I have a set I want to trigger when I have both Haste and Marches at the same time, but I can't figure out how to do that part without creating a convoluted mess of nested rules.

    I've confirmed the condition to equip the saber dance set and the non-buffed set both work normally.

    The relevant part of the check looks like this:
    Code:
            <if spell="autoset"> 
                <equip when="resting" set="Idle" />   <!-- when resting, equip resting -->
                <equip when="idle" set="Idle" />     <!-- when idle, equip standard -->
                <if status = "engaged"> <!-- Equip engaged gear based on circumstance -->
                	<if BuffActive="what goes here??"> <!-- Check haste and march -->
                		<equip when="engaged" set="EngagedFullBuffs" />
                	</if>
                	<elseif BuffActive="Saber Dance">
                		<equip when="engaged" set="EngagedSaber" />
                	</elseif>
                	<else>
                		<equip when="engaged" set="Engaged" /> 
                	</else>
                </if>
                
            </if>

  17. #4357
    Masamune
    Guest

    Not sure if that works:
    Code:
    <if BuffActive="Haste&*March*">
    or maybe need && ?

    This is known to not work:
    Code:
    <if BuffActive="Haste" BuffActive="*March*">
    EDIT: fix is then to use inside advanced:
    Code:
    <if Advanced='"%BuffActive"="Haste" AND "%BuffActive"="*March*"'>
    Otherwise last option:
    Code:
    <if BuffActive="Haste">
         <if BuffActive="*March*">
             <equip when="engaged" set="EngagedFullBuffs" />
         </if>
    </if>

  18. #4358
    Relic Weapons
    Join Date
    Sep 2007
    Posts
    377
    BG Level
    4
    FFXIV Character
    Caprese Dionir
    FFXIV Server
    Hyperion
    FFXI Server
    Sylph

    The first one.. apparently & is some kind of escape character, there are no errors, but the condition is never true.

    The second one will cause your spellcast to fail to load apparently. Did some research, using the same conditional twice in the same if or action causes it to have issues.

    Ended up writing the third, which I got working, but it added a bunch of logic I was hoping to avoid (to simplify debugging in the future).

    It basically reads
    Code:
    if Haste
        if March
             Full buffs
        else
            if Saber Dance
                 SaberDance Set
            else
                 normal
        end if
    else if Saber Dance
          saber dance set
    else
          normal set

  19. #4359
    Masamune
    Guest

    i edited my post, maybe it works inside advanced ?

  20. #4360
    xXNyteFyreXx420Sharingan
    Join Date
    May 2009
    Posts
    3,709
    BG Level
    7
    FFXI Server
    Fenrir

Page 218 of 328 FirstFirst ... 168 208 216 217 218 219 220 228 268 ... 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