Aller au contenu

Photo

Overriding default scripts


  • Veuillez vous connecter pour répondre
3 réponses à ce sujet

#1
Netrunner

Netrunner
  • Members
  • 3 messages
Hello all.
Something weird has been happening on a multiplayer module I am creating.
What
I wanted to do was basically to override the default npc death script
(the one that assigns XP), so I created a script and called it
nw_c2_default7, inserted it in my mod, compiled and saved the module.
What
happens is, the characters are now getting XP twice, once based on the
original nw_c2_default7 script and once from my custom nw_c2_default7
script (i am sure both scripts get executed!). Is this normal? Should I
put the script in override? Or is it maybe that it should be inserted as
a campaign script?
Still it is mysterious why nwn2server executes
BOTH. if it was in the wrong position it should just ignore my
"overridden" script, right?

Thanks in advance
Netrunner
(PS I posted this in NWN2 PWs forums, then I realized it'd probably fit better here, so if some mod wants to delete it from the other forum it'd be nice :) )

#2
The Fred

The Fred
  • Members
  • 2 516 messages
The default OnDeath script does not assign XP - this is done automatically by the module. So, what's likely happening is that only your script is being fired, as it should be, but your players are getting the default XP as well. To prevent this, you need to set the module's XP scale to 0 in the module properties.

#3
Netrunner

Netrunner
  • Members
  • 3 messages
Oh alright. I will check on that one then :)

Thanks!



Netrunner

#4
Morbane

Morbane
  • Members
  • 1 883 messages
The module xp scale is a multiple set with the challenge rating of any given creature.

So, if the cr is 3 then that is multiplied by the xp scale set in module properties. i have found that to use the default cr for most creatures a xp scale of 10 to 30 gives realistic xp rewards - at least for my liking. but on that note i pretty much have a lot of custom creatures and the cr and xp scale is up to me so i like to keep it in the range i mentioned above.