Author Topic: How to override e.g. "Cure Minor Wounds"?  (Read 334 times)

Legacy_olivier leroux

  • Hero Member
  • *****
  • Posts: 913
  • Karma: +0/-0
How to override e.g. "Cure Minor Wounds"?
« on: February 10, 2013, 12:37:43 pm »


               I'd like to introduce a custom script into a savegame of mine in order to fix some issues with the module in question (context see here).

I've learned that you can only override inherent game resources, that is .bif files, though and not the custom scripts saved in the module. Would it be possible to let my fixing script override e.g. the script for casting the spell "Cure Minor Wounds", so that on casting it in-game, my cleric would call my fixing script instead? If so, what do I have to do, how should I name my override script?

Or is it also possible to call a script in the override folder by using the console commands, even if the module does not include it originally and the name of the script is unknown to the module?

Thanks!
               
               

               


                     Modifié par olivier leroux, 10 février 2013 - 01:12 .
                     
                  


            

Legacy_Failed.Bard

  • Hero Member
  • *****
  • Posts: 1409
  • Karma: +0/-0
How to override e.g. "Cure Minor Wounds"?
« Reply #1 on: February 10, 2013, 01:38:36 pm »


               You could try opening the save game with nwhak, and manually inserting the fixed script into there.
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
How to override e.g. "Cure Minor Wounds"?
« Reply #2 on: February 10, 2013, 02:03:47 pm »


               ##DebugMode 1
##dm_runscript  ScriptName
##debugemode 0


Just make sure you do not put an extra space after the script name
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
How to override e.g. "Cure Minor Wounds"?
« Reply #3 on: February 10, 2013, 02:29:41 pm »


               

olivier leroux wrote...

 Would it be possible to let my fixing script override e.g. the script for casting the spell "Cure Minor Wounds", so that on casting it in-game, my cleric would call my fixing script instead? If so, what do I have to do, how should I name my override script?

name it differently than original, and edit spells.2da, collumn ImpactScript to call your script, keep in mind you need to put into override NCS file too.
               
               

               
            

Legacy_olivier leroux

  • Hero Member
  • *****
  • Posts: 913
  • Karma: +0/-0
How to override e.g. "Cure Minor Wounds"?
« Reply #4 on: February 11, 2013, 05:19:00 pm »


               The dm_runscript command did the trick! It wasn't immediately apparant, since the placeables were set to "Static" and I had to learn that because of this, you have to renter the area after running the script before they are actually destroyed. But in the end I managed to fix my savegame this way, thanks a lot, Lightfoot8! And thanks to all others who made a suggestion, much appreciated! '<img'>