Author Topic: Hit Points on Level Up  (Read 423 times)

Legacy_TSMDude

  • Hero Member
  • *****
  • Posts: 1515
  • Karma: +0/-0
Hit Points on Level Up
« on: October 15, 2010, 01:02:21 pm »


               I know there is the option to set it to Max HPs on Level Up but what I am wonderign is it possible to make it so ONLY Fighters get that benefit?

Is there a script that controls this that I do not know about? Is it lost in the Hidden Lands of Car Keys, lost washed left socks, and my beloved Detroit Lions winning ways?

Anyone know?
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Hit Points on Level Up
« Reply #1 on: October 15, 2010, 01:08:54 pm »


               You can do it as we did it in past (except we used leto plugin).



Get NWNX, now funcs plugin and adjust their hitpoints at OnLevelUp or make some placeable/item which will do it on Used.



If NWNX is not possible, then only temporary hit points can be added (OnLevelUp+OnRest+all heal spells maybe), or you can tell players to ask for this at forum and then make it for them manually via Leto program.
               
               

               
            

Legacy_TheSpiritedLass

  • Hero Member
  • *****
  • Posts: 1118
  • Karma: +0/-0
Hit Points on Level Up
« Reply #2 on: October 15, 2010, 02:36:21 pm »


               Look on the bright side TSM, at least the Lions are not heading for another "perfect" season this year. '<img'>

I also wanted to do something silimiar with HP at level up.  Except I wanted it to be dependant on an item in the player's inventory.  Specifically spinach.  Yes, I know... I'm goofy at times.  The best non-NWNx solution I could come up with was to give the hit points temporarily like ShaDoOoW mentioned, then manually adjust them using the DM client.  Far from a perfect solution, so it never got implemented.
               
               

               
            

Legacy_Khuzadrepa

  • Sr. Member
  • ****
  • Posts: 347
  • Karma: +0/-0
Hit Points on Level Up
« Reply #3 on: October 15, 2010, 03:31:26 pm »


               You could possibly do this via the OnPlayerLevelUp event.  You could check to see if it's a fighter level gained (maybe by keeping track of their current fighter level as a stored variable on an item) and do a reroll until max hps are gained.  Not the best solution, but I think it could work.  Then you wouldn't have to do anything externally or temporarily.  This script might help give you ideas on how to do that...

http://nwvault.ign.c...s.Detail&id=917
 
               
               

               


                     Modifié par Khuzadrepa, 15 octobre 2010 - 02:31 .
                     
                  


            

Legacy_Pstemarie

  • Hero Member
  • *****
  • Posts: 4368
  • Karma: +0/-0
Hit Points on Level Up
« Reply #4 on: October 15, 2010, 10:37:51 pm »


               The OPLU Event runs after the character has actually leveled up, so you couldn't actually modify the HP the character received. You could add them as temporary HP, but that kind of defeats the purpose. Therefore, you need to do what Shadow suggests...
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Hit Points on Level Up
« Reply #5 on: October 15, 2010, 10:56:19 pm »


               hmm I think, that Khuzadrepa meant relevel until they gain max hp, ugly but could work really
               
               

               
            

Legacy_Pstemarie

  • Hero Member
  • *****
  • Posts: 4368
  • Karma: +0/-0
Hit Points on Level Up
« Reply #6 on: October 15, 2010, 11:43:34 pm »


               Ugh, that would be ugly...
               
               

               
            

Legacy_Khuzadrepa

  • Sr. Member
  • ****
  • Posts: 347
  • Karma: +0/-0
Hit Points on Level Up
« Reply #7 on: October 16, 2010, 01:36:40 am »


               

ShaDoOoW wrote...

hmm I think, that Khuzadrepa meant relevel until they gain max hp, ugly but could work really

This is what I meant.  Thank you for reading my mind ShaDoOoW! '<img'>

And yeah, not the prettiest option, but I thought it was worth mentioning in case for some reason others wouldn't work out.
               
               

               


                     Modifié par Khuzadrepa, 16 octobre 2010 - 12:38 .
                     
                  


            

Legacy_TSMDude

  • Hero Member
  • *****
  • Posts: 1515
  • Karma: +0/-0
Hit Points on Level Up
« Reply #8 on: October 16, 2010, 02:25:31 am »


               Couple of questions then;



If I use Letoscript with NWNX does that not boot them from the server for a second to do it?



On the OPL I think that could work....but yes it would suck to make them relevel till they get it but might be the only true way besides Leto.
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Hit Points on Level Up
« Reply #9 on: October 16, 2010, 03:57:29 am »


               

TSMDude wrote...

If I use Letoscript with NWNX does that not boot them from the server for a second to do it?

Yes, but there is new and better plugin called nwnx_funcs (can be found at vault) which can do almost everything, leto could do, without booting and much more. Definitely check it out on nwnx forum (in windows development).