Jump to content

Help Writing Script to Prevent Giving XP on Death? Unethical Deeds EE


ligma0094

Recommended Posts

Posted

Was playing unethical deeds with dust, found myself capturing npcs to preserve sanity. Wasn't getting XP, so I wrote a script to give myself the XP when I capture them. I dont want them to give me the xp again if I kill them (even if released), but I have no idea how to do it (this is my first ever script). Anyone got any suggestions? From what I can gather the mod shoves every captured NPC into a list, and removes them when released. I figure there might be something in NX.

Posted

Hypothetically speaking, you could set iXPRewardKillNPC___  and iXPRewardKillNPC___ to zero.

 

If I understand correctly, this would prevent all experience from killing anything. You would then have to arrange things so that all such NPCs would be off the board when you switched back. (And that all other NPCs would remain off the board until then.)

 

It might be possible to intercept and replace the routine which awards experience, or to set an on-death effect which awarded you negative experience when you killed them, but getting those right sound like extensive work.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...