Aller au contenu

Photo

Scarface's XP/GP System


  • Veuillez vous connecter pour rĂ©pondre
7 réponses à ce sujet

#1
Einzbern

Einzbern
  • Members
  • 16 messages
Since no posts have been made on the NWVaults page, http://nwvault.ign.c....Detail&id=2827, in years I figured I'd be better off asking here.

In my original post (http://social.biowar...4836/1#13275072) I had asked about removing the XP penalty for using a summon. Scarface's script looked like it would work fine. I managed to import them into the OC. All seems to work fine, except for 2 issues:

1.)I'm getting more XP than I should. Vanilla, I'm getting 7 XP for one kill and 19XP for another.  I install the the script and now I'm getting a second increase of 5XP for each kill in addition to the XP I should be getting.

2.) I set SUMMON_PENALTY to 0.0 and nothing changed. I still had about 80% reduced XP. I tried changing it to 0.01, but I still had about 80% reduced XP.

Anyone have an idea what's up?

#2
WhiZard

WhiZard
  • Members
  • 1 204 messages
Is your XP slider (under "edit" -> "module properties" -> "advanced" tab -> XP scale) set to zero? The hard-code will always be triggered to give XP; this amount cannot be changed. XP systems (like Scarface's) accomplish alternate XP by coding the entire XP system themselves, and setting the slider to zero (disabling the hard-coded rewards).

To disable multi-class and party-size penalty you cannot use GiveXPToCreature().  Instead you will manually get the XP (GetXP()),  add in the increase, and then set the XP at the increased value (SetXP()).

Modifié par WhiZard, 26 juillet 2012 - 03:22 .


#3
Einzbern

Einzbern
  • Members
  • 16 messages
Yeah, slider is at 0 all the OC/SoU/HoTU modules.

No idea how to do scripting, so no idea what or where I would put those. Thanks for the suggestion, though.

#4
Einzbern

Einzbern
  • Members
  • 16 messages
Also forgot to mention I have the NWN PRC+OC fix installed.

Don't imagine that would cause any issues, but I figured I should mention it just incase.

#5
WhiZard

WhiZard
  • Members
  • 1 204 messages

Einzbern wrote...

Also forgot to mention I have the NWN PRC+OC fix installed.

Don't imagine that would cause any issues, but I figured I should mention it just incase.


Three possibilities for why you are getting two XP rewards:

1) Since you are using the standard modules, you may not have had your setting saved.  In order for this to work you must "build module" and use the built module.

2) The module may use the script command SetModuleXPScale().  This command can change the XP slider in-game.

3) The PRC with OC fix may have its own XP system.

#6
Einzbern

Einzbern
  • Members
  • 16 messages
1) Maybe. All I did was save the module, so I never messed with the build menu. The settings seem to be saved, as when I reopened them numerous times the sliders were still at 0.

2) Does the OC use that?

3) A possibility, but I have no idea.

#7
Einzbern

Einzbern
  • Members
  • 16 messages
Using build doesn't seem to have fixed it, either.

#8
ffbj

ffbj
  • Members
  • 593 messages
Post any ondeath script. Since you get xp from killing monsters should be clear what is causing the problem. Like any executes that refer to other scripting systems.