|
NWNX:EE
8193.36.12
|
|
Go to the documentation of this file.
7 const string NWNX_Creature =
"NWNX_Creature";
442 void NWNX_Creature_LevelUp(
object creature,
int class,
int count = 1,
int package = PACKAGE_INVALID);
467 int NWNX_Creature_GetAttackBonus(
object creature,
int isMelee = -1,
int isTouchAttack = FALSE,
int isOffhand = FALSE,
int includeBaseAttackBonus = TRUE);
873 void NWNX_Creature_DoItemCastSpell(
object oCreature,
object oTarget, location locTarget,
int nSpellID,
int nCasterLevel,
float fProjectileTime,
int nProjectilePathType = PROJECTILE_PATH_TYPE_DEFAULT,
int nProjectileSpellID = -1,
object oItem = OBJECT_INVALID,
string sImpactScript =
"");
926 int NWNX_Creature_AddCastSpellActions(
object oCreature,
object oTarget, vector vTargetLocation,
int nSpellID,
int nMultiClass,
int nMetaMagic = METAMAGIC_NONE,
int nDomainLevel = 0,
int nProjectilePathType = PROJECTILE_PATH_TYPE_DEFAULT,
int bInstant = FALSE,
int bClearActions = FALSE,
int bAddToFront = FALSE);
1031 string sFunc =
"AddFeat";
1040 string sFunc =
"AddFeatByLevel";
1051 string sFunc =
"RemoveFeat";
1060 string sFunc =
"RemoveFeatByLevel";
1071 string sFunc =
"GetKnowsFeat";
1082 string sFunc =
"GetFeatCountByLevel";
1093 string sFunc =
"GetFeatByLevel";
1105 string sFunc =
"GetFeatCount";
1115 string sFunc =
"GetFeatGrantLevel";
1125 string sFunc =
"GetFeatByIndex";
1136 string sFunc =
"GetMeetsFeatRequirements";
1147 string sFunc =
"GetSpecialAbility";
1165 string sFunc =
"GetSpecialAbilityCount";
1175 string sFunc =
"AddSpecialAbility";
1187 string sFunc =
"RemoveSpecialAbility";
1197 string sFunc =
"SetSpecialAbility";
1210 string sFunc =
"GetClassByLevel";
1221 string sFunc =
"SetBaseAC";
1231 string sFunc =
"GetBaseAC";
1241 string sFunc =
"SetRawAbilityScore";
1252 string sFunc =
"GetRawAbilityScore";
1263 string sFunc =
"ModifyRawAbilityScore";
1274 string sFunc =
"GetPrePolymorphAbilityScore";
1285 string sFunc =
"GetRemainingSpellSlots";
1297 string sFunc =
"SetRemainingSpellSlots";
1309 string sFunc =
"RemoveKnownSpell";
1321 string sFunc =
"AddKnownSpell";
1333 string sFunc =
"GetMaxSpellSlots";
1346 string sFunc =
"GetMaxHitPointsByLevel";
1357 string sFunc =
"SetMaxHitPointsByLevel";
1368 string sFunc =
"SetMovementRate";
1378 string sFunc =
"GetMovementRateFactor";
1387 string sFunc =
"SetMovementRateFactor";
1397 string sFunc =
"GetMovementRateFactorCap";
1406 string sFunc =
"SetMovementRateFactorCap";
1416 string sFunc =
"SetAlignmentGoodEvil";
1426 string sFunc =
"SetAlignmentLawChaos";
1436 string sFunc =
"SetSkillRank";
1446 string sFunc =
"GetSkillRankByLevel";
1458 string sFunc =
"SetSkillRankByLevel";
1470 string sFunc =
"SetClassByPosition";
1481 string sFunc =
"SetLevelByPosition";
1491 string sFunc =
"SetBaseAttackBonus";
1500 string sFunc =
"GetAttacksPerRound";
1510 string sFunc =
"RestoreFeats";
1518 string sFunc =
"RestoreSpecialAbilities";
1526 string sFunc =
"RestoreItems";
1534 string sFunc =
"SetSize";
1543 string sFunc =
"GetSkillPointsRemaining";
1553 string sFunc =
"SetSkillPointsRemaining";
1562 string sFunc =
"GetSkillPointsRemainingByLevel";
1573 string sFunc =
"SetSkillPointsRemainingByLevel";
1584 string sFunc =
"SetRacialType";
1593 string sFunc =
"GetMovementType";
1602 string sFunc =
"SetWalkRateCap";
1611 string sFunc =
"SetGold";
1620 string sFunc =
"SetCorpseDecayTime";
1630 string sFunc =
"GetBaseSavingThrow";
1640 string sFunc =
"SetBaseSavingThrow";
1650 string sFunc =
"LevelUp";
1661 string sFunc =
"LevelDown";
1670 string sFunc =
"SetChallengeRating";
1679 string sFunc =
"GetAttackBonus";
1683 object oWeapon = GetItemInSlot(INVENTORY_SLOT_RIGHTHAND, creature);
1685 if (GetIsObjectValid(oWeapon))
1687 isMelee = !GetWeaponRanged(oWeapon);
1707 string sFunc =
"GetHighestLevelOfFeat";
1718 string sFunc =
"GetFeatRemainingUses";
1729 string sFunc =
"GetFeatTotalUses";
1740 string sFunc =
"SetFeatRemainingUses";
1751 string sFunc =
"GetTotalEffectBonus";
1770 string sFunc =
"SetOriginalName";
1781 string sFunc =
"GetOriginalName";
1792 string sFunc =
"SetSpellResistance";
1802 string sFunc =
"SetAnimalCompanionCreatureType";
1812 string sFunc =
"SetFamiliarCreatureType";
1822 string sFunc =
"SetAnimalCompanionName";
1832 string sFunc =
"SetFamiliarName";
1842 string sFunc =
"GetDisarmable";
1852 string sFunc =
"SetDisarmable";
1862 string sFunc =
"SetDomain";
1874 string sFunc =
"SetSpecialization";
1885 string sFunc =
"SetFaction";
1893 string sFunc =
"GetFaction";
1901 string sFunc =
"GetFlatFooted";
1909 string sFunc =
"SerializeQuickbar";
1919 string sFunc =
"DeserializeQuickbar";
1930 string sFunc =
"SetCasterLevelModifier";
1942 string sFunc =
"GetCasterLevelModifier";
1953 string sFunc =
"SetCasterLevelOverride";
1965 string sFunc =
"GetCasterLevelOverride";
1976 string sFunc =
"JumpToLimbo";
1983 string sFunc =
"SetCriticalMultiplierModifier";
1996 string sFunc =
"GetCriticalMultiplierModifier";
2008 string sFunc =
"SetCriticalMultiplierOverride";
2021 string sFunc =
"GetCriticalMultiplierOverride";
2033 string sFunc =
"SetCriticalRangeModifier";
2046 string sFunc =
"GetCriticalRangeModifier";
2058 string sFunc =
"SetCriticalRangeOverride";
2071 string sFunc =
"GetCriticalRangeOverride";
2083 string sFunc =
"AddAssociate";
2094 string sFunc =
"OverrideDamageLevel";
2103 string sFunc =
"SetEncounter";
2112 string sFunc =
"GetEncounter";
2122 string sFunc =
"GetIsBartering";
2132 string sFunc =
"SetLastItemCasterLevel";
2141 string sFunc =
"GetLastItemCasterLevel";
2150 string sFunc =
"GetArmorClassVersus";
2161 string sFunc =
"GetWalkAnimation";
2170 string sFunc =
"SetWalkAnimation";
2178 string sFunc =
"SetAttackRollOverride";
2187 string sFunc =
"SetParryAllAttacks";
2195 string sFunc =
"GetNoPermanentDeath";
2205 string sFunc =
"SetNoPermanentDeath";
2214 string sFunc =
"ComputeSafeLocation";
2234 string sFunc =
"DoPerceptionUpdateOnCreature";
2243 string sFunc =
"GetPersonalSpace";
2253 string sFunc =
"SetPersonalSpace";
2262 string sFunc =
"GetCreaturePersonalSpace";
2272 string sFunc =
"SetCreaturePersonalSpace";
2281 string sFunc =
"GetHeight";
2291 string sFunc =
"SetHeight";
2300 string sFunc =
"GetHitDistance";
2310 string sFunc =
"SetHitDistance";
2319 string sFunc =
"GetPreferredAttackDistance";
2329 string sFunc =
"SetPreferredAttackDistance";
2338 string sFunc =
"GetArmorCheckPenalty";
2347 string sFunc =
"GetShieldCheckPenalty";
2356 string sFunc =
"SetBypassEffectImmunity";
2367 string sFunc =
"GetBypassEffectImmunity";
2377 string sFunc =
"SetLastKiller";
2384 void NWNX_Creature_DoItemCastSpell(
object oCreature,
object oTarget, location locTarget,
int nSpellID,
int nCasterLevel,
float fProjectileTime,
int nProjectilePathType = PROJECTILE_PATH_TYPE_DEFAULT,
int nProjectileSpellID = -1,
object oItem = OBJECT_INVALID,
string sImpactScript =
"")
2386 string sFunc =
"DoItemCastSpell";
2388 object oArea = GetAreaFromLocation(locTarget);
2389 vector vPosition = GetPositionFromLocation(locTarget);
2409 string sFunc =
"RunEquip";
2421 string sFunc =
"RunUnequip";
2432 string sFunc =
"OverrideRangedProjectileVFX";
2442 string sFunc =
"SetInitiativeModifier";
2452 string sFunc =
"GetInitiativeModifier";
2461 string sFunc =
"GetBodyBag";
2468 int NWNX_Creature_AddCastSpellActions(
object oCreature,
object oTarget, vector vTargetLocation,
int nSpellID,
int nMultiClass,
int nMetaMagic = METAMAGIC_NONE,
int nDomainLevel = 0,
int nProjectilePathType = PROJECTILE_PATH_TYPE_DEFAULT,
int bInstant = FALSE,
int bClearActions = FALSE,
int bAddToFront = FALSE)
2470 string sFunc =
"AddCastSpellActions";
2492 string sFunc =
"GetIsFlanking";
2503 string sFunc =
"DecrementRemainingSpellSlots";
2514 string sFunc =
"IncrementRemainingSpellSlots";
2525 string sFunc =
"GetMaximumBonusAttacks";
2534 string sFunc =
"SetMaximumBonusAttacks";
2544 string sFunc =
"DoCleaveAttack";
2552 string sFunc =
"GetLockOrientationToObject";
2562 string sFunc =
"SetLockOrientationToObject";
2571 string sFunc =
"BroadcastAttackOfOpportunity";
2581 string sFunc =
"GetMaxSellToStorePriceOverride";
2592 string sFunc =
"SetMaxSellToStorePriceOverride";
2602 string sFunc =
"GetAbilityIncreaseByLevel";
2613 string sFunc =
"SetAbilityIncreaseByLevel";
2623 string sFunc =
"GetMaxAttackRange";
2634 string sFunc =
"GetMulticlassLimit";
2645 string sFunc =
"SetMulticlassLimit";
int NWNX_Creature_GetBypassEffectImmunity(object oCreature, int nImmunityType)
Gets a chance for normal Effect Immunities to be bypassed.
void NWNX_Creature_OverrideRangedProjectileVFX(object oCreature, int nProjectileVFX, int bPersist=FALSE)
Override the elemental projectile visual effect of ranged/throwing weapons.
const int NWNX_CREATURE_MOVEMENT_RATE_NORMAL
void NWNX_Creature_SetCreaturePersonalSpace(object oCreature, float fCrePerspace)
Set a creatures creature personal space (meters from center to other creatures).
const int NWNX_CREATURE_BONUS_TYPE_TOUCH_ATTACK
int NWNX_Creature_GetMulticlassLimit(object oCreature)
Returns the creature's multiclass limit.
void NWNX_Creature_SetLockOrientationToObject(object oCreature, object oTarget)
Locks oCreature's orientation to always face oTarget.
int NWNX_GetReturnValueInt()
Returns the specified type from the c++ side.
int NWNX_Creature_GetCriticalMultiplierOverride(object oCreature, int nHand=0, int nBaseItem=-1)
Gets the critical hit multiplier override for the Creature.
void NWNX_Creature_RemoveKnownSpell(object creature, int class, int level, int spellId)
Remove a spell from creature's spellbook for class.
const int NWNX_CREATURE_BONUS_TYPE_ATTACK
void NWNX_Creature_RestoreItems(object creature)
Restore uses for all items carried by the creature.
void NWNX_Creature_SetSkillPointsRemaining(object creature, int skillpoints)
Sets the creature's remaining unspent skill points.
int NWNX_Creature_GetLastItemCasterLevel(object oCreature)
Gets the caster level of the last item used.
void NWNX_Creature_AddFeatByLevel(object creature, int feat, int level)
Gives the creature a feat assigned at a level.
struct NWNX_Creature_SpecialAbility NWNX_Creature_GetSpecialAbility(object creature, int index)
Returns the creature's special ability at a given index.
string NWNX_Creature_GetOriginalName(object creature, int isLastName)
Get the original first or last name of creature.
const int NWNX_CREATURE_BONUS_TYPE_SKILL
int NWNX_Creature_GetArmorCheckPenalty(object oCreature)
Get the skill penalty from wearing armor.
int NWNX_Creature_GetMaxHitPointsByLevel(object creature, int level)
Gets the maximum hit points for creature for level.
int ready
Whether it can be used.
void NWNX_Creature_SetWalkRateCap(object creature, float fWalkRate=2000.0f)
Sets the maximum movement rate a creature can have while walking (not running)
const int NWNX_CREATURE_PROJECTILE_VFX_NONE
No VFX.
void NWNX_Creature_SetNoPermanentDeath(object oCreature, int bNoPermanentDeath)
Sets the NoPermanentDeath flag of oCreature.
void NWNX_Creature_DoItemCastSpell(object oCreature, object oTarget, location locTarget, int nSpellID, int nCasterLevel, float fProjectileTime, int nProjectilePathType=PROJECTILE_PATH_TYPE_DEFAULT, int nProjectileSpellID=-1, object oItem=OBJECT_INVALID, string sImpactScript="")
Instantly cast a spell at a target or location.
void NWNX_Creature_SetDomain(object creature, int class, int index, int domain)
Sets one of creature's domains.
void NWNX_Creature_AddFeat(object creature, int feat)
Gives the creature a feat.
int NWNX_Creature_GetIsBartering(object oCreature)
Get if oCreature is currently bartering.
const int NWNX_CREATURE_MOVEMENT_RATE_SLOW
void NWNX_Creature_SetSkillRankByLevel(object creature, int skill, int rank, int level)
Set the ranks in a skill for creature assigned at a level.
int NWNX_Creature_GetFeatByLevel(object creature, int level, int index)
Returns the feat learned at the level and index.
float NWNX_Creature_GetMovementRateFactor(object creature)
Returns the creature's current movement rate factor.
const int NWNX_CREATURE_PROJECTILE_VFX_ELECTRICAL
float NWNX_Creature_GetHeight(object oCreature)
Get a creatures height.
int NWNX_Creature_GetPrePolymorphAbilityScore(object creature, int ability)
Gets the raw ability score a polymorphed creature had prior to polymorphing.
void NWNX_Creature_RestoreSpecialAbilities(object creature)
Restore all creature special ability uses.
void NWNX_Creature_SetMovementRateFactor(object creature, float rate)
Sets the creature's current movement rate factor.
int NWNX_Creature_GetTotalEffectBonus(object creature, int bonusType=NWNX_CREATURE_BONUS_TYPE_ATTACK, object target=OBJECT_INVALID, int isElemental=0, int isForceMax=0, int savetype=-1, int saveSpecificType=-1, int skill=-1, int abilityScore=-1, int isOffhand=FALSE)
Get total effect bonus.
void NWNX_Creature_SetCriticalRangeOverride(object oCreature, int nOverride, int nHand=0, int bPersist=FALSE, int nBaseItem=-1)
Sets the critical hit range Override for the creature.
int NWNX_Creature_GetSkillPointsRemainingByLevel(object creature, int level)
Gets the creature's remaining unspent skill points for level.
void NWNX_Creature_SetLastItemCasterLevel(object oCreature, int nCasterLvl)
Sets caster level for the last item used. Use in a spellhook or spell event before to set caster leve...
const int NWNX_CREATURE_PROJECTILE_VFX_ACID
void NWNX_Creature_SetPersonalSpace(object oCreature, float fPerspace)
Set a creatures personal space (meters from center to non-creature objects).
void NWNX_Creature_LevelDown(object creature, int count=1)
Remove last levels from a creature.
void NWNX_Creature_SetPreferredAttackDistance(object oCreature, float fPrefAtckDist)
Set a creatures preferred attack distance.
int NWNX_Creature_GetCriticalMultiplierModifier(object oCreature, int nHand=0, int nBaseItem=-1)
Gets the critical hit multiplier modifier for the Creature.
void NWNX_Creature_SetMaxSellToStorePriceOverride(object oCreature, object oStore, int nMaxSellToPrice)
Overrides the maximum price oStore will buy items from oCreature for.
void NWNX_Creature_IncrementRemainingSpellSlots(object oCreature, int nClass, int nSpellLevel)
Increments the remaining spell slots (innate casting) at a class level.
int NWNX_Creature_GetFaction(object oCreature)
Gets the faction id from oCreature.
void NWNX_Creature_SetMulticlassLimit(object oCreature, int nLimit, int bPersist=FALSE)
Sets the creature's multiclass limit.
void NWNX_Creature_SetDisarmable(object creature, int disarmable)
Set whether a creature can be disarmed.
void NWNX_Creature_SetRacialType(object creature, int racialtype)
Sets the creature's racial type.
void NWNX_Creature_SetMaximumBonusAttacks(object oCreature, int nMaxBonusAttacks, int bPersist=FALSE)
Sets the maximum number of bonus attacks a creature can have from EffectModifyAttacks().
int NWNX_Creature_GetRemainingSpellSlots(object creature, int class, int level)
Gets the remaining spell slots (innate casting) at a class level's index.
float NWNX_Creature_GetMovementRateFactorCap(object creature)
Returns the creature's maximum movement rate cap.
void NWNX_Creature_SetClassByPosition(object creature, int position, int classID, int bUpdateLevels=TRUE)
Set the class ID in a particular position for a creature.
void NWNX_Creature_SetOriginalName(object creature, string name, int isLastName)
Set the original first or last name of creature.
void NWNX_Creature_SetSpecialAbility(object creature, int index, struct NWNX_Creature_SpecialAbility ability)
Sets a special ability at the index for the creature.
int NWNX_Creature_GetFeatGrantLevel(object creature, int feat)
Returns the creature level where the specified feat was learned.
int NWNX_Creature_GetFlatFooted(object oCreature)
Get whether a creature is flat-footed.
const int NWNX_CREATURE_MOVEMENT_RATE_VERY_FAST
int NWNX_Creature_GetAttacksPerRound(object creature, int bBaseAPR=FALSE)
Gets the creatures current attacks per round (using equipped weapon).
void NWNX_Creature_SetSkillRank(object creature, int skill, int rank)
Set the base ranks in a skill for creature.
const int NWNX_CREATURE_MOVEMENT_TYPE_STATIONARY
const int NWNX_CREATURE_MOVEMENT_RATE_DEFAULT
int NWNX_Creature_GetArmorClassVersus(object oAttacked, object oVersus, int nTouch=FALSE)
Gets the Armor classed of attacked against versus.
void NWNX_Creature_SetCriticalRangeModifier(object oCreature, int nModifier, int nHand=0, int bPersist=FALSE, int nBaseItem=-1)
Sets the critical hit range modifier for the creature.
object NWNX_Creature_GetEncounter(object oCreature)
Get the encounter source of oCreature.
float NWNX_GetReturnValueFloat()
Returns the specified type from the c++ side.
int NWNX_Creature_GetBaseAC(object creature)
Get the base AC for the creature.
int NWNX_Creature_GetDisarmable(object creature)
Get whether the creature can be disarmed.
void NWNX_Creature_SetCasterLevelOverride(object oCreature, int nClass, int nCasterLevel, int bPersist=FALSE)
Sets a caster level override for oCreature.
int NWNX_Creature_GetIsFlanking(object oCreature, object oTargetCreature)
Get whether oCreature is flanking oTargetCreature.
void NWNX_Creature_SetCriticalMultiplierOverride(object oCreature, int nOverride, int nHand=0, int bPersist=FALSE, int nBaseItem=-1)
Sets the critical hit multiplier override for the Creature.
void NWNX_Creature_DoCleaveAttack(object oCreature)
Inserts a cleave or great cleave attack into oCreature's current attack round against the nearest ene...
void NWNX_Creature_SetChallengeRating(object creature, float fCR)
Sets the creature's challenge rating.
void NWNX_Creature_RemoveFeat(object creature, int feat)
Removes a feat from a creature.
int NWNX_Creature_GetClassByLevel(object creature, int level)
Get the class taken by the creature at the provided level.
void NWNX_CallFunction(string pluginName, string functionName)
Scripting interface to NWNX.
const int NWNX_CREATURE_BONUS_TYPE_ABILITY
int level
The level of the ability.
int NWNX_Creature_GetNoPermanentDeath(object oCreature)
Gets the NoPermanentDeath flag of oCreature.
int NWNX_Creature_RunUnequip(object oCreature, object oItem)
Have oCreature instantly unequip oItem.
void NWNX_Creature_SetMovementRateFactorCap(object creature, float cap)
Sets the creature's maximum movement rate cap.
const int NWNX_CREATURE_MOVEMENT_RATE_IMMOBILE
object NWNX_Creature_GetBodyBag(object oCreature)
Gets the Body Bag of a creature.
int NWNX_Creature_GetAbilityIncreaseByLevel(object oCreature, int nLevel)
Returns the creature's ability increase for nLevel.
string NWNX_GetReturnValueString()
Returns the specified type from the c++ side.
int NWNX_Creature_GetSkillRankByLevel(object creature, int skill, int level)
Get the ranks in a skill for creature assigned at a level.
void NWNX_Creature_SetLevelByPosition(object creature, int position, int level)
Set the level at the given position for a creature.
int NWNX_Creature_GetMaxSpellSlots(object creature, int class, int level)
Gets the maximum spell slots (innate casting) at a class level.
void NWNX_PushArgumentString(string value)
Pushes the specified type to the c++ side.
int NWNX_Creature_GetCriticalRangeModifier(object oCreature, int nHand=0, int nBaseItem=-1)
Gets the critical hit range modifier for the creature.
int NWNX_Creature_GetCasterLevelModifier(object oCreature, int nClass)
Gets the current caster level modifier for oCreature.
void NWNX_Creature_SetRawAbilityScore(object creature, int ability, int value)
Sets the ability score of the creature to the provided value.
void NWNX_Creature_SetWalkAnimation(object oCreature, int nAnimation)
Sets the current walk animation of oCreature.
object NWNX_Creature_GetLockOrientationToObject(object oCreature)
Gets the current object oCreature's orientation is locked to.
A creature special ability.
void NWNX_Creature_SetAbilityIncreaseByLevel(object oCreature, int nLevel, int nAbility)
Sets the creature's ability increase for nLevel.
void NWNX_Creature_SetBypassEffectImmunity(object oCreature, int nImmunityType, int nChance=100, int bPersist=FALSE)
Sets a chance for normal Effect Immunities to be bypassed.
float NWNX_Creature_GetMaxAttackRange(object oCreature, object oTarget)
Returns the creature's maximum attack range to a target.
void NWNX_Creature_SetCorpseDecayTime(object creature, int nDecayTime)
Sets corpse decay time in milliseconds.
void NWNX_Creature_SetFaction(object oCreature, int nFactionId)
Sets oCreatures faction to be the faction with id nFactionId.
int NWNX_Creature_RunEquip(object oCreature, object oItem, int nInventorySlot)
Have oCreature instantly equip oItem to nInventorySlot.
const int NWNX_CREATURE_PROJECTILE_VFX_FIRE
int NWNX_Creature_GetSkillPointsRemaining(object creature)
Gets the creature's remaining unspent skill points.
void NWNX_PushArgumentObject(object value)
Pushes the specified type to the c++ side.
void NWNX_Creature_DoPerceptionUpdateOnCreature(object oCreature, object oTargetCreature)
Update oCreature's perception of oTargetCreature.
void NWNX_Creature_SetRemainingSpellSlots(object creature, int class, int level, int slots)
Sets the remaining spell slots (innate casting) at a class level.
float NWNX_Creature_GetHitDistance(object oCreature)
Get a creatures hit distance.
void NWNX_Creature_SetSpellResistance(object creature, int sr)
Set creature's spell resistance.
void NWNX_Creature_SetFeatRemainingUses(object creature, int feat, int uses)
Set feat remaining uses.
void NWNX_Creature_SetAttackRollOverride(object oCreature, int nRoll, int nModifier)
Changes the attack modifier depending on the dice roll. Used to skip autofail on 1 and autosucceed on...
void NWNX_Creature_RemoveSpecialAbility(object creature, int index)
Removes a special ability from a creature.
void NWNX_Creature_SetMovementRate(object creature, int rate)
Set creature's movement rate.
void NWNX_PushArgumentInt(int value)
Pushes the specified type to the c++ side.
int NWNX_Creature_GetFeatCountByLevel(object creature, int level)
Returns the count of feats learned at the provided level.
void NWNX_Creature_RemoveFeatByLevel(object creature, int feat, int level)
Removes the creature a feat assigned at a level.
int NWNX_Creature_GetCasterLevelOverride(object oCreature, int nClass)
Gets the current caster level override for oCreature.
void NWNX_Creature_SetInitiativeModifier(object oCreature, int nMod, int bPersist=FALSE)
Sets a custom Initiative modifier.
const int NWNX_CREATURE_BONUS_TYPE_DAMAGE
void NWNX_Creature_SetSkillPointsRemainingByLevel(object creature, int level, int value)
Sets the creature's remaining unspent skill points for level.
int NWNX_Creature_GetFeatCount(object creature)
Get the total number of feats known by creature.
int NWNX_Creature_DeserializeQuickbar(object oCreature, string sSerializedQuickbar)
Deserialize sSerializedQuickbar for oCreature.
void NWNX_Creature_SetCasterLevelModifier(object oCreature, int nClass, int nModifier, int bPersist=FALSE)
Sets a caster level modifier for oCreature.
int NWNX_Creature_GetFeatRemainingUses(object creature, int feat)
Get feat remaining uses.
const int NWNX_CREATURE_MOVEMENT_RATE_PC
void NWNX_Creature_SetAlignmentLawChaos(object creature, int value)
Set creature's raw law/chaos alignment value.
void NWNX_Creature_SetCriticalMultiplierModifier(object oCreature, int nModifier, int nHand=0, int bPersist=FALSE, int nBaseItem=-1)
Sets the critical hit multiplier modifier for the Creature.
void NWNX_Creature_LevelUp(object creature, int class, int count=1, int package=PACKAGE_INVALID)
Add levels of class to the creature, bypassing all validation.
int NWNX_Creature_GetMaxSellToStorePriceOverride(object oCreature, object oStore)
Returns the maximum price oStore will buy items from oCreature for.
int NWNX_Creature_GetRawAbilityScore(object creature, int ability)
Gets the ability score of the creature.
const int NWNX_CREATURE_MOVEMENT_TYPE_SIDESTEP
int NWNX_Creature_GetBaseSavingThrow(object creature, int which)
Gets the creature's base save.
const int NWNX_CREATURE_BONUS_TYPE_SAVING_THROW
int NWNX_Creature_GetKnowsFeat(object creature, int feat)
Determines if the creature knows a feat.
const int NWNX_CREATURE_PROJECTILE_VFX_COLD
int NWNX_Creature_GetFeatByIndex(object creature, int index)
Returns the creature's feat at a given index.
const int NWNX_CREATURE_MOVEMENT_RATE_DM_FAST
void NWNX_Creature_SetHitDistance(object oCreature, float fHitDist)
Set a creatures hit distance.
const int NWNX_CREATURE_MOVEMENT_TYPE_RUN
void NWNX_Creature_SetSpecialization(object creature, int class, int school)
Sets creature's specialist school.
void NWNX_Creature_RestoreFeats(object creature)
Restore all creature feat uses.
int NWNX_Creature_GetAttackBonus(object creature, int isMelee=-1, int isTouchAttack=FALSE, int isOffhand=FALSE, int includeBaseAttackBonus=TRUE)
Returns the creature's highest attack bonus based on its own stats.
void NWNX_Creature_SetGold(object creature, int gold)
Sets the creature's gold without sending a feedback message.
int NWNX_Creature_GetInitiativeModifier(object oCreature)
Gets the custom Initiative modifier.
void NWNX_Creature_SetAlignmentGoodEvil(object creature, int value)
Set creature's raw good/evil alignment value.
void NWNX_Creature_AddKnownSpell(object creature, int class, int level, int spellId)
Add a spell to a creature's spellbook for class.
void NWNX_Creature_SetAnimalCompanionName(object creature, string name)
Set creature's animal companion's name.
int NWNX_Creature_GetMaximumBonusAttacks(object oCreature)
Gets the maximum number of bonus attacks a creature can have from EffectModifyAttacks().
int NWNX_Creature_GetWalkAnimation(object oCreature)
Gets the current walk animation of oCreature.
void NWNX_Creature_AddSpecialAbility(object creature, struct NWNX_Creature_SpecialAbility ability)
Adds a special ability to a creature.
int NWNX_Creature_GetMovementType(object creature)
Returns the creature's current movement type.
const int NWNX_CREATURE_MOVEMENT_RATE_VERY_SLOW
void NWNX_Creature_DecrementRemainingSpellSlots(object oCreature, int nClass, int nSpellLevel)
Decrements the remaining spell slots (innate casting) at a class level.
const int NWNX_CREATURE_PROJECTILE_VFX_RANDOM
Random Elemental VFX.
void NWNX_Creature_ModifyRawAbilityScore(object creature, int ability, int modifier)
Adjusts the ability score of a creature.
const int NWNX_CREATURE_MOVEMENT_TYPE_WALK_BACKWARDS
int NWNX_Creature_AddCastSpellActions(object oCreature, object oTarget, vector vTargetLocation, int nSpellID, int nMultiClass, int nMetaMagic=METAMAGIC_NONE, int nDomainLevel=0, int nProjectilePathType=PROJECTILE_PATH_TYPE_DEFAULT, int bInstant=FALSE, int bClearActions=FALSE, int bAddToFront=FALSE)
Add a cast spell action to oCreature's action queue.
object NWNX_GetReturnValueObject()
Returns the specified type from the c++ side.
int NWNX_Creature_GetHighestLevelOfFeat(object creature, int feat)
Get highest level version of feat possessed by creature.
float NWNX_Creature_GetPreferredAttackDistance(object oCreature)
Get a creatures preferred attack distance.
const int NWNX_CREATURE_PROJECTILE_VFX_SONIC
void NWNX_Creature_SetParryAllAttacks(object oCreature, int bParry)
Works like the tweak but can be turned on and off for all creatures or single ones.
void NWNX_Creature_JumpToLimbo(object oCreature)
Move a creature to limbo.
void NWNX_Creature_AddAssociate(object oCreature, object oAssociate, int nAssociateType)
Add oAssociate as nAssociateType to oCreature.
int NWNX_Creature_GetFeatTotalUses(object creature, int feat)
Get feat total uses.
void NWNX_Creature_SetAnimalCompanionCreatureType(object creature, int type)
Set creature's animal companion creature type.
float NWNX_Creature_GetCreaturePersonalSpace(object oCreature)
Get a creatures creature personal space (meters from center to other creatures).
const int NWNX_CREATURE_ABILITY_NONE
void NWNX_Creature_SetLastKiller(object oCreature, object oKiller)
Sets the killer of oCreature to oKiller.
int NWNX_Creature_GetShieldCheckPenalty(object oCreature)
Get the skill penalty from wearing a shield.
void NWNX_Creature_BroadcastAttackOfOpportunity(object oCreature, object oSingleCreature=OBJECT_INVALID, int bMovement=FALSE)
Causes oCreature to broadcast an Attack of Opportunity against themself.
void NWNX_Creature_SetBaseSavingThrow(object creature, int which, int value)
Sets the creature's base save.
void NWNX_Creature_SetFamiliarCreatureType(object creature, int type)
Set creature's familiar creature type.
int NWNX_Creature_GetSpecialAbilityCount(object creature)
Gets the count of special abilities of the creature.
void NWNX_Creature_SetMaxHitPointsByLevel(object creature, int level, int value)
Sets the maximum hit points for creature.
void NWNX_PushArgumentFloat(float value)
Pushes the specified type to the c++ side.
void NWNX_Creature_SetHeight(object oCreature, float fHeight)
Set a creatures height.
vector NWNX_Creature_ComputeSafeLocation(object oCreature, vector vPosition, float fRadius=20.0f, int bWalkStraightLineRequired=TRUE)
Compute a safe location for oCreature.
void NWNX_Creature_SetSize(object creature, int size)
Sets the creature size.
int NWNX_Creature_GetCriticalRangeOverride(object oCreature, int nHand=0, int nBaseItem=-1)
Sets the critical hit range Override for the creature.
void NWNX_Creature_SetFamiliarName(object creature, string name)
Set creature's familiar's name.
int NWNX_Creature_GetMeetsFeatRequirements(object creature, int feat)
Gets if creature meets feat requirements.
const int NWNX_CREATURE_MOVEMENT_RATE_FAST
void NWNX_Creature_SetEncounter(object oCreature, object oEncounter)
Set the encounter source of oCreature.
void NWNX_Creature_OverrideDamageLevel(object oCreature, int nDamageLevel)
Override the damage level of oCreature.
void NWNX_Creature_SetBaseAC(object creature, int ac)
Sets the base AC for the creature.
float NWNX_Creature_GetPersonalSpace(object oCreature)
Get a creatures personal space (meters from center to non-creature objects).
string NWNX_Creature_SerializeQuickbar(object oCreature)
Serialize oCreature's quickbar to a base64 string.
void NWNX_Creature_SetBaseAttackBonus(object creature, int bab)
Set creature's base attack bonus (BAB).
const int NWNX_CREATURE_MOVEMENT_TYPE_WALK