Category:Item Creation Functions

From NWN Lexicon
Jump to: navigation, search

Item Creation Function Category

Functions used to deal with item creation. The itemproperty commands are special constructors - they construct an itemproperty "object" which can then be, for instance, applied to an item using the AddItemProperty command. Much like effects need to be first constructed, then applied with ApplyEffectToObject. It will often be a good idea to remove similar itemproperties from the item first. There's a command in the "x2_inc_itemprop" include file called IPSafeAddItemProperty which will do that for you.



Functions

Name Brief Description

ActionCreate

Used to encapsulate CreateObject allowing this function to be added to the action stack.

AddItemProperty

Add an itemproperty to an item

CICraftCheckBrewPotion

Checks if the current spell was used to brew a potion and performs the brewing process.

CICraftCheckScribeScroll

Checks if the current spell was used to scribe a scroll and performs the scribe process.

CICraftScribeScroll

Create and return a magic scroll for a specified spell.

CIGetCraftItemStructFrom2DA

Retrieves craft information for a specified item.

CIGetIsCraftFeatBaseItem

Returns TRUE if the object is a craft base item.

CIGetIsSpellRestrictedFromCraftFeat

Determines if a spell is restricted for being used for crafting.

CIGetSpellWasUsedForItemCreation

Checks if the caster intends to craft an item and returns TRUE if the spell is used up for crafting purposes.

CIUseCraftItemSkill

Does a craft check for a given crafting skill to craft an item.

CopyItem

Duplicates an item.

CopyItemAndModify

Copies an item, making a single modification to it

CopyObject

Duplicates the object specified.

CraftBrewPotion

Create and return a magical potion for a specified spell.

CreateAmmo

Spawns in a ammunition suited for that class as part of the random treasure distribution.

CreateAnimalPart

Creates an animal part on the corpse of the animal

CreateArcaneScroll

Creates a scroll as part of the treasure

CreateBastardSword

Creates a Bastard sword for the containers treasure

CreateBattleAxe

Spawns in a magical weapon suited for that class as part of the random treasure distribution.

CreateBook

Creates a random book as part of the treasure distribution system

CreateClub

Spawns in a magical weapon suited for that class as part of the random treasure distribution.

CreateColmarrPotion

Creates potions for Colmarr's Machine.

CreateDagger

Used to create a magical dagger in a container as part of the treasure distribution model

CreateDart

Spawns in a magical weapon suited for that class as part of the random treasure distribution.

CreateDireMace

Spawns in a Dire Mace as part of the random treasure distribution.

CreateDivineScroll

Creates a divine scroll as part of the treasure

CreateDoubleAxe

Spawns in a magical Double Axe as part of the random treasure distribution.

CreateForgeItem

Used to create magic items at a "forge" container.

CreateGem

Creates a Gem as part of the NWN treasure distribution system

CreateGenericClassItem

Creates a treasure item for wizards, sorcerers, clerics, monks, rogues and bards

CreateGenericDruidWeapon

Creates an appropriate druid weapon that fits the level of the PC, and places it in/on an object.

CreateGenericExotic

Creates an appropriate exotic weapon that fits the level of the PC, and places it in/on an object.

CreateGenericHeavyArmor

Spawns in a Piece of Generic Heavy Armor as part of the random treasure distribution.

CreateGenericLightArmor

Spawns in a piece of generic light armor as part of the random treasure distribution.

CreateGenericMartial

Spawns in a generic weapon as part of the random treasure distribution.

CreateGenericMediumArmor

Spawns in a piece of generic armor as part of the random treasure distribution.

CreateGenericMiscItem

Spawns in a generic item as part of the random treasure distribution.

CreateGenericMonkWeapon

Creates an appropriate monk weapon that fits the level of the PC, and places it in/on an object.

CreateGenericRodStaffWand

Spawns in a generic Rod, Staff or Wand as part of the random treasure distribution.

CreateGenericSimple

Spawns in a Generic Simple Weapon as part of the random treasure distribution.

CreateGenericWizardWeapon

Creates an appropriate wizard weapon that fits the level of the PC, and places it in/on an object.

CreateGold

Spawns in Gold as part of the random treasure distribution.

CreateGreatAxe

Spawns in a Great Axe as part of the random treasure distribution.

CreateGreatSword

Spawns in a Great Sword as part of the random treasure distribution.

CreateHalberd

Spawns in a Halberd as part of the random treasure distribution.

CreateHandAxe

Spawns in a Hand Axe as part of the random treasure distribution.

CreateHealingKit

Spawns in a Healing Kit as part of the random treasure distribution.

CreateHeavyCrossbow

Spawns in a Heavy Crossbow as part of the random treasure distribution.

CreateHeavyFlail

Spawns in a Heavy Flail as part of the random treasure distribution.

CreateItemOnObject

Create a specific item in an objects inventory

CreateJewel

Creates a Jewel in the container as part of the NWN treasure distribution system

CreateJunk

Creates random items for the container treasure.

CreateKama

Spawns in a Kama as part of the random treasure distribution.

CreateKatana

Spawns in a Katana as part of the random treasure distribution.

CreateKit

Spawns in a Kit as part of the random treasure distribution.

CreateKukri

Spawns in a Kukri as part of the random treasure distribution.

CreateLightCrossbow

Spawns in a Light Crossbow as part of the random treasure distribution.

CreateLightFlail

Spawns in a Light Flail as part of the random treasure distribution.

CreateLightHammer

Spawns in a Light Hammer as part of the random treasure distribution.

CreateLightMace

Spawns in a Light Mace as part of the random treasure distribution.

CreateLockPick

Spawns in a Lock Pick as part of the random treasure distribution.

CreateLongbow

Spawns in a Longbow as part of the random treasure distribution.

CreateLongSword

Spawns in a Long Sword as part of the random treasure distribution.

CreateMorningstar

Spawns in a Morningstar as part of the random treasure distribution.

CreateObject

Create an object of a specified type at a given location

CreateObjectVoid

Similiar to CreateObject() but does not return the object created.

CreatePotion

Creates a random potion in a container as part of the treasure system.

CreateRapier

Spawns in a Rapier as part of the random treasure distribution.

CreateScimitar

Spawns in a Scimitar as part of the random treasure distribution.

CreateScythe

Spawns in a Scythe as part of the random treasure distribution.

CreateShortbow

Spawns in a Shortbow as part of the random treasure distribution.

CreateShortsword

Spawns in a Shortsword as part of the random treasure distribution.

CreateShuriken

Spawns in a Shuriken as part of the random treasure distribution.

CreateSickle

Spawns in a Sickle as part of the random treasure distribution.

CreateSling

Spawns in a Sling as part of the random treasure distribution.

CreateSpear

Spawns in a Spear as part of the random treasure distribution.

CreateSpecificDruidWeapon

Spawns in a Specific Druid Weapon as part of the random treasure distribution.

CreateSpecificExotic

Spawns in a Specific Exotic Item as part of the random treasure distribution.

CreateSpecificHeavyArmor

Spawns in a Specific Heavy Armor as part of the random treasure distribution.

CreateSpecificLightArmor

Spawns in a Specific Light Armor as part of the random treasure distribution.

CreateSpecificMartial

Spawns in a Specific Martial Item as part of the random treasure distribution.

CreateSpecificMediumArmor

Spawns in a Specific Medium Armor as part of the random treasure distribution.

CreateSpecificMiscItem

Spawns in a Specific Item as part of the random treasure distribution.

CreateSpecificMonkWeapon

Spawns in a Specific Monk Weapon as part of the random treasure distribution.

CreateSpecificRodStaffWand

Spawns in a Rod, Staff, or Wand as part of the random treasure distribution.

CreateSpecificSimple

Spawns in a Simple Weapon as part of the random treasure distribution.

CreateSpecificWizardWeapon

Spawns in a Specific Wizard Weapon as part of the random treasure distribution.

CreateStaff

Spawns in a Staff as part of the random treasure distribution.

CreateTable2Item

Randomly creates an item on an object.

CreateThrowingAxe

Spawns in a Throwing Axe as part of the random treasure distribution.

CreateTrapKit

Spawns in a Trap Kit as part of the random treasure distribution.

CreateTwoBladedSword

Spawns in a Two Bladed Sword as part of the random treasure distribution.

CreateWarhammer

Spawns in a Warhammer as part of the random treasure distribution.

dbCreateItemOnObject

This function creates the item for the NWN Treasure Distribution System.

GenerateBookTreasure

This Function is part of the random treasure distribution.

GenerateBossTreasure

Generates boss-level treasure.

GenerateHighTreasure

This function creates High Level Treasure

GenerateLowTreasure

This script creates Low value treasure in the container

GenerateMediumTreasure

Spawns in treasure as part of the random treasure distribution.

GenerateNPCTreasure

Use the random treasure functions to generate appropriate treasure for the creature to drop.

GenerateTreasure

This is the Main function in the NWN Treasure Distribution System

GetBackpackMatch

Determines if the PC carries the proper items to create a new item.

GetIsItemPropertyValid

Checks if an itemproperty is valid.

GetIsValidCombination

Determines if items within a container are valid for combining into a new item.

GetMaterialComponentTag

Gets the tag of the material component required for crafting.

Give2Q4PlotItem

Gives a Luskan plot item to the PC speaker.

GiveFetchItemToPC

Gives the fetch item to the PC.

GivePlayerPersonalItem

Gives the personal item of an assassination victim to the player.

HasAnyItemOfBaseType

Cycles through the players inventory looking for any item that has a certain Base Item Type. If the Base Item Type is Armor, make sure the AC matches.

IPCreateProficiencyFeatItemOnCreature

Gives a creature all available proficiency feats.

IPDyeArmor

Changes the color of an armor.

IPGetDamageBonusConstantFromNumber

Converts a number into a damage bonus itemproperty constant.

IPGetDamagePowerConstantFromNumber

Converts a number to a damage power constant

IPGetIPConstCastSpellFromSpellID

Returns a spell's corresponding itemproperty constant.

IPGetIPWorkContainer

Returns the container used for item property and appearance modifications in the module

IPGetItemHasProperty

Checks if an item has a matching itemproperty.

IPGetItemPropertyByID

Returns an itemproperty.

IPGetItemSequencerProperty

Checks the sequencer property of an item.

IPGetModifiedArmor

Copies and modifies an armor and returns it as an object.

IPGetNextArmorAppearanceType

Returns the next valid appearance type for an armor.

IPGetNumberOfAppearances

Returns the number of armor part variations for the specified part.

IPGetRandomArmorAppearanceType

Returns a random valid armor appearance type of the appropriate part.

IPGetWeaponEnhancementBonus

Returns a weapon's enhancement bonus.

IPRemoveAllItemProperties

Removes all itemproperties from an item.

IPRemoveMatchingItemProperties

Removes itemproperties of a given type, duration, and subtype from an item.

IPSafeAddItemProperty

Safely add an itemproperty to an item.

IPSetWeaponEnhancementBonus

Sets an enhancement bonus on a weapon.

IPUpgradeWeaponEnhancementBonus

Upgrades a weapon's enhancement bonus.

IPWildShapeCopyItemProperties

Copies itemproperties from one item to another.

IsValidBaseItem

Checks to see if the baseitem type matches the one in the array AND if the item is "magical"

ItemPropertyAbilityBonus

Sets an ability bonus itemproperty.

ItemPropertyACBonus

Sets an armor class bonus itemproperty.

ItemPropertyACBonusVsAlign

Sets an "armor class bonus against an alignment group" itemproperty.

ItemPropertyACBonusVsDmgType

Sets an "armor class bonus against damage type" itemproperty.

ItemPropertyACBonusVsRace

Sets an "armor class bonus against racial type" itemproperty.

ItemPropertyACBonusVsSAlign

Sets an "armor class bonus against specific alignment" itemproperty.

ItemPropertyAdditional

Returns a generic additional itemproperty.

ItemPropertyArcaneSpellFailure

Sets an itemproperty which modifies an arcane spell failure factor.

ItemPropertyAttackBonus

Sets an attack bonus itemproperty.

ItemPropertyAttackBonusVsAlign

Sets an "attack bonus versus alignment group" itemproperty.

ItemPropertyAttackBonusVsRace

Sets an "attack bonus versus race" itemproperty.

ItemPropertyAttackBonusVsSAlign

Sets an "attack bonus versus specific alignment" itemproperty.

ItemPropertyAttackPenalty

Sets an attack penalty itemproperty.

ItemPropertyBonusFeat

Sets a bonus feat itemproperty.

ItemPropertyBonusLevelSpell

Sets a "bonus spell of a specified level" itemproperty.

ItemPropertyBonusSavingThrow

Sets a saving throw bonus itemproperty.

ItemPropertyBonusSavingThrowVsX

Sets a "saving throw bonus" itemproperty.

ItemPropertyBonusSpellResistance

Sets a "spell resistance bonus" itemproperty.

ItemPropertyCastSpell

Sets a "cast spell" itemproperty.

ItemPropertyContainerReducedWeight

Sets a "reduced weight container" itemproperty.

ItemPropertyDamageBonus

Sets a damage bonus itemproperty.

ItemPropertyDamageBonusVsAlign

Sets a "damage bonus versus alignment group" itemproperty.

ItemPropertyDamageBonusVsRace

Sets a "damage bonus versus racial type" itemproperty.

ItemPropertyDamageBonusVsSAlign

Sets a "damage bonus versus specific alignment" itemproperty.

ItemPropertyDamageImmunity

Sets a damage immunity itemproperty.

ItemPropertyDamagePenalty

Sets a damage penalty itemproperty.

ItemPropertyDamageReduction

Sets a damage reduction itemproperty.

ItemPropertyDamageResistance

Sets a damage resistance itemproperty.

ItemPropertyDamageVulnerability

Sets a damage vulnerability itemproperty.

ItemPropertyDarkvision

Sets a darkvision itemproperty.

ItemPropertyDecreaseAbility

Sets a decrease ability itemproperty.

ItemPropertyDecreaseAC

Sets a "decrease armor class" itemproperty.

ItemPropertyDecreaseSkill

Sets a decrease skill item property.

ItemPropertyEnhancementBonus

Sets an enhancement bonus item property.

ItemPropertyEnhancementBonusVsAlign

Sets an "enhancement bonus versus alignment group" itemproperty.

ItemPropertyEnhancementBonusVsRace

Sets an "enhancement bonus versus racial type" itemproperty.

ItemPropertyEnhancementBonusVsSAlign

Sets an "enhancement bonus versus specific alignment" itemproperty.

ItemPropertyEnhancementPenalty

Sets an enhancement penalty ability bonus.

ItemPropertyExtraMeleeDamageType

Sets an "extra melee damagetype" itemproperty.

ItemPropertyExtraRangeDamageType

Sets an "extra ranged damagetype" itemproperty.

ItemPropertyFreeAction

Sets a free action (freedom of movement) itemproperty.

ItemPropertyHaste

Sets a haste itemproperty.

ItemPropertyHealersKit

Sets a healers' kit itemproperty.

ItemPropertyHolyAvenger

Sets a holy avenger itemproperty.

ItemPropertyImmunityMisc

Sets an immunity itemproperty.

ItemPropertyImmunityToSpellLevel

Sets an "immunity to spell level" itemproperty.

ItemPropertyImprovedEvasion

Sets an improved evasion itemproperty.

ItemPropertyKeen

Sets a keen itemproperty.

ItemPropertyLight

Sets a light itemproperty.

ItemPropertyLimitUseByAlign

Sets an "only useable by alignment group" itemproperty.

ItemPropertyLimitUseByClass

Sets an "only useable by class" itemproperty.

ItemPropertyLimitUseByRace

Sets an "only useable by race" itemproperty.

ItemPropertyLimitUseBySAlign

Sets an "only useable by specific alignment" itemproperty.

ItemPropertyMassiveCritical

Sets a massive criticals itemproperty.

ItemPropertyMaterial

Returns the itemproperty material.

ItemPropertyMaxRangeStrengthMod

Sets a mighty itemproperty.

ItemPropertyMonsterDamage

Sets a monster damage itemproperty.

ItemPropertyNoDamage

Sets a no damage itemproperty.

ItemPropertyOnHitCastSpell

Sets an "on hit cast spell" item property.

ItemPropertyOnHitProps

Sets an OnHit itemproperty.

ItemPropertyOnMonsterHitProperties

Sets an "on monster hit" itemproperty.

ItemPropertyReducedSavingThrow

Sets a "reduced saving throw" item property.

ItemPropertyQuality

Returns the itemproperty quality.

ItemPropertyReducedSavingThrowVsX

Sets a "reduced saving throw" itemproperty.

ItemPropertyRegeneration

Sets a regeneration itemproperty.

ItemPropertySkillBonus

Sets a skill bonus itemproperty.

ItemPropertySpecialWalk

Sets a special walk itemproperty.

ItemPropertySpellImmunitySchool

Sets an "immunity against spell school" itemproperty.

ItemPropertySpellImmunitySpecific

Sets an "immunity to specific spell" itemproperty.

ItemPropertyThievesTools

Sets a thieves' tools itemproperty.

ItemPropertyTrap

Sets a trap itemproperty.

ItemPropertyTrueSeeing

Sets a true seeing itemproperty.

ItemPropertyTurnResistance

Sets a turn resistance itemproperty.

ItemPropertyUnlimitedAmmo

Sets an unlimited ammo itemproperty.

ItemPropertyVampiricRegeneration

Sets a vampiric regeneration itemproperty.

ItemPropertyVisualEffect

Allows a melee weapon have a certain glow.

ItemPropertyWeightIncrease

Sets an increased weight itemproperty.

ItemPropertyWeightReduction

Sets a weight reduction itemproperty.

nDetermineClassToUse

Determines which of a PCs three classes to use in the random treasure system.

nNumberOfCombos

Returns number of possible combinations

Prefers

Determines whether the adventurer prefers using a weapon type.

RemoveItemProperty

Removes an itemproperty from an item.

author:NWN Lexicon Group, editor: Mistress, contributors: motu99, Kolyana, Kookoo
 

Pages in category "Item Creation Functions"

The following 200 pages are in this category, out of 212 total.

(previous page) (next page)

C

I

(previous page) (next page)