imported>Vvenaya |
imported>Vvenaya |
Line 37: |
Line 37: |
| <br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/> | | <br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/> |
|
| |
|
| {| cellpadding="5" cellspacing="0" width="100%"
| | ==Reference== |
| ! style="background:#ffdead;" colspan="3"|This function is used in following scripts ...
| |
| |-
| |
| | style="background:#ffeded;border-bottom:1px solid;" width="30%" |
| |
| AlessiaCaroScript
| |
| <br/>AncontarScript
| |
| <br/>BagduGroMolobscript
| |
| <br/>ClaudeMaricScript
| |
| <br/>DAAzuraStatueScript
| |
| <br/>DABoethiaStatueScript
| |
| <br/>DAClavicusStatueScript
| |
| <br/>DAHermaeusStatueScript
| |
| <br/>DAHircineStatueScript
| |
| <br/>DairihillsDeskScript
| |
| <br/>DAMalacathStatueScript
| |
| <br/>DAMephalaStatueScript
| |
| <br/>DAMeridiaStatueScript
| |
| <br/>DAMolagBalStatueScript
| |
| <br/>DANamiraPriestScript
| |
| <br/>DANamiraScript
| |
| <br/>DANamiraStatueScript
| |
| <br/>DANocturnalStatueScript
| |
| <br/>DAPeryiteStatueScript
| |
| <br/>Dark09PhillidaBodyguardScript
| |
| <br/>Dark10SpecialDeadDropScript
| |
| <br/>Dark11DeadDropScript
| |
| <br/>Dark13DeadDropScript
| |
| <br/>Dark14DeadDropScript
| |
| <br/>Dark17FollowingScript
| |
| <br/>DASanguineStatueScript
| |
| | style="background:#ffeded;border-bottom:1px solid;" width="30%" |
| |
| <br/>DASheogorathStatueScript
| |
| <br/>DAVaerminaStatueScript
| |
| <br/>FGPostQuest
| |
| <br/>GrayFoxScript
| |
| <br/>GwinasScript
| |
| <br/>HannibalTravenScript
| |
| <br/>HouseSkingradQuestHGScript
| |
| <br/>IverScript
| |
| <br/>MereteScript
| |
| <br/>MethredhelsChestScript
| |
| <br/>MethredhelScript
| |
| <br/>MG04Script
| |
| <br/>MG05AScript
| |
| <br/>MG08CupboardScript
| |
| <br/>MG08Script
| |
| <br/>MG09Script
| |
| <br/>MG15IrlavJarolDeadScript
| |
| <br/>MG16MageScript
| |
| <br/>MG17Script
| |
| <br/>MG19ChestScript
| |
| <br/>MQ10SigilStoneActivatorScript
| |
| <br/>MQ10SigilStoneScript
| |
| <br/>MQ12GoblinInventorySCRIPT
| |
| <br/>MQ12UndeadInventorySCRIPT
| |
| <br/>MQ13Script
| |
| <br/>MQ14SigilStoneScript
| |
| | style="background:#ffeded;border-bottom:1px solid;" width="30%" |
| |
| MQ15KathutetSCRIPT
| |
| <br/>MS05DreamworldAmuletScript
| |
| <br/>MS05DreamworldElementActivators01
| |
| <br/>MS05DreamworldElementActivators02
| |
| <br/>MS05DreamworldElementActivators03
| |
| <br/>MS05DreamworldElementActivators04
| |
| <br/>MS08AleronLocheScript
| |
| <br/>MS08FakeDoorKeyScript
| |
| <br/>MS13SigilScript
| |
| <br/>MS45DarMaChestScript
| |
| <br/>MS46RewardChestSCRIPT
| |
| <br/>MS48SigilStoneScript
| |
| <br/>MSScarTailScript
| |
| <br/>MyvrynasCupboardScript
| |
| <br/>NecroAltarScript
| |
| <br/>NecroAnchoriteDFScript
| |
| <br/>OghashgraMagulSCRIPT
| |
| <br/>OntusVaninsChestScript
| |
| <br/>OrumGangCourier1SCRIPT
| |
| <br/>SiegeCrawlerDeathSCRIPT
| |
| <br/>SigilStoneRandomSCRIPT
| |
| <br/>SigilStoneScript
| |
| <br/>TG05ScampScript
| |
| <br/>TG07LegionSealScript
| |
| <br/>TGIcestaffDisplayCaseScript
| |
| <br/>UmbacanoScript
| |
| |}
| |
|
| |
|
| | | [[AddItem_Reference|List of functions that use AddItem]](wiki) |
| | |
| [[Category: Functions]] | |
| [[Category: Object Functions]]
| |
Description
Adds Count items of object ObjectID to the calling container's inventory.
Syntax
AddItem ObjectID, Count
Example
AddItem MyObject, 1
NOTE: This will not trigger OnAdd blocks, because the item is created inside the inventory rather than actually being added. For creating items from the console that you need to trigger OnAdd, use PlaceAtMe instead and pick the item up from the ground.
Console Usage: When using AddItem with the console, you must use the desired item's FormID, not the EditorID.
So, instead of using
player.additem lockpick 1
to give yourself a lockpick, you must use
player.additem 00000A 1
Kedrigh wrote: [1]
Form id is in the cs and looks like this: yyxxxxxx.
yy is used to reference the plugin, xxxxxx to reference the item inside the plugin (and does not change). So if you load the oblivion master in the cs, and create something, it will have 01xxxxxx as the form id.
The yy part of the formid changes depending on the mods you load up, in alphabetical order (first one 01, second 02, and so on.)
Reference
List of functions that use AddItem(wiki)