Difference between revisions of "AddItem"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Vvenaya
(<Draft 1b>)
imported>Vvenaya
(Done . Any positive critisism is welcome.)
Line 9: Line 9:
  AddItem MyObject, 1  
  AddItem MyObject, 1  


=='''Comments'''==
<br/><br/><br/>
 
=='''User Comments'''==




Line 33: Line 35:
''
''


=='''Script Usage'''==
<br/><br/><br/><br/><br/><br/><br/><br/><br/>
{| cellpadding="5" cellspacing="0" width="100%"
 
{| cellpadding="5" cellspacing="0" width="100%"  
! style="background:#ffdead;" colspan="3"|This function is used in following scripts ...
|-
|-
| style="background:#ffeded;border-bottom:1px solid;"  width="30%"  |  
| style="background:#ffeded;border-bottom:1px solid;"  width="30%"  |  
AlessiaCaroScript  
AlessiaCaroScript  
 
<br/>AncontarScript  
AncontarScript  
<br/>BagduGroMolobscript  
 
<br/>ClaudeMaricScript  
BagduGroMolobscript  
<br/>DAAzuraStatueScript  
 
<br/>DABoethiaStatueScript  
ClaudeMaricScript  
<br/>DAClavicusStatueScript  
 
<br/>DAHermaeusStatueScript  
DAAzuraStatueScript  
<br/>DAHircineStatueScript  
 
<br/>DairihillsDeskScript  
DABoethiaStatueScript  
<br/>DAMalacathStatueScript  
 
<br/>DAMephalaStatueScript  
DAClavicusStatueScript  
<br/>DAMeridiaStatueScript  
 
<br/>DAMolagBalStatueScript  
DAHermaeusStatueScript  
<br/>DANamiraPriestScript  
 
<br/>DANamiraScript  
DAHircineStatueScript  
<br/>DANamiraStatueScript  
 
<br/>DANocturnalStatueScript  
DairihillsDeskScript  
<br/>DAPeryiteStatueScript  
 
<br/>Dark09PhillidaBodyguardScript  
DAMalacathStatueScript  
<br/>Dark10SpecialDeadDropScript  
 
<br/>Dark11DeadDropScript  
DAMephalaStatueScript  
<br/>Dark13DeadDropScript  
 
<br/>Dark14DeadDropScript  
DAMeridiaStatueScript  
<br/>Dark17FollowingScript  
 
<br/>DASanguineStatueScript  
DAMolagBalStatueScript  
 
DANamiraPriestScript  
 
DANamiraScript  
 
DANamiraStatueScript  
 
DANocturnalStatueScript  
 
DAPeryiteStatueScript  
 
Dark09PhillidaBodyguardScript  
 
Dark10SpecialDeadDropScript  
 
Dark11DeadDropScript  
 
Dark13DeadDropScript  
 
Dark14DeadDropScript  
 
Dark17FollowingScript  
 
DASanguineStatueScript  
 
| style="background:#ffeded;border-bottom:1px solid;"  width="30%"  |  
| style="background:#ffeded;border-bottom:1px solid;"  width="30%"  |  
 
<br/>DASheogorathStatueScript  
DASheogorathStatueScript  
<br/>DAVaerminaStatueScript  
 
<br/>FGPostQuest  
DAVaerminaStatueScript  
<br/>GrayFoxScript  
 
<br/>GwinasScript  
FGPostQuest  
<br/>HannibalTravenScript  
 
<br/>HouseSkingradQuestHGScript  
GrayFoxScript  
<br/>IverScript  
 
<br/>MereteScript  
GwinasScript  
<br/>MethredhelsChestScript  
 
<br/>MethredhelScript  
HannibalTravenScript  
<br/>MG04Script  
 
<br/>MG05AScript  
HouseSkingradQuestHGScript  
<br/>MG08CupboardScript  
 
<br/>MG08Script  
IverScript  
<br/>MG09Script  
 
<br/>MG15IrlavJarolDeadScript  
MereteScript  
<br/>MG16MageScript  
 
<br/>MG17Script  
MethredhelsChestScript  
<br/>MG19ChestScript  
 
<br/>MQ10SigilStoneActivatorScript  
MethredhelScript  
<br/>MQ10SigilStoneScript  
 
<br/>MQ12GoblinInventorySCRIPT  
MG04Script  
<br/>MQ12UndeadInventorySCRIPT  
 
<br/>MQ13Script  
MG05AScript  
<br/>MQ14SigilStoneScript  
 
MG08CupboardScript  
 
MG08Script  
 
MG09Script  
 
MG15IrlavJarolDeadScript  
 
MG16MageScript  
 
MG17Script  
 
MG19ChestScript  
 
MQ10SigilStoneActivatorScript  
 
MQ10SigilStoneScript  
 
MQ12GoblinInventorySCRIPT  
 
MQ12UndeadInventorySCRIPT  
 
MQ13Script  
 
MQ14SigilStoneScript  
 
 
| style="background:#ffeded;border-bottom:1px solid;"  width="30%"  |  
| style="background:#ffeded;border-bottom:1px solid;"  width="30%"  |  
MQ15KathutetSCRIPT  
MQ15KathutetSCRIPT  
 
<br/>MS05DreamworldAmuletScript  
MS05DreamworldAmuletScript  
<br/>MS05DreamworldElementActivators01  
 
<br/>MS05DreamworldElementActivators02  
MS05DreamworldElementActivators01  
<br/>MS05DreamworldElementActivators03  
 
<br/>MS05DreamworldElementActivators04  
MS05DreamworldElementActivators02  
<br/>MS08AleronLocheScript  
 
<br/>MS08FakeDoorKeyScript  
MS05DreamworldElementActivators03  
<br/>MS13SigilScript  
 
<br/>MS45DarMaChestScript  
MS05DreamworldElementActivators04  
<br/>MS46RewardChestSCRIPT  
 
<br/>MS48SigilStoneScript  
MS08AleronLocheScript  
<br/>MSScarTailScript  
 
<br/>MyvrynasCupboardScript  
MS08FakeDoorKeyScript  
<br/>NecroAltarScript  
 
<br/>NecroAnchoriteDFScript  
MS13SigilScript  
<br/>OghashgraMagulSCRIPT  
 
<br/>OntusVaninsChestScript  
MS45DarMaChestScript  
<br/>OrumGangCourier1SCRIPT  
 
<br/>SiegeCrawlerDeathSCRIPT  
MS46RewardChestSCRIPT  
<br/>SigilStoneRandomSCRIPT  
 
<br/>SigilStoneScript  
MS48SigilStoneScript  
<br/>TG05ScampScript  
 
<br/>TG07LegionSealScript  
MSScarTailScript  
<br/>TGIcestaffDisplayCaseScript  
 
<br/>UmbacanoScript  
MyvrynasCupboardScript  
 
NecroAltarScript  
 
NecroAnchoriteDFScript  
 
OghashgraMagulSCRIPT  
 
OntusVaninsChestScript  
 
OrumGangCourier1SCRIPT  
 
SiegeCrawlerDeathSCRIPT  
 
SigilStoneRandomSCRIPT  
 
SigilStoneScript  
 
TG05ScampScript  
 
TG07LegionSealScript  
 
TGIcestaffDisplayCaseScript  
 
UmbacanoScript  
 
|}
|}



Revision as of 11:52, 15 April 2006

Description

Adds Count items of object ObjectID to the calling container's inventory.

Syntax

AddItem ObjectID, Count 

Example

AddItem MyObject, 1 




User Comments

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.)










This function is used in following scripts ...

AlessiaCaroScript
AncontarScript
BagduGroMolobscript
ClaudeMaricScript
DAAzuraStatueScript
DABoethiaStatueScript
DAClavicusStatueScript
DAHermaeusStatueScript
DAHircineStatueScript
DairihillsDeskScript
DAMalacathStatueScript
DAMephalaStatueScript
DAMeridiaStatueScript
DAMolagBalStatueScript
DANamiraPriestScript
DANamiraScript
DANamiraStatueScript
DANocturnalStatueScript
DAPeryiteStatueScript
Dark09PhillidaBodyguardScript
Dark10SpecialDeadDropScript
Dark11DeadDropScript
Dark13DeadDropScript
Dark14DeadDropScript
Dark17FollowingScript
DASanguineStatueScript


DASheogorathStatueScript
DAVaerminaStatueScript
FGPostQuest
GrayFoxScript
GwinasScript
HannibalTravenScript
HouseSkingradQuestHGScript
IverScript
MereteScript
MethredhelsChestScript
MethredhelScript
MG04Script
MG05AScript
MG08CupboardScript
MG08Script
MG09Script
MG15IrlavJarolDeadScript
MG16MageScript
MG17Script
MG19ChestScript
MQ10SigilStoneActivatorScript
MQ10SigilStoneScript
MQ12GoblinInventorySCRIPT
MQ12UndeadInventorySCRIPT
MQ13Script
MQ14SigilStoneScript

MQ15KathutetSCRIPT
MS05DreamworldAmuletScript
MS05DreamworldElementActivators01
MS05DreamworldElementActivators02
MS05DreamworldElementActivators03
MS05DreamworldElementActivators04
MS08AleronLocheScript
MS08FakeDoorKeyScript
MS13SigilScript
MS45DarMaChestScript
MS46RewardChestSCRIPT
MS48SigilStoneScript
MSScarTailScript
MyvrynasCupboardScript
NecroAltarScript
NecroAnchoriteDFScript
OghashgraMagulSCRIPT
OntusVaninsChestScript
OrumGangCourier1SCRIPT
SiegeCrawlerDeathSCRIPT
SigilStoneRandomSCRIPT
SigilStoneScript
TG05ScampScript
TG07LegionSealScript
TGIcestaffDisplayCaseScript
UmbacanoScript