Author Topic: Changing core stats via nwscript  (Read 1275 times)

Legacy_WhiZard

  • Hero Member
  • *****
  • Posts: 2149
  • Karma: +0/-0
Changing core stats via nwscript
« Reply #15 on: December 10, 2014, 10:59:42 pm »


               

You might also want to keep an eye out for constitution reducing effects.  If the character is already at 1 HP per level (or two for toughness), decreasing constitution will have no affect on hit points.



               
               

               
            

Legacy_MrWakka

  • Newbie
  • *
  • Posts: 24
  • Karma: +0/-0
Changing core stats via nwscript
« Reply #16 on: December 11, 2014, 12:56:24 pm »


               

Good point, something I had not considered. Though it should only affect new PC's, anyone who has advanced their HP will have more to work with. 



               
               

               
            

Legacy_MrWakka

  • Newbie
  • *
  • Posts: 24
  • Karma: +0/-0
Changing core stats via nwscript
« Reply #17 on: December 11, 2014, 10:26:41 pm »


               

I could have sworn NWNX has a set caster level function, but apparently I was mistaken.


Anyone know of a way to reduce caster level? Without also reducing other stats, such a the way level drain works.


 


I suppose I could modify the spells to do a custom caster level, but seems a fairly time consuming method.



               
               

               
            

Baaleos

  • Administrator
  • Hero Member
  • *****
  • Posts: 1916
  • Karma: +0/-0
Changing core stats via nwscript
« Reply #18 on: December 11, 2014, 10:46:50 pm »


               nwnx_cool has an onSpellCast hook.
You are able to change the caster level in that event.

//Spellcast
if( nEvent == 1 ){

//Can override casterlevel for the comming spellscript
if(GetIsAGod(oPC)){
WriteTimestampedLogEntry("God casting spell: Override CasterLevel to 9000");
SetLocalInt( oPC, "cstrlvl", 9000 );
}

}


As for the nwnx_funcs - SetMaxHP.

I think that it works primarilly for NPC's
For PC's you can use
SetMaxHPPerLevel - or whatever it is called
You can provide I believe up to 254 hp per hitdice (level)

And combined with nwnx_cool - with its levelup capabillities that allow leveling up beyond level 40 - you can in theory have an uncapped HP Limit.
Assuming that the levels continue to accept 254 hp per level

Eg: 80 Levels x 254 = 20320 Max HP (Theoretical)
Thats actually higher than the HP you can set for a NPC in toolset
               
               

               
            

Legacy_MrWakka

  • Newbie
  • *
  • Posts: 24
  • Karma: +0/-0
Changing core stats via nwscript
« Reply #19 on: December 11, 2014, 11:29:04 pm »


               

Sounds good, found the windows thread for it, and that should save me a lot of time.



               
               

               
            

Legacy_DoomsDay1000

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
Changing core stats via nwscript
« Reply #20 on: November 04, 2015, 10:48:21 pm »


               

Hope someone still comes to these. I was wondering how i can get the nwnX functions installed but i only can find these.


 


file:///C:/NeverwinterNights/NWN/nwnx_functions.html


 


I don't see a list of the functions that get used in this thread.