FORUM ARCHIVED

A Buff That Triggers a Debuff (or Vice-Versa)

Discussion in 'Modding' started by Rarefied Horse Meat, Feb 2, 2012.

  1. Ideally, I want there to be a percent chance on hit for the player to buff themselves AND debuff the enemy, in one go. I can code them as two separate on-hit triggers with their own proc chance easily enough, but I want them to be tied together - a chance on-hit for both to happen.

    First I tried an on-hit type=self buff, which triggers a type=target debuff. This causes you to buff yourself and then apply the debuff to yourself. Then I tried switching them around, and the proc simply crashed the game. Any suggestions or tips on how how to make this work?
     
  2. J-Factor

    J-Factor Member

    Try a type="target" spell that contains the debuff and triggers another spell that contains a self="1" buff.

    If that doesn't work, try three spells: one for the debuff, one for the buff and one that triggers both of them.
     
  3. Essence

    Essence Will Mod for Digglebucks

    Yeah. That last one. Proc-on-hit a spell that triggers a spell that is a self="1" buff and also triggers a spell that is a type="target" debuff. Should work.
     
  4. I forgot to say that this worked perfectly, and thanks to you both!