Author Topic: limiting the feat usage and speical abilitie usages regained during resting  (Read 325 times)

Legacy_Razorjester99

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0


               I am having trouble getting or finding a script (I would prefer basic NWN script) that limits the feat usage and special abilites usage gained when resting. I am trying to set them to pre-rest values or have them not regain uses at all. Anyone got any ideas. I would be most greatful for any help.
               
               

               
            

Legacy_ShadowM

  • Hero Member
  • *****
  • Posts: 1373
  • Karma: +0/-0


               These are useful. I have made some custom functions for paladin smite in rest with them.
DecrementRemainingFeatUses
IncrementRemainingFeatUses
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0


               

ShadowM wrote...

These are useful. I have made some custom functions for paladin smite in rest with them.
DecrementRemainingFeatUses
IncrementRemainingFeatUses


Yes, usefull functions.  But I guess the real question is,  Is there an easy way to figure out how many uses the PC currently has for the feat?
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0


               yes it it, simple loop gethasfeat and decreaseuses and count iterations until gethasfeat returns false, then increment so many uses as you need (limited by feat.2da but should be server-side so its possible to increment it to very high numbers)
               
               

               
            

Legacy__Guile

  • Hero Member
  • *****
  • Posts: 1308
  • Karma: +0/-0


               X2 Resting Script (On Finished Rest Event Switch/Case Statement)  Decrement Remaining Feat Usage Function, problem solved...  Obviously you would have to re-code the Feat Scripts to Set an Integer on the PC when the PC uses the Feat, as far as abilities (not feats) which aren't scripted, well your out of luck there...
               
               

               


                     Modifié par _Guile, 08 mai 2012 - 12:53 .