Author Topic: Increase Max Hit Points?  (Read 334 times)

Legacy_DragonTayl

  • Newbie
  • *
  • Posts: 40
  • Karma: +0/-0
Increase Max Hit Points?
« on: December 14, 2011, 05:47:41 pm »


               Hello all '<img'>

Is there a way to increase the maximum number of hit points on a creature, perhaps in the "on spawn"? I have an application for monsters with a great deal more hit points than their normal counterparts, and wondered if I could script this instead of creating a bunch of blueprints.

I see GetMaxHitPoints() but there is no matching Set. 
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Increase Max Hit Points?
« Reply #1 on: December 14, 2011, 06:07:45 pm »


               Yes OnSpawn is the best place for it. I have on vault a script system that can do it, its called Boost System a variable driven random boosts. And it does allow to add hitpoints. If you would be interested about this look here.

Without NWNX you can only use EffectTemporaryHitPoints which is a bit odd in early levels when monsters have 10hp and you add them 2hp, because if player damages monster by 1 point of damage, monster will appear not damaged.

With NWNX you can use nwnx_funcs (windows) which has a function to SetMaxHitPoints (but it doesnt set current hitpoints as well so you have to heal your creature as well)
               
               

               
            

Legacy_DragonTayl

  • Newbie
  • *
  • Posts: 40
  • Karma: +0/-0
Increase Max Hit Points?
« Reply #2 on: December 14, 2011, 06:56:17 pm »


               Thanks! I will check it out. I do use NWNX, so I may check that out also.
               
               

               


                     Modifié par DragonTayl, 14 décembre 2011 - 07:14 .