FORUM ARCHIVED

Trying to make a transmorgify like effect, it is not working!

Discussion in 'Modding' started by Kaidelong, Oct 17, 2012.

  1. Kaidelong

    Kaidelong Member

    Here is what I have:
    Code:
    <spell name="ArrowSpawnHitAnimal" type="target">
        <effect type="spawnItemFromList">
          <option name="New Bolt" />
          <option name="New Bolt" />
          <option name="New Bolt" />
          <option name="New Bolt" />
          <option name="New Bolt" />
          <option name="New Bolt" />
          <option name="New Bolt" />
          <option name="New Bolt" />
          <option name="New Bolt" />
          <option name="New Bolt" />
          <option name="New Bolt" />
          <option name="New Bolt" />
          <option name="Bone Bolt" />
          <option name="Bone Bolt" />
          <option name="Bone Bolt" />
          <option name="Skull Bolt" />
          <option name="Cruelly Barbed Iron Bolt" />
          <option name="Ingeniously Scythed Iron Bolt" />
          <option name="Barbed Iron Bolt" />
        </effect>
        <effect type="damage" transmutative="2" transmutativeF="0.06" />
      </spell>
      <spell name="ArrowSpawnHitVegetable" type="target">
        <effect type="spawnItemFromList">
          <option name="Wooden Bolt" />
          <option name="Wooden Bolt" />
          <option name="Wooden Bolt" />
          <option name="Wooden Bolt" />
          <option name="Wooden Bolt" />
          <option name="Wooden Bolt" />
          <option name="Wooden Bolt" />
          <option name="Wooden Bolt" />
          <option name="Wooden Bolt" />
          <option name="Wooden Bolt" />
          <option name="Plastic Bolt" />
          <option name="Plastic Bolt" />
          <option name="Cruelly Barbed Plastic Bolt" />
          <option name="Ingeniously Scythed Plastic Bolt" />
          <option name="Copper Bolt" />
          <option name="Barbed Copper Bolt" />
        </effect>
        <effect type="damage" transmutative="2" transmutativeF="0.06" />
      </spell>
      <spell name="ArrowSpawnHitDemon" type="target">
        <effect type="spawnItemFromList">
          <option name="Broadhead Bolt" />
          <option name="Broadhead Bolt" />
          <option name="Broadhead Bolt" />
          <option name="Broadhead Bolt" />
          <option name="Broadhead Bolt" />
          <option name="Broadhead Bolt" />
          <option name="Broadhead Bolt" />
          <option name="Broadhead Bolt" />
          <option name="Broadhead Bolt" />
          <option name="Broadhead Bolt" />
          <option name="Broadhead Bolt" />
          <option name="Broadhead Bolt" />
          <option name="Broadhead Bolt" />
          <option name="Broadhead Bolt" />
          <option name="Broadhead Bolt" />
          <option name="Broadhead Bolt" />
          <option name="Broadhead Bolt" />
          <option name="Broadhead Bolt" />
          <option name="Broadhead Bolt" />
          <option name="Broadhead Bolt" />
          <option name="Broadhead Bolt" />
          <option name="Bolt Moderne" />
          <option name="Bolt Moderne" />
          <option name="Bolt Moderne" />
          <option name="Bolt Moderne" />
          <option name="Bolt Moderne" />
          <option name="Bolt Moderne" />
          <option name="Bolt Moderne" />
          <option name="Bolt Moderne" />
          <option name="Bolt Moderne" />
          <option name="Bolt Moderne" />
          <option name="Bolt Moderne" />
          <option name="Bolt Moderne" />
          <option name="Bolt Moderne" />
          <option name="Bolt Moderne" />
          <option name="Bolt Moderne" />
          <option name="Bolt of Squid" />
        </effect>
        <effect type="damage" transmutative="2" transmutativeF="0.06" />
      </spell>
      <spell name="ArrowSpawnHitSlime" type="target">
        <effect type="spawnItemFromList">
          <option name="Poison Ampoule Bolt" />
          <option name="Poison Ampoule Bolt" />
          <option name="Poison Ampoule Bolt" />
          <option name="Poison Ampoule Bolt" />
          <option name="Poison Ampoule Bolt" />
          <option name="Poison Ampoule Bolt" />
          <option name="Poison Ampoule Bolt" />
          <option name="Poison Ampoule Bolt" />
          <option name="Poison Ampoule Bolt" />
          <option name="Poison Bottle Bolt" />
          <option name="Poison Bottle Bolt" />
          <option name="Acid Ampoule Bolt" />
          <option name="Acid Ampoule Bolt" />
          <option name="Acid Ampoule Bolt" />
          <option name="Acid Ampoule Bolt" />
          <option name="Acid Ampoule Bolt" />
          <option name="Acid Ampoule Bolt" />
          <option name="Acid Bottle Bolt" />
          <option name="Fire Bolt" />
          <option name="Fire Bolt" />
          <option name="Fire Bolt" />
          <option name="Tesla's Bolt" />
        </effect>
        <effect type="damage" transmutative="2" transmutativeF="0.06" />
      </spell>
      <spell name="ArrowSpawnHitUndead" type="target">
        <effect type="spawnItemFromList">
          <option name="Bolt Classic" />
          <option name="Bolt Classic" />
          <option name="Bolt Classic" />
          <option name="Bolt Classic" />
          <option name="Bolt Classic" />
          <option name="Bolt Classic" />
          <option name="Bolt Classic" />
          <option name="Bolt Classic" />
          <option name="Bolt Classic" />
          <option name="Bolt Classic" />
          <option name="Bolt Classic" />
          <option name="Bone Bolt" />
          <option name="Bone Bolt" />
          <option name="Bone Bolt" />
          <option name="Bone Bolt" />
          <option name="Bone Bolt" />
          <option name="Bone Bolt" />
          <option name="Bone Bolt" />
          <option name="Bone Bolt" />
          <option name="Skull Bolt" />
          <option name="Skull Bolt" />
          <option name="Skull Bolt" />
        </effect>
        <effect type="damage" transmutative="2" transmutativeF="0.06" />
      </spell>
      <spell name="ArrowSpawnHitConstruct" type="target">
        <effect type="spawnItemFromList">
          <option name="Clockwork Drill Bolt" />
          <option name="Clockwork Drill Bolt" />
          <option name="Steel Bolt" />
          <option name="Barbed Steel Bolt" />
          <option name="Cruelly Barbed Steel Bolt" />
          <option name="Ingeniously Scythed Steel Bolt" />
          <option name="Bronze Bolt" />
          <option name="Barbed Bronze Bolt" />
          <option name="Cruelly Barbed Bronze Bolt" />
          <option name="Ingeniously Scythed Bronze Bolt" />
          <option name="Clockwork Drill Bolt" />
          <option name="Clockwork Drill Bolt" />
          <option name="Steel Bolt" />
          <option name="Barbed Steel Bolt" />
          <option name="Cruelly Barbed Steel Bolt" />
          <option name="Ingeniously Scythed Steel Bolt" />
          <option name="Bronze Bolt" />
          <option name="Barbed Bronze Bolt" />
          <option name="Cruelly Barbed Bronze Bolt" />
          <option name="Ingeniously Scythed Bronze Bolt" />
          <option name="Clockwork Drill Bolt" />
          <option name="Steel Bolt" />
          <option name="Barbed Steel Bolt" />
          <option name="Cruelly Barbed Steel Bolt" />
          <option name="Ingeniously Scythed Steel Bolt" />
          <option name="Bronze Bolt" />
          <option name="Barbed Bronze Bolt" />
          <option name="Cruelly Barbed Bronze Bolt" />
          <option name="Ingeniously Scythed Bronze Bolt" />
          <option name="Bolt of Mass Destrucion" />
          <option name="Tesla's Bolt" />
          <option name="Tesla's Bolt" />
          <option name="Tesla's Bolt" />
        </effect>
        <effect type="damage" transmutative="2" transmutativeF="0.06" />
      </spell>
      <spell name="BoltsproutAnimal" type="target">
        <effect type="dot" spell="ArrowSpawnHitAnimal" amount="5" />
        <effect type="dot" spell="ArrowSpawnHitAnimal" amount="5" />
        <effect type="dot" spell="ArrowSpawnHitAnimal" amount="5" />
      </spell>
      <spell name="BoltsproutVegetable" type="target">
        <effect type="dot" spell="ArrowSpawnHitVegetable" amount="5" />
        <effect type="dot" spell="ArrowSpawnHitVegetable" amount="5" />
        <effect type="dot" spell="ArrowSpawnHitVegetable" amount="5" />
      </spell>
      <spell name="BoltsproutDemon" type="target">
        <effect type="dot" spell="ArrowSpawnHitDemon" amount="5" />
        <effect type="dot" spell="ArrowSpawnHitDemon" amount="5" />
        <effect type="dot" spell="ArrowSpawnHitDemon" amount="5" />
      </spell>
      <spell name="BoltsproutSlime" type="target">
        <effect type="dot" spell="ArrowSpawnHitSlime" amount="5" />
        <effect type="dot" spell="ArrowSpawnHitSlime" amount="5" />
        <effect type="dot" spell="ArrowSpawnHitSlime" amount="5" />
      </spell>
      <spell name="BoltsproutUndead" type="target">
        <effect type="dot" spell="ArrowSpawnHitUndead" amount="5" />
        <effect type="dot" spell="ArrowSpawnHitUndead" amount="5" />
        <effect type="dot" spell="ArrowSpawnHitUndead" amount="5" />
      </spell>
      <spell name="BoltsproutConstruct" type="target">
        <effect type="dot" spell="ArrowSpawnHitConstruct" amount="5" />
        <effect type="dot" spell="ArrowSpawnHitConstruct" amount="5" />
        <effect type="dot" spell="ArrowSpawnHitConstruct" amount="5" />
      </spell>
      <spell type="target" name="Boltsprout" icon="placeholder64.png">
        <effect type="trigger" taxa="Animal" spell="BoltsproutAnimal" percent="100" amount="1" />
        <effect type="trigger" taxa="Vegetable" spell="BoltsproutVegetable" percent="100" amount="1" />
        <effect type="trigger" taxa="Demon" spell="BoltsproutDemon" percent="100" amount="1" />
        <effect type="trigger" taxa="Other" spell="BoltsproutSlime" percent="100" amount="1" />
        <effect type="trigger" taxa="Undead" spell="BoltsproutUndead" percent="100" amount="1" />
        <effect type="trigger" taxa="Construct" spell="BoltsproutConstruct" percent="100" amount="1" />
        <requirements mp="1" />
      </spell>

    The damage works just fine, but the arrows are not spawning. What is going ooooon
     
  2. You probably need to target the floor in order for the items to spawn. Try putting that effect in a separate spell that triggers after the damage.
     
  3. Essence

    Essence Will Mod for Digglebucks

    this is stupid -- try de-capitalizing "spawnitemfromlist".
     
    Kazeto likes this.
  4. Kaidelong

    Kaidelong Member

  5. mining

    mining Member

    Does the validator throw anything?
     
  6. Kazeto

    Kazeto Member

    'amount="1"' for the trigger (the one that calls for arrow spawning) that you made makes the arrow spawning trigger after 1 turn. I'm not sure if that is something you intended to happen.

    Other than that, I'll need to have some free time to say anything.
     
  7. Essence

    Essence Will Mod for Digglebucks

    Amount="1" makes it happen at the end of the current turn. ="2" would be the end of next turn.
     
  8. Kaidelong

    Kaidelong Member

    Nope. Makes sense, as I was using a validating XML editor to make it.

    The XML editor itself was complaining about how "spawnitemfromlist" should be "spawnItemFromList". The capitalization fixer did change it back to the camelCase version.

    btw Kazeto, amount="1" is intentional due to a bug with triggers not respecting taxa with amount="0"
     
  9. Kazeto

    Kazeto Member

    No, I don't mean the ones in the main trigger. I know these need that to work.

    I mean the ones in "ArrowSpawnHit[whatever]" spells, since these have 'amount="1"' too and they aren't using taxa.
     
  10. Kaidelong

    Kaidelong Member

    Oh yeah, it was one of those shotgun debugging things where I added radom stuff hoping it'd work. Clearly it didn't.
     
  11. Kazeto

    Kazeto Member

    Ok, so shotgun randomness time now.

    Add some sort of animation to the spawning effect and check if it's the problem with it not triggering (I would be surprised, but weird stuff happens sometimes) or if the spawning effect is botched there.
     
  12. Essence

    Essence Will Mod for Digglebucks

    He knows it's triggering because the damage (which is in the same spell) is going off.
     
  13. Kazeto

    Kazeto Member

    Erm, no, Essence. Get some sleep and then take a look at his new version. Or take a look at the new version and then get some sleep.

    Either way, you missed the link to the new version that he posted on pastebin, and there the bolt-spawning and damage-dealing effects are distinct, and the damage-dealing ones call for triggers to the bolt-spawning ones.
     
  14. Essence

    Essence Will Mod for Digglebucks

    Sleep...yess...
     
    Kazeto likes this.