FORUM ARCHIVED

Getting clouds to buff/debuff enemies?

Discussion in 'Modding' started by TSED, Jun 24, 2012.

  1. TSED

    TSED Member

    It doesn't seem to matter what I try, cloud effects that trigger buffs / debuffs just don't seem to work. After much, MUCH fiddling I managed to get a cloud to buff the player but not other things inside the cloud, and debuffs are right out. By coincidence, both of these are cribbed off of the Mists of Corsair - I wanted that "pops up around you" effect.

    Relevant player-buffing cloud:

    Code:
    <spell name="ToxicR" type="target" >
        <buff usetimer="1" time="8" allowstacking="1" stacksize="10" icon="skills/pixel.png" smallicon="skills/pixel.png">
        <resistbuff toxic="1"/>
        </buff>
    [Etc.  There's a number of those.]
    </spell>
     
    <spell name="Zambonian Mists" type="self" icon="skills/wizard/spell_air0_32.png" wand="0">
        <requirements mp="25" savvyBonus="0.15" mincost="5"/>
        <effect type="trigger" spell="Zambonian Mists Effect" />
        <anim sprite="sprites/sfx/glintA/glintA" frames="5" framerate="60" centerEffect="0" sfx="blast" />
        <description text="The Zambonian Mists are an old standby of the goalies after a long period of getting shot at.  Bottlenecks make the Zambonian Mists truly powerful - denying their boon to the enemy while reaping the rewards." />
        </spell>
     
    <spell name="Zambonian Mists Effect"
            type="targetfloor"
            icon="skills/wizard/spell_air0_32.png"
            mineTimer="32"
            mineUseGlints="1"
            mineGlintDensity="8"
            mineSpritePNGSeries="sprites/sfx/smokepuffA/smokepuffA"
            mineSpritePNGFirst="0"
            mineSpritePNGNum="8"
            mineSpritePNGRate="150"
            mine="1"
          mineSpriteDrawOrder="1"
            mineradius="3"
            minepermanent="1"
            wand="0">
        <anim sprite="sprites/sfx/smokepuffbig/smokepuffbig" frames="6" sfx="blast" centerEffect="1"/>
        <effect type="trigger" spell="Reprieve Of The Zambonian Mists" />
        <effect type="trigger" spell="Zambonian Vapours" />
      </spell>
     
    <spell name="Reprieve Of The Zambonian Mists" type="target" icon="skills/wizard/spell_air0_32.png" wand="0">
        <buff useTimer="1" time="8" stacksize="10" stackable="1" icon="skills/wizard/spell_air0_64.png" smallicon="skills/wizard/spell_air0_32.png">
            <secondarybuff id="10" amount="1"/> <!-- armour -->
            <secondarybuff id="11" amount="1"/> <!-- magic resist -->
            </buff>
      <description text="The fabled Zambonian Mists!  The more you stay in the mist, the more powerful the mist's effect becomes."/>
    </spell>
     
    <spell name="Zambonian Vapours" type="target" icon="skills/wizard/spell_air0_32.png" wand="0">
        <effect type="triggerfromlist">
            <option name="AcidicR" />
            <option name="AetherealR" />
            <option name="BlastingR" />
            <option name="ConflagratoryR" />
            <option name="CrushingR" />
            <option name="NecromanticR" />
            <option name="PiercingR" />
            <option name="PutrefyingR" />
            <option name="RighteousR" />
            <option name="SlashingR" />
            <option name="ToxicR" />
            </effect>
    [Etc.  That, a few more times.  Some of them near the end lose most of the options, so you'll almost always get a phys resist]
     
    </spell>
    Here's a debuff that won't work:

    Code:
    <spell name="Basking In The Smoke" downtime="1" type="targetfloor" icon="skills/wizard/spell_air6_32.png">
        <buff useTimer="1" time="7" allowstacking="1" stacksize="3" self="0"
        icon="skills/wizard/spell_air6_64.png" smallicon="skills/wizard/spell_air6_32.png" >
        <secondarybuff id="6" amount="-2"/><!-- dodg -->
        <secondarybuff id="7" amount="-2"/><!-- bloc -->
        <secondarybuff id="8" amount="-2"/><!-- counter -->
        <secondarybuff id="10" amount="-2"/><!-- armour -->
        <secondarybuff id="11" amount="-2"/><!-- mr -->
        <secondarybuff id="22" amount="-15"/><!-- magibounce -->
        <resistbuff crushing="-2" blasting="-2" />
    </buff>
    </spell>
     
    <spell name="A Throne Of Smoke"
            type="self"
            icon="skills/wizard/spell_air6_32.png"
            mineTimer="6"
            mineUseGlints="1"
            mineGlintDensity="8"
            mineSpritePNGSeries="sprites/sfx/smokepuffA/smokepuffA"
            mineSpritePNGFirst="0"
            mineSpritePNGNum="8"
            mineSpritePNGRate="150"
            mine="1"
            minePermanent="1"
            mineradius="3"
            wand="0">
        <effect type="trigger" name="Basking In The Smoke" self="0"/>
        <effect type="damage" asphyxiative="1" asphyxiativeF="0.05" affectscaster="0" />
        <anim sprite="sprites/sfx/smokepuffbig/smokepuffbig" frames="6" sfx="blast" centerEffect="1"/>
      </spell>
     
     
    <spell name="Smokethrone" downtime="6" type="self" icon="skills/wizard/spell_air6_32.png">
        <buff useTimer="1" time="6" allowstacking="0" stacksize="1" self="1"
        icon="skills/wizard/spell_air6_64.png" smallicon="skills/wizard/spell_air6_32.png" >
    </buff>
        <effect type="dot" spell="A Throne Of Smoke" amount="3" resistable="0" />
        <description text="The downside to great music - bad air quality.  It's been empirically proven that sound waves are offended by clean air.  There's no other possible explanation for all this funny smelling smoke."/>
    </spell>
     
  2. Kalos

    Kalos Member

    Probably a problem between the type="self" and the mine effects.
    Try type="targetfloor" for "A Throne Of Smoke" instead.
     
  3. TSED

    TSED Member

    Alas, this doesn't seem to work either.
     
  4. Aegho

    Aegho Member

    Basking needs to be target.
    A throne of needs to be targetfloor or an anchored template. If you still don't get it to work, change the dot on smokethrone to a set of delayed triggers.
     
    OmniNegro likes this.
  5. TSED

    TSED Member

    Hmm, as so?

    Code:
     
    <spell name="Basking In The Smoke" downtime="1" type="target" icon="skills/wizard/spell_air6_32.png">
        <buff useTimer="1" time="7" allowstacking="1" stacksize="3" self="0"
        icon="skills/wizard/spell_air6_64.png" smallicon="skills/wizard/spell_air6_32.png" >
        <secondarybuff id="6" amount="-2"/><!-- dodg -->
        <secondarybuff id="7" amount="-2"/><!-- bloc -->
        <secondarybuff id="8" amount="-2"/><!-- counter -->
        <secondarybuff id="10" amount="-2"/><!-- armour -->
        <secondarybuff id="11" amount="-2"/><!-- mr -->
        <secondarybuff id="22" amount="-15"/><!-- magibounce -->
        <resistbuff crushing="-2" blasting="-2" />
    </buff>
    </spell>
     
    <spell name="A Throne Of Smoke"
            anchored="1" type="template" templateID="13"
            icon="skills/wizard/spell_air6_32.png"
            mineTimer="6"
            mineUseGlints="1"
            mineGlintDensity="8"
            mineSpritePNGSeries="sprites/sfx/smokepuffA/smokepuffA"
            mineSpritePNGFirst="0"
            mineSpritePNGNum="8"
            mineSpritePNGRate="150"
            mine="1"
            minePermanent="1"
            mineradius="3"
            wand="0">
        <effect type="trigger" name="Basking In The Smoke" self="0"/>
        <effect type="damage" asphyxiative="1" asphyxiativeF="0.05" affectscaster="0" />
        <anim sprite="sprites/sfx/smokepuffbig/smokepuffbig" frames="6" sfx="blast" centerEffect="1"/>
      </spell>
     
     
    <spell name="Smokethrone" downtime="6" type="targetfloor" icon="skills/wizard/spell_air6_32.png">
        <buff useTimer="1" time="6" allowstacking="0" stacksize="1" self="1"
        icon="skills/wizard/spell_air6_64.png" smallicon="skills/wizard/spell_air6_32.png" >
    </buff>
        <effect type="trigger" spell="A Throne Of Smoke" amount="0" resistable="0" />
        <effect type="trigger" spell="A Throne Of Smoke" amount="2" resistable="0" />
        <effect type="trigger" spell="A Throne Of Smoke" amount="4" resistable="0" />
        <description text="The downside to great music - bad air quality.  It's been empirically proven that sound waves are offended by clean air.  There's no other possible explanation for all this funny smelling smoke."/>
    </spell>
    
    Because it's still all "lol nope." Although, now that I think about it, the asphyx damage isn't triggering either - is there something weird going on with the mine there, or with the triggers? The visual effect of "A Throne..." IS triggering, but it appears that that's where the spell breaks. Maybe it has something to do with the affectscaster="0"? ... Nope, just took that out and tried it, same deal.
     
  6. lccorp2

    lccorp2 Member

    Your trigger in A Throne of Smoke has a self="0" flag in it. Try removing that. Same thing with affectscaster="0" on the damage.
     
  7. TSED

    TSED Member

    Alas, that did not work either.

    I got curious and added in the pentagram animation on Basking (yes outside of the buff tag). It stands out and it was easily copypasted in, so yeah. It doesn't go off. So, it's currently looking like this:

    Code:
     
    <spell name="Basking In The Smoke" downtime="1" type="target" icon="skills/wizard/spell_air6_32.png">
        <buff useTimer="1" time="7" allowstacking="1" stacksize="3"
        icon="skills/wizard/spell_air6_64.png" smallicon="skills/wizard/spell_air6_32.png" >
        <secondarybuff id="6" amount="-2"/><!-- dodg -->
        <secondarybuff id="7" amount="-2"/><!-- bloc -->
        <secondarybuff id="8" amount="-2"/><!-- counter -->
        <secondarybuff id="10" amount="-2"/><!-- armour -->
        <secondarybuff id="11" amount="-2"/><!-- mr -->
        <secondarybuff id="22" amount="-15"/><!-- magibounce -->
        <resistbuff crushing="-2" blasting="-2" />
    </buff>
        <anim sprite="sprites/sfx/black_ritual/black_ritual" frames="10" framerate="100" centerEffect="1" sfx="portal" /> <!-- to be removed once working properly -->
    </spell>
     
    <spell name="A Throne Of Smoke"
            anchored="1" type="template" templateID="13"
            icon="skills/wizard/spell_air6_32.png"
            mineTimer="6"
            mineUseGlints="1"
            mineGlintDensity="8"
            mineSpritePNGSeries="sprites/sfx/smokepuffA/smokepuffA"
            mineSpritePNGFirst="0"
            mineSpritePNGNum="8"
            mineSpritePNGRate="150"
            mine="1"
            minePermanent="1"
            mineradius="3"
            wand="0">
        <effect type="trigger" name="Basking In The Smoke" amount="0"/>
        <effect type="damage" asphyxiative="1" asphyxiativeF="0.05" />
        <anim sprite="sprites/sfx/smokepuffbig/smokepuffbig" frames="6" sfx="blast" centerEffect="1"/>
      </spell>
     
     
    <spell name="Smokethrone" downtime="6" type="targetfloor" icon="skills/wizard/spell_air6_32.png">
        <buff useTimer="1" time="6" allowstacking="0" stacksize="1" self="1"
        icon="skills/wizard/spell_air6_64.png" smallicon="skills/wizard/spell_air6_32.png" >
    </buff>
        <effect type="trigger" spell="A Throne Of Smoke" amount="0" />
        <effect type="trigger" spell="A Throne Of Smoke" amount="2" />
        <effect type="trigger" spell="A Throne Of Smoke" amount="4" />
        <description text="The downside to great music - bad air quality.  It's been empirically proven that sound waves are offended by clean air.  There's no other possible explanation for all this funny smelling smoke."/>
    </spell>
    

    Use Smokethrone, and it goes off. The triggers work as expected, and the buff graphic's on. So, cool.

    For "A Throne Of Smoke", I see the template and anim go off, but that's it. The little puff when something does something within the cloud happens, but that's the end. I tried bracketing out the asphyxiative damage (<!-- -->) but no change occurred. So... something's causing Basking to not trigger. type="target" failed. "targetfloor" failed. ="template" (and templateID="10")? Nope. ="area" + radius="1"? Nope, also failed.

    Cloud buff/debuffs. How do they work?! I am seriously befuddled by this.
     
  8. Syphonix

    Syphonix Member

    <effect type="trigger" name="Basking In The Smoke" self="0"/>

    It should be:

    <effect type="trigger" spell="Basking In The Smoke" self="0"/>
     
    OmniNegro and FaxCelestis like this.
  9. TSED

    TSED Member

    Oh, durrrp. That fixed the Basking-not-firing problem all right! Thanks! Man, do I feel silly now.

    Now to fiddle around with what everyone suggested (again), because the debuff's not happening. I need to head to bed though.
     
    OmniNegro likes this.
  10. Syphonix

    Syphonix Member

    Strange, but try these things:
    remove the downtime tag on Basking in the Smoke
    add a description text for Basking in the Smoke
    try adding the bad="1" tag
    for the hell of it, add self="0" into the buff line in Basking in the Smoke
    remove the amount="0" tag from the trigger
     
    OmniNegro likes this.