Aller au contenu

Photo

Increase Max Hit Points?


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

#1
DragonTayl

DragonTayl
  • Members
  • 34 messages
Hello all :)

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. 

#2
Shadooow

Shadooow
  • Members
  • 4 471 messages
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)

#3
DragonTayl

DragonTayl
  • Members
  • 34 messages
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 .