Henchman XP scaling in the OC & XPs

In the OC and XPs when you hire a henchman your XP is scaled down 20%. Anyone know where or how to change this?

My approach is to set the XP for kills to zero in the toolset, applying my own rules in the On Death event.

I generally award XP for achievements, not for kills (unless they’re boss kills).

1 Like

Yes that is how you would do it if you’re using a custom XP system, but the problem with the OC and XPs and any other modules that don’t have a custom XP system, how or where is XP awarded? Where does the Henchman XP scaling take place?

The stock standard death handler nw_c2_default7 says nothing about XP, and I don’t see Event 1007 being handled anywhere. Maybe the XP awarding is hard coded?

#include "x2_inc_compon"
#include "x0_i0_spawncond"
#include "x3_inc_horse"

void main()
{
    int nClass = GetLevelByClass(CLASS_TYPE_COMMONER);
    int nAlign = GetAlignmentGoodEvil(OBJECT_SELF);
    object oKiller = GetLastKiller();

    if (GetLocalInt(GetModule(),"X3_ENABLE_MOUNT_DB")&&GetIsObjectValid(GetMaster(OBJECT_SELF))) SetLocalInt(GetMaster(OBJECT_SELF),"bX3_STORE_MOUNT_INFO",TRUE);


    // If we're a good/neutral commoner,
    // adjust the killer's alignment evil
    if(nClass > 0 && (nAlign == ALIGNMENT_GOOD || nAlign == ALIGNMENT_NEUTRAL))
    {
        AdjustAlignment(oKiller, ALIGNMENT_EVIL, 5);
    }

    // Call to allies to let them know we're dead
    SpeakString("NW_I_AM_DEAD", TALKVOLUME_SILENT_TALK);

    //Shout Attack my target, only works with the On Spawn In setup
    SpeakString("NW_ATTACK_MY_TARGET", TALKVOLUME_SILENT_TALK);

    // NOTE: the OnDeath user-defined event does not
    // trigger reliably and should probably be removed
    if(GetSpawnInCondition(NW_FLAG_DEATH_EVENT))
    {
         SignalEvent(OBJECT_SELF, EventUserDefined(1007));
    }
    craft_drop_items(oKiller);
}