Aller au contenu

Photo

limiting the feat usage and speical abilitie usages regained during resting


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

#1
Razorjester99

Razorjester99
  • Members
  • 1 messages
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.

#2
ShadowM

ShadowM
  • Members
  • 768 messages
These are useful. I have made some custom functions for paladin smite in rest with them.
DecrementRemainingFeatUses
IncrementRemainingFeatUses

#3
Lightfoot8

Lightfoot8
  • Members
  • 2 535 messages

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?

#4
Shadooow

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

#5
_Guile

_Guile
  • Members
  • 685 messages
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 .