Jump to content

How to add double XP at night, but not on Bloodmoon night


Recommended Posts

I want to add double XP for non-Bloodmoon nights without effecting the xp on Bloodmoon nights.  I'm using the code below to double XP for nights (all props to DarkAoRaidenX), but I can't figure out how to exclude Bloodmoon nights.  I've tried to add a requirement for <requirement name="IsBloodMoon" operation="LT" value="1"/> and have tried to add a separate buff using <requirement name="IsBloodMoon" /> and perc_subtract = 2 (thinking this will divide the xp by 2, but not sure) but both gave me errors when I killed a zombie.  Any help/pointers is much appreciated.

 

 

buffs.xml

        <buff name="buffNightExpBoost" hidden="true">
            <stack_type value="ignore"/>
            <effect_group>
                <requirement name="IsNight"/>
                <passive_effect name="PlayerExpGain" operation="perc_add" value="2" tags="Kill" />
            </effect_group>
        </buff>

 

 

entityClasses.xml

    <append xpath="/entity_classes/entity_class[@name='playerMale']">
        <effect_group>
            <triggered_effect trigger="onSelfEnteredGame" action="AddBuff" target="self" buff="buffNightExpBoost"/>
            <triggered_effect trigger="onSelfRespawn" action="AddBuff" target="self" buff="buffNightExpBoost"/>
        </effect_group>  
    </append>

 

 

Edited by Darthbob2000 (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...