Aller au contenu

Photo

Having trouble writing a script.


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

#1
JohnnyPanic

JohnnyPanic
  • Members
  • 2 messages
I've been trying to write a script to equalize xp gains during multiplayer OC campaign to normal but i cant seem to get the last step to work as I am largely unfamiliar with scritping/coding in general. :pinched:

http://nwn2forums.bi...67839&forum=113

This old thread gets me some of the way there but at the bottom of the thread the OP writes

"If I hardcode the SetModuleXPScale it works properly, but trying to
give it a variable exactly was above in your code is when I get the
error. It acts almost as though it is trying to run the script Script1
ON object "20" instead of using the value 20."

And I don't understand what he did to get it to work. :blush:

void main(int nScale)
{
    SetModuleXPScale(nScale);
}

is the script i've been using that i need to hardcode the xpscale value into but I have no idea what that means.

Any help would be appreciated. ^_^

#2
painofdungeoneternal

painofdungeoneternal
  • Members
  • 1 799 messages
Have you tried just using this?



http://nwvault.ign.c...I.Detail&id=146

#3
JohnnyPanic

JohnnyPanic
  • Members
  • 2 messages
Hmm that solves everything. Thanks mate!