FORUM ARCHIVED

No way to get consumefood and consumebooze to NOT target the player?

Discussion in 'Modding' started by lccorp2, Jul 31, 2012.

  1. lccorp2

    lccorp2 Member

    What it says on the tin. I want to create a trap that destroys food and booze, and when the player steps on it, it works fine. Problem is that when MONSTERS step on the trap, the player's food is consumed anyway. The damage still goes on the monster, so I'm pretty sure it's not a targeting issue.

    I'd just like to know if there's a workaround or flag I can set, or if I should just move this to suggestions.

    Here's my XML, for reference:

    <spell name="Rotfiend Trap Effect" type="target">
    <anim sprite="sprites/sfx/chargeB/chargeB" frames="6" framerate="100" sfx="agar_attack" />
    <effect type="damage" putrefying="10" />
    <effect type="consumebooze"/>
    <effect type="consumefood"/>
    <effect type="spawnitemfromlist">
    <option name="Grimy Food"/>
    </effect>
    <ai hint="target"/>
    </spell>
     
  2. Hm. Off the top of my head, the workaround that I know works for "does something different if it's targeting you or a monster" would be to have it trigger a 0-turn buff on the target, and then have the consumebooze and consumefood in a subspell with the requirebuffontrigger tag. ((All credit on this one goes to Aegho (sp?), who explained this to me last week.))
     
  3. lccorp2

    lccorp2 Member

    Forget it. I think I get it.

    Problem solved through the rather creative use of taxa and amount on triggers.