Aller au contenu

Photo

Give Feat


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

#26
Kato -

Kato -
  • Members
  • 392 messages
From nwnx_funcs(main include file, Windows version by MaxRock):

// Adds a feat to oObject's general featlist
// If iLevel is greater than 0 the feat is also added to the featlist for that level
void NWNXFuncs_AddFeat(object oCreature, int iFeat, int iLevel=0);

// Removes a feat from a creature
// If bRemoveFromLevel is FALSE, the feat will only be removed from the general feat list (the feat lists for each character level are ignored;
// If bRemoveFromLevel is TRUE, the feat will be removed from the general feat list and from the feat list for the appropriate level
// If found, the feat will be removed from the general feat list whether it exists in a level feat list or not, and vice versa
int NWNXFuncs_RemoveFeat(object oCreature, int iFeat, int bRemoveFromLevel=TRUE);


Kato

Modifié par Kato_Yang, 13 septembre 2012 - 01:38 .


#27
BelowTheBelt

BelowTheBelt
  • Members
  • 394 messages
NWNx_funcs pretty much enabled me to move my skin-based subrace system to making the changes purely to the stat sheet. This was especially helpful in granting HP bonuses for subraces. Additionally, this also allows PCs to increase their overall bonuses, as adding stat bonuses to skins is counted towards the max bonus (+12?) allowed. I don't believe that the bonuses from a modified stat sheet count towards that max.

You do have to turn off ELC, so you need some other way to check that PCs don't have exploited chars.

And, I think I've discovered that although you can grant feats, if your PC doesn't have the prereqs, you still can't use the feat (it doesn't show up in the radial menu).