FORUM ARCHIVED

Why Can't I make a room with a lever that casts "This Root Shall Suffer"?

Discussion in 'Modding' started by Bohandas, May 22, 2013.

  1. Bohandas

    Bohandas Member

    Why Can't I make a room with a lever that casts "This Root Shall Suffer"?

    Theoretically I should be able to do this by copying the code from the "Fun Chamber" from RotDG and changing the spell cast by the lever to "This Root Shall Suffer" and changing the name of the room. In practice, however, the lever in the custom room does nothing. What gives???
     
  2. Monkooky

    Monkooky Member

    Ok finally figured this out. It appears that lever scripts do not interact nicely with delayed spell effects. If you change all the This Root Shall Suffer triggers to amount="0" it works.
    Except the mine effects- those still don't activate. Not sure why. I didn't test thoroughly enough.
     
  3. Bohandas

    Bohandas Member

    What if I had it cast a dummy spell whose only effect is to cast This Root Shall Suffer on the player, do you think that would work?
     
  4. Kazeto

    Kazeto Member

    Put 1-turn buff on the player and make it inflict "This Root Shall Suffer" as a 1-turn-lasting DoT effect.
     
  5. Bohandas

    Bohandas Member

    OK, I finally got around to testing this, and the room works if instead of casting This Root Shall Suffer directly it casts a custom spell defined as such:

    <spell name="Cast This Root Shall Suffer" type="self" >
    <effect type="trigger" spell="This Root Shall Suffer"/>
    </spell>
     
    Kazeto likes this.