FORUM ARCHIVED

Why doesn't the buff from this fountain effect trigger

Discussion in 'Modding' started by Bohandas, Apr 15, 2014.

  1. Bohandas

    Bohandas Member

    This custom buff is supposed to be triggered by drinking from a fountain, but in practice the fountain displays the associated message but does not trigger the buff. Can any of you figure out what went wrong?

    Code:
    <spell name="Wettenization" type="target" icon="skills/spell_water7_64_thumbs_up_32.png" >
    	<anim sprite="sprites/sfx/Water_flesh_heal/Water_flesh_heal" frames="7" framerate="50" sfx="ping" />
    	<effect type="removebuffbyname" name="On Fire" amount="1" />
    	<buff  useTimer="1" time="41" removable="1"  self="0" stackable="0" stacksize="1" icon="skills/spell_water7_64_thumbs_up_64.png" smallicon="skills/spell_water7_64_thumbs_up_32.png" >
    		<resistbuff conflagratory="6" hyperborean="-2" />
    	</buff>
    	<description text="Wet [PLACEHOLDER DESCRIPTION]"/> <!-- Need a joke for this. "All wet"? "Wet behind the ears"? -->
       </spell>  
       
       
    <spell name="Wettenize Self" type="self" > <!-- This wasn't working when it was above wettenization; hopefully this is one of the cases where changing the order of the spells in the xml fixes things -->
       <effect type="trigger" spell="Wettenization"/>
       </spell>
    
    <fountain name="Wettenize Self" text="The water in this fountain seems particularly wet."/> 
    
     
  2. bluehinter

    bluehinter Member

    Does it not display the buff's icon, or does it just not remove the "On Fire" buff?
    Because, unless you make the removebuffbyname effect a DoT, I think that part of the spell will only trigger once.

    If it's not displaying at all, you might try switching self="0" to "1" in Wettenization. since at that point, the Wettenize Self spell should have already targeted the player.
     
  3. Bohandas

    Bohandas Member

    That'll probably do it.

    But won't that result in the effect not being able to target creatures other than the player? Because that's undesirable too.
     
  4. bluehinter

    bluehinter Member

    It might, but can creatures other than the player use potions/fountains? If you're thinking of adding it to a skill set, you may need to cheat and create a different spell called "Wettenized" or something similar that is a straight up target effect.
     
  5. Alistaire

    Alistaire Member

    You can't removebuffbyname on monsters, so it's kinda pointless to target monsters with this anyways.
     
  6. Bohandas

    Bohandas Member

    I want to have the option to use it for other things later