Author Topic: Adding scripts to the Original Campaign?  (Read 561 times)

Legacy_StripyWitch

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
Adding scripts to the Original Campaign?
« on: January 23, 2014, 05:58:29 am »


               Hi, I'm extremely new to NWN.
I'm playing the original campaign in multiplayer, but we want death to work like it does in D&D. (You start bleeding at 0 HP, until you get to -10 HP).
I found a script that does this on the NWNWiki, but I don't know how to add it to the game.
nwn.wikia.com/wiki/Bleed_to_death

Please help!

Thanks.
               
               

               
            

Legacy_Squatting Monk

  • Hero Member
  • *****
  • Posts: 776
  • Karma: +0/-0
Adding scripts to the Original Campaign?
« Reply #1 on: January 23, 2014, 06:06:26 am »


               Open the campaign module in the toolset. Click Edit -> Module Properties. Click the Events tab. Next to OnPlayerDying, click the button that says Edit. Copy and paste the script from that link into this script, overwriting all previous contents. Save the script. Save the module. That's about all there is to it.
               
               

               
            

Legacy_Proleric

  • Hero Member
  • *****
  • Posts: 1750
  • Karma: +0/-0
Adding scripts to the Original Campaign?
« Reply #2 on: January 23, 2014, 06:59:12 am »


               In order to open the modules in the toolset, IIRC, you have to copy the OC modules from the nwm folder to the modules folder, changing the .nwm extension to .mod. The modified games appear as custom modules on the game start up screens, so that the originals are still playable.
               
               

               
            

Legacy_StripyWitch

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
Adding scripts to the Original Campaign?
« Reply #3 on: January 23, 2014, 07:52:25 am »


               If I do it that way will I still be able to load a save and characters from the original campaign?
               
               

               
            

Legacy_Squatting Monk

  • Hero Member
  • *****
  • Posts: 776
  • Karma: +0/-0
Adding scripts to the Original Campaign?
« Reply #4 on: January 23, 2014, 09:34:04 pm »


               Perhaps it's my modded Toolset, but there's an option to edit campaign modules when opening a module in the toolset.
               
               

               
            

Legacy_Proleric

  • Hero Member
  • *****
  • Posts: 1750
  • Karma: +0/-0
Adding scripts to the Original Campaign?
« Reply #5 on: January 24, 2014, 10:26:03 am »


               

StripyWitch wrote...

If I do it that way will I still be able to load a save and characters from the original campaign?

Characters yes, saves not easily.

Save files contain a lot of material from the original module, so the chances are that loading a saved game will over-write any changes you subsequently make.

With custom modules, you can work around this by putting changes in a hak, which takes priority over the saved game content. IIRC this is not an option for the OC.

If you know what you're doing, you can modify the contents of a saved game by editing the container file, but I'd regard that as advanced modding.
               
               

               
            

Legacy_Proleric

  • Hero Member
  • *****
  • Posts: 1750
  • Karma: +0/-0
Adding scripts to the Original Campaign?
« Reply #6 on: January 24, 2014, 10:27:34 am »


               

Squatting Monk wrote...

Perhaps it's my modded Toolset, but there's an option to edit campaign modules when opening a module in the toolset.

I suspect that's your modded Toolset. I don't see that option in my vanilla version.