Talk:GetHasFeat

Usable feats
I don't know if this is something that should be added to this article, but I figured I would put it here so it is available to others. // Determine whether oCreature has nFeat, even if nFeat is not useable. // - nFeat: FEAT_* // - oCreature int GetHasUsableFeat(int nFeat, object oCreature=OBJECT_SELF); int GetHasUsableFeat(int nFeat, object oCreature=OBJECT_SELF) {   // Test for an available feat. if ( GetHasFeat(nFeat, oCreature) ) return TRUE;

// See if the feat is merely used up for the day. IncrementRemainingFeatUses(oCreature, nFeat); int bHasFeat = GetHasFeat(nFeat, oCreature); DecrementRemainingFeatUses(oCreature, nFeat);

return bHasFeat; } (This really should go in my DDPP, but I do not know when I will get around to updating that.) --The Krit 21:21, March 26, 2012 (UTC)