I am dumbfounded as to how to get this to work correctly...

Discussion in 'Modding' started by ChristmasAsen, Dec 28, 2011.

  1. ChristmasAsen

    ChristmasAsen Member

    The general gist of the spell is that it is a template "blast" type spell that has a different effect depending on the monster type.
    It works correctly when I only have one it on, say, animal or undead, but when I put them all together, it ceases to work correctly.
    Also, I can't seem to get some of them not to target the caster, especially blink and teleport.

    <!-- Left-Handed Blast -->

    <!-- Fucking broken, I don't even...
    <spell name="instability" type="target" >
    <effect type="teleport" taxa="Other" affectscaster="1" self="0" />
    </spell> -->

    <spell name="Demonitus" type="target" >
    <effect type="charm" amount="25" />
    <effect type="trigger" spell="Thaumite Infection" />
    </spell>

    <spell name="Vegetables have no soul" type="target" >
    <effect type="confuse" amount="25" />
    <effect type="pacify" />
    </spell>
    -
    <spell name="berzerker spark" type="target" >
    <effect type="damage" blasting="6" blastingF="0.20" />
    <effect type="create" turns="10" objectSprite="dungeon/summoned_wall.png" self="1"/>
    </spell>

    <spell name="Machiniac" taxa="Construct" type="target" >
    <effect type="knock" amount="2" />
    <effect type="trigger" spell="berzerker spark" />
    </spell>

    <spell name="Left-Handed Blast" downtime="1" type="template" templateID="11" icon="skills/turn_demon32.png">
    <effect type="fear" amount="66" turns="12" />
    <effect type="damage" taxa="Animal" conflagratory="1" />
    <effect type="damage" taxa="Animal" burn="1" conflagratory="1" conflagratoryF="0.15" />
    <effect type="damage" taxa="Other" transmutative="2" transmutativeF="0.20" />
    <!-- Can't get this shit to target only Other
    <effect type="trigger" taxa="Other" affectscaster="1" self="0" spell="instability" /> -->

    <effect type="damage" taxa="Undead" righteous="1" righteousF="0.50" />
    <effect type="lockdown" taxa="Undead" amount="10" />

    <effect type="damage" taxa="Demon" aethereal="1" aetherealF="0.32" />
    <effect type="trigger" taxa="Demon" spell="Demonitus" />

    <effect type="damage" taxa="Vegetable" putrefying="1" putrefyingF="0.23" />
    <effect type="trigger" taxa="Vegetable" spell="Vegetables have no soul" />
    <effect type="damage" taxa="Construct" existential="3" />
    <effect type="dot" amount="4" taxa="Construct" spell="Machiniac" />
    <description text="This hand of mine glows with awesome IMORALITY! Its burning grip tells me to defeat you! Take this! My love, my anger, and all of my sorrow! LEFT!!! HANDED!!! BLASSSTTT!!!!!" />
    <anim sprite="sprites/sfx/impact_divine/impact_divine" frames="5" framerate="90" centerEffect="0" sfx="choir" />
    </spell>
     
  2. ChristmasAsen

    ChristmasAsen Member

    This is literally the only thing keeping me from completing this mod and ANY help would be ridiculously appreciated.
     
  3. Null

    Null Will Mod for Digglebucks

    Make a serious of triggers, each checking a different taxa. That should probably work (not certain because I haven't done it) but would be rather ugly.

    Also instability should be displace not teleport?
    Teleport can't move something else because that would require two targets, it targets only where you want to teleport.
    Blink only affects the caster because that's all it used to do. It's essentially deprecated now as displace can do the same thing but with any target.

    Also you have taxa in the spell definition of Maniac.
     
  4. ChristmasAsen

    ChristmasAsen Member

    Welp, after much frustration, I've concluded that multi-taxa spells are not implemented yet. My final hint of this was looking at the skill information for Venomous Infusion...

    But thanks as always for your help Null :)
     
  5. Null

    Null Will Mod for Digglebucks

    I just told you how to do it so you'd only have one taxa per spell... and venomous infusion is just because those are targetHitEffectBuffs not triggers, which don't work with taxas at the moment anyway and so would activate 0-4 times on everything.
    I meant doing it as one of the following:
    Main Spell
    triggers A, B, C, D and E
    A, B, C, D, and E each check a different taxa

    or Main Spell
    triggers A
    A - D triggers B -E
    A - E each check a different taxa.
     
  6. ChristmasAsen

    ChristmasAsen Member

    Ah, I see! I'll get that a try and report back later. Thanks as always

    EDIT: Still not working, fuck it.