• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

how to specialize PlayerGainExp on Entity?

Malacay2k11

New member
I wrote a Attribute which increased ExpGainRate on a decent amount like the following line:

Code:
<passive_effect name="PlayerExpGain" operation="perc_add" value="0.15,1.5" level="1,10"
The great Issue there is, this Exp Bonus applied on everything. chopping trees, digging stone or Selling stuff, which ends in ridiculous amount of Exp.

What i now try to do, is to trigger this ExpBonus only on killing Animals and Zombies like:

Code:
<passive_effect name="PlayerExpGain" operation="perc_add" value="0.15,1.5" level="1,10" target="other" tags="zombie,animal"/>
but it seems not to Work.... Could someone help me to fix this and maybe explain how its works :) ?

 
Last edited by a moderator:
Another try was:

Code:
<effect_group>
<requirement name="onSelfAttackedOther" target="other" target_tags="zombie,animal"/>
<passive_effect name="PlayerExpGain" operation="perc_add" value="0.15,1.5" level="1,10" target="self"/>
</effect_group>
but looks like not working too . . .

 
Last edited by a moderator:
Back
Top