Author Topic: Scarface's XP/GP System  (Read 285 times)

Legacy_Einzbern

  • Newbie
  • *
  • Posts: 24
  • Karma: +0/-0
Scarface's XP/GP System
« on: July 26, 2012, 01:22:53 am »


               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?
               
               

               
            

Legacy_WhiZard

  • Hero Member
  • *****
  • Posts: 2149
  • Karma: +0/-0
Scarface's XP/GP System
« Reply #1 on: July 26, 2012, 04:18:51 am »


               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 .
                     
                  


            

Legacy_Einzbern

  • Newbie
  • *
  • Posts: 24
  • Karma: +0/-0
Scarface's XP/GP System
« Reply #2 on: July 26, 2012, 05:20:53 am »


               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.
               
               

               
            

Legacy_Einzbern

  • Newbie
  • *
  • Posts: 24
  • Karma: +0/-0
Scarface's XP/GP System
« Reply #3 on: July 26, 2012, 05:24:48 am »


               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.
               
               

               
            

Legacy_WhiZard

  • Hero Member
  • *****
  • Posts: 2149
  • Karma: +0/-0
Scarface's XP/GP System
« Reply #4 on: July 26, 2012, 07:05:40 pm »


               

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.
               
               

               
            

Legacy_Einzbern

  • Newbie
  • *
  • Posts: 24
  • Karma: +0/-0
Scarface's XP/GP System
« Reply #5 on: July 26, 2012, 10:07:53 pm »


               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.
               
               

               
            

Legacy_Einzbern

  • Newbie
  • *
  • Posts: 24
  • Karma: +0/-0
Scarface's XP/GP System
« Reply #6 on: July 28, 2012, 04:36:10 am »


               Using build doesn't seem to have fixed it, either.
               
               

               
            

Legacy_ffbj

  • Hero Member
  • *****
  • Posts: 1097
  • Karma: +0/-0
Scarface's XP/GP System
« Reply #7 on: July 29, 2012, 05:17:20 am »


               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.