So I want to create a spell mine that delivers a debuff when it's triggered. Problem is it debuffs the player when it's cast, rather than when it's triggered by someone walking on it. Halp? Code: <spell name="Brr!" type="target" wand="0" affectsCaster="0"> <buff usetimer="1" time="4" allowstacking="1" stacksize="4" bad="1" affectsCaster="0" icon="skills/wizard/spell_water1_64.png" smallicon="skills/wizard/spell_water1_32.png"> <primarybuff id="1" amount="-3"/> <primarybuff id="2" amount="-5"/> <primarybuff id="3" amount="-3"/> </buff> </spell> <spell name="Icy Area" type="targetfloor" self="0" mineTimer="8" mineSpritePNGSeries="sprites/sfx/icepuff/icepuff" mineSpritePNGFirst="0" mineSpritePNGNum="6" mineSpritePNGRate="100" mine="1" mineradius="2" mineSpriteDrawOrder="1" minePermanent="1" > <effect type="trigger" spell="Brr!"/> <effect type="damage" hyperborean="2" hyperboreanF=".34"/> </spell> <spell name="Hoarfrost" type="target"> <effect type="damage" hyperborean="2" hyperboreanF=".34"/> <effect type="trigger" spell="Icy Area" affectsCaster="0"/> </spell> Why does this not work, but (for example) this does: Code: <spell name="Invive Thaumite Swarm" type="targetfloor" icon="skills/spells/thaumite_swarm32.png" mineTimer="32" mineSpritePNGSeries="sprites/sfx/thaumites/thaumites" mineSpritePNGFirst="0" mineSpritePNGNum="4" mineSpritePNGRate="100" mine="1" mineSpriteDrawOrder="1" mineradius="1" minesMustBeUnobstructed="0"> <description text="Instills a cloud of thaumaturgons with a crude semblance of life and a terrible voracious fecundity. Let's break it down: Puts a cloud of hungry magic particles on a tile which are just jumping to infect and consume un/living beings."/> <effect type="confuse" self="0" sprite="sprites/sfx/psionic_generic/psionic_generic" frames="5" framerate="100" centerEffect="1" /> <anim sprite="sprites/sfx/smokepuffbig/smokepuffbig" frames="6" sfx="small_spell" centerEffect="1"/> <effect type="trigger" spell="Thaumite Infection" /> <ai hint="mine" /> </spell> <spell name="Thaumite Infection" type="target" icon="skills/spells/thaumite_swarm32.png" wand="1" > <requirements mp="21" savvyBonus="0.30" mincost="8" /> <effect type="damage" putrefying="3" putrefyingF="0.18" affectsCaster="1" /> <description text="A cloud of thaumaturgons comes alive and consumes beings it touches with thoughtless voracity."/> <anim sprite="sprites/sfx/miasmapuffbig/miasmapuffbig" frames="6" framerate="100" sfx="small_spell" centerEffect="1"/> <buff useTimer="1" time="8" self="0" allowstacking="0" icon="skills/spells/thaumite_swarm64.png" smallicon="skills/spells/thaumite_swarm32.png" bad="1" > <halo name="sprites/sfx/thaumites/thaumites" framerate="100" first="0" num="4" /> <secondarybuff id="13" amount="-10" /> <!-- hp regen --> <secondarybuff id="0" amount="-2" /> <!-- hp --> </buff> <effect type="dot" spell="Thaumite Consumption" amount="7" affectsCaster="1" requirebuff="1" /> <effect type="trigger" amount="8" spell="Invive Thaumite Swarm" requirebuff="1" /> </spell> Thanks!
/me slaps myself in the forehead with a raw, carnal fish. Thank you, J-F. I splattered so many affectsCaster="0"s everywhere I totally forgot about self="0". Works like a charm now.
Next question: Is there any particular reason why Code: <effect type="lockdown" amount="20" resistable="0"/> results in a monster that says "This Monster is Rooted to the Floor", but it still just up and walks around after me?