Jump to content

Problem with aura Buff | self to zombies


Nocreeper

Recommended Posts

<buff name="buffenemy01">
			<duration value=".25"/>
			<effect_group>
				<triggered_effect trigger="onSelfBuffFinish" action="AddBuff" buff="buffenemy02"/>
				<triggered_effect trigger="onSelfBuffStart" action="AddBuff" target="positionAOE" range="5" buff="buffenemy"/>
			</effect_group>
			<effect_group>
				<triggered_effect trigger="onSelfBuffStart" action="AddBuff" target="selfAOE" range="5" buff="buffenemydegrade">
					<requirement name="StatComparePercCurrentToMax" stat="health" operation="LTE" value=".5"/>
				</triggered_effect>
			</effect_group>
		</buff>

		<buff name="buffenemy02">
			<duration value=".25"/>
			<effect_group>	
				<triggered_effect trigger="onSelfBuffFinish" action="AddBuff" buff="buffenemy01"/>
				<triggered_effect trigger="onSelfBuffStart" action="AddBuff" target="positionAOE" range="5" buff="buffenemy"/>
			</effect_group>
		</buff>

		<buff name="buffenemy" name_key="buffenemy" tooltip_key="buffenemy" icon="ui_game_symbol_character" icon_color="0,0,128" icon_blink="true">
			<stack_type value="replace"/>
			<duration value="2"/>
			<update_rate value="1"/>
			<effect_group>
				<triggered_effect trigger="onSelfBuffStart" action="AddBuff" buff="buffBurningZombie"/>
				<triggered_effect trigger="onSelfBuffFinish" action="AddBuff" buff="buffBurningZombie"/>	
				<triggered_effect trigger="onSelfBuffUpdate" action="AddBuff" buff="buffBurningZombie"/>	
				<triggered_effect trigger="onSelfDied" action="AddBuff" buff="buffBurningZombie"/>
				<triggered_effect trigger="onSelfBuffStart" action="AddBuff" target="self" buff="HealthMax1"/>
				<requirement name="EntityTagCompare" tags="entity,zombie,walker"/>				
			</effect_group>	
		</buff>	

		<buff name="buffenemydegrade" name_key="buffenemydegrade" tooltip_key="buffenemydegrade" icon="ui_game_symbol_block_repair" icon_color="235,3,0" icon_blink="true">
			<stack_type value="replace"/>
			<duration value="15"/>
			<effect_group>
				<passive_effect name="DegradationPerUse" operation="base_set" value="25">
				</passive_effect>
			</effect_group>
		</buff>

 

thats a copy of the banshee queen mod aura buff.

 

this is what i've been trying to do for a week, is to get a healthmax buff to the zombies depend on my player level or gamestage...

 

but i dont get it -.-

 

can anyone helps me here ?

Edited by Nocreeper (see edit history)
Link to comment
Share on other sites

    <buff name="HealthMax1" hidden="true">
        <effect_group>    
            <requirement name="PlayerLevel" operation="Equals" value="1" tags="player"/>        
            <passive_effect name="HealthMax" operation="base_add" value="50"></passive_effect>
            <triggered_effect trigger="onSelfFirstSpawn" action="AddBuff" target="self" buff="buffEntitySpawnHeal"/>    
            <triggered_effect trigger="onSelfBuffStart" action="AddBuff" target="self" buff="buffEntitySpawnHeal"/>
            <triggered_effect trigger="onSelfBuffFinish" action="AddBuff" target="self" buff="buffEntitySpawnHeal"/>
            <triggered_effect trigger="onSelfBuffUpdate" action="AddBuff" target="self" buff="buffEntitySpawnHeal"/>
        </effect_group>
        <effect_group>    
            <requirement name="PlayerLevel" operation="Equals" value="2" tags="player"/>        
            <passive_effect name="HealthMax" operation="base_add" value="100"></passive_effect>
            <triggered_effect trigger="onSelfFirstSpawn" action="AddBuff" target="self" buff="buffEntitySpawnHeal"/>    
            <triggered_effect trigger="onSelfBuffStart" action="AddBuff" target="self" buff="buffEntitySpawnHeal"/>
            <triggered_effect trigger="onSelfBuffFinish" action="AddBuff" target="self" buff="buffEntitySpawnHeal"/>
            <triggered_effect trigger="onSelfBuffUpdate" action="AddBuff" target="self" buff="buffEntitySpawnHeal"/>
        </effect_group>
        <effect_group>    
            <requirement name="PlayerLevel" operation="Equals" value="3" tags="player"/>        
            <passive_effect name="HealthMax" operation="base_add" value="150"></passive_effect>
            <triggered_effect trigger="onSelfFirstSpawn" action="AddBuff" target="self" buff="buffEntitySpawnHeal"/>    
            <triggered_effect trigger="onSelfBuffStart" action="AddBuff" target="self" buff="buffEntitySpawnHeal"/>
            <triggered_effect trigger="onSelfBuffFinish" action="AddBuff" target="self" buff="buffEntitySpawnHeal"/>
            <triggered_effect trigger="onSelfBuffUpdate" action="AddBuff" target="self" buff="buffEntitySpawnHeal"/>
        </effect_group>
        <effect_group>    
            <requirement name="PlayerLevel" operation="Equals" value="4" tags="player"/>        
            <passive_effect name="HealthMax" operation="base_add" value="200"></passive_effect>
            <triggered_effect trigger="onSelfFirstSpawn" action="AddBuff" target="self" buff="buffEntitySpawnHeal"/>    
            <triggered_effect trigger="onSelfBuffStart" action="AddBuff" target="self" buff="buffEntitySpawnHeal"/>
            <triggered_effect trigger="onSelfBuffFinish" action="AddBuff" target="self" buff="buffEntitySpawnHeal"/>
            <triggered_effect trigger="onSelfBuffUpdate" action="AddBuff" target="self" buff="buffEntitySpawnHeal"/>
        </effect_group>
        <effect_group>    
            <requirement name="PlayerLevel" operation="Equals" value="5" tags="player"/>        
            <passive_effect name="HealthMax" operation="base_add" value="250"></passive_effect>
            <triggered_effect trigger="onSelfFirstSpawn" action="AddBuff" target="self" buff="buffEntitySpawnHeal"/>    
            <triggered_effect trigger="onSelfBuffStart" action="AddBuff" target="self" buff="buffEntitySpawnHeal"/>
            <triggered_effect trigger="onSelfBuffFinish" action="AddBuff" target="self" buff="buffEntitySpawnHeal"/>
            <triggered_effect trigger="onSelfBuffUpdate" action="AddBuff" target="self" buff="buffEntitySpawnHeal"/>
        </effect_group>
    </buff>       

 what im doing wrong here ?

 

Link to comment
Share on other sites

Well, I tried to follow best I can with what you have going on. Seems you're using a buff on the player that transfers some info to nearby enemies within 5 blocks. Confused on the buffEnemy01 and 02 part, but as far as the health max thing goes, you can't read a player cvar on an enemy. You'll have to create a new cvar and transfer it.

This means for every possible player level, you need to radiate a cvar to nearby enemies. The first two triggers are to be attached to the player to check their level. This then sends the level, in the form of a new cvar, to enemies within 5 blocks. Now, I'm not sure what buffEntitySpawnHeal is, but HealthMax can't be increased dynamically without some form of healing. What you have right now will constantly call the heal on update. You'll have to add in some form of a cooldown buff or another cvar check so it doesn't do that.

Also, all of this is with the expectation the enemies are getting the buff already, and it's just not working (which is what I got from a quick look). Hope it helps!
 

		<triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="EnemyLevel" target="selfAOE" range="5" target_tags="entity,zombie,walker" operation="set" value="1">
			<requirement name="CVarCompare" cvar="PlayerLevel" operation="Equals" value="1" target="self"/>
		</triggered_effect>
		<triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="EnemyLevel" target="selfAOE" range="5" target_tags="entity,zombie,walker" operation="set" value="2">
			<requirement name="CVarCompare" cvar="PlayerLevel" operation="Equals" value="2" target="self"/>
		</triggered_effect>
		
		
		
		 <effect_group>    
            <requirement name="EnemyLevel" operation="Equals" value="1"/>        
				<passive_effect name="HealthMax" operation="base_add" value="50"/>
				<triggered_effect trigger="onSelfFirstSpawn" action="AddBuff" target="self" buff="buffEntitySpawnHeal"/>    
				<triggered_effect trigger="onSelfBuffStart" action="AddBuff" target="self" buff="buffEntitySpawnHeal"/>
				<triggered_effect trigger="onSelfBuffFinish" action="AddBuff" target="self" buff="buffEntitySpawnHeal"/>
				<triggered_effect trigger="onSelfBuffUpdate" action="AddBuff" target="self" buff="buffEntitySpawnHeal"/>
        </effect_group>
		 <effect_group>    
            <requirement name="EnemyLevel" operation="Equals" value="2"/>        
				<passive_effect name="HealthMax" operation="base_add" value="100"/>
				<triggered_effect trigger="onSelfFirstSpawn" action="AddBuff" target="self" buff="buffEntitySpawnHeal"/>    
				<triggered_effect trigger="onSelfBuffStart" action="AddBuff" target="self" buff="buffEntitySpawnHeal"/>
				<triggered_effect trigger="onSelfBuffFinish" action="AddBuff" target="self" buff="buffEntitySpawnHeal"/>
				<triggered_effect trigger="onSelfBuffUpdate" action="AddBuff" target="self" buff="buffEntitySpawnHeal"/>
        </effect_group>

 

Link to comment
Share on other sites

 

First of all --- Thank you very much !!!!!!!!!!!!!!!!!!!!!!!!!

for the time you give me to explain something to a beginner

you save my day :) or ruin it , because i struggle here with my knowledge any tipps i very thankful :)


 

<!-- ****************** Documentation ****************** --><!--
in entityclasses.xml to the zombie
<triggered_effect trigger="onSelfFirstSpawn" action="AddBuff" target="self" buff="buffenemy01"/>
		
with:		<buff name="buffenemyhealthmax" name_key="buffenemy" tooltip_key="buffenemy" icon="ui_game_symbol_character" icon_color="0,0,128" icon_blink="true">
			<stack_type value="replace"/>
			<duration value="2"/>
			<update_rate value="1"/>
			<effect_group>	
				<triggered_effect trigger="onSelfBuffStart" action="AddBuff" target="self" buff="HealthMax50"/>   
				<triggered_effect trigger="onSelfBuffFinish" action="AddBuff" target="self" buff="HealthMax50"/>
				<triggered_effect trigger="onSelfBuffUpdate" action="AddBuff" target="self" buff="HealthMax50"/>
				<triggered_effect trigger="onSelfDied" action="AddBuff" target="self" buff="HealthMax50"/> 	
				<triggered_effect trigger="onSelfFirstSpawn" action="AddBuff" buff="HealthMax50"/>				
			</effect_group>	
			</buff>	

with:		<buff name="buffenemy02">
			<duration value=".25"/>
			<effect_group>	
				<triggered_effect trigger="onSelfBuffFinish" action="AddBuff" buff="buffenemy01"/>
			</effect_group>
			</buff>
			
and     on buffenemy01
			<buff name="buffenemy01">
			<duration value=".25"/>
			<effect_group>
				<triggered_effect trigger="onSelfBuffFinish" action="AddBuff" buff="buffenemy02"/>
these line 	<triggered_effect trigger="onSelfBuffStart" action="AddBuff" target="positionAOE" target_tags="player" range="100" buff="buffenemyhealthmax"/>				
			</effect_group>
			<effect_group>
				<triggered_effect trigger="onSelfBuffStart" action="AddBuff" target="selfAOE" range="100" buff="buffenemydegrade">
					<requirement name="StatComparePercCurrentToMax" stat="health" operation="LTE" value=".5"/>
				</triggered_effect>
			</effect_group>
			</buff>
			
<triggered_effect trigger="onSelfBuffStart" action="AddBuff" target="positionAOE" range="100" buff="buffenemyhealthmax"/>	
Player and Zombie gets + 50 HP			
			
<triggered_effect trigger="onSelfBuffStart" action="AddBuff" target="positionAOE" target_tags="player" range="100" buff="buffenemyhealthmax"/>	
Player gets + 50 HP
			
<triggered_effect trigger="onSelfBuffStart" action="AddBuff" target="positionAOE" target_tags="entity,zombie,walker" range="100" buff="buffenemyhealthmax"/>	
Player and Zombie gets + 50 HP	

<triggered_effect trigger="onSelfBuffStart" action="AddBuff" target="positionAOE" target_tags="zombie" range="100" buff="buffenemyhealthmax"/>	
Zombie gets + 50 HP		
-->	 

 

The Problem i have it adds sometime +50 , + 50 and + 100 but notime just + 100 on level 2

 

EDIT : i found the problem , a player is a entity to xD

 

that a reason why

 

		<buff name="buffenemy" name_key="buffenemy" tooltip_key="buffenemy" icon="ui_game_symbol_character" icon_color="0,0,128" icon_blink="true">
			<stack_type value="replace"/>
			<duration value="2"/>
			<update_rate value="1"/>
			<effect_group>
				<requirement name="EntityTagCompare" tags="entity,zombie,walker"/>
				<triggered_effect trigger="onSelfBuffStart" action="AddBuff" buff="buffBurningZombie"/>
				<triggered_effect trigger="onSelfBuffFinish" action="AddBuff" buff="buffBurningZombie"/>	
				<triggered_effect trigger="onSelfBuffUpdate" action="AddBuff" buff="buffBurningZombie"/>	
				<triggered_effect trigger="onSelfDied" action="AddBuff" buff="buffBurningZombie"/>		
			</effect_group>	
		</buff>	

 

burned me to

 

Edited by Nocreeper (see edit history)
Link to comment
Share on other sites

Ok so i need to write this , right ?

 

	<triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="EnemyLevel" target="selfAOE" range="5" target_tags="zombie" operation="set" value="1">
			<requirement name="CVarCompare" cvar="PlayerLevel" operation="Equals" value="1" target="self"/>
		</triggered_effect>
		<triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="EnemyLevel" target="selfAOE" range="5" target_tags="zombie" operation="set" value="2">
			<requirement name="CVarCompare" cvar="PlayerLevel" operation="Equals" value="2" target="self"/>
		</triggered_effect>
		
		
		
		 
Edited by Nocreeper
boosted (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...