Difference between revisions of "SetQuickslot"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(Generated by Sunjammer's Dragon Age Script Paser)
 
(remove tag)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Generated}}
 
 
{{dafunction
 
{{dafunction
 
|name=SetQuickslot
 
|name=SetQuickslot
Line 6: Line 5:
 
|param1name=oCreature
 
|param1name=oCreature
 
|param1desc=The creature
 
|param1desc=The creature
 +
|param1default=
 
|param2type=int
 
|param2type=int
 
|param2name=nSlot
 
|param2name=nSlot
 
|param2desc=The index of the slot to set, or -1 to use the first empty slot
 
|param2desc=The index of the slot to set, or -1 to use the first empty slot
 +
|param2default=
 
|param3type=int
 
|param3type=int
 
|param3name=nAbilityID
 
|param3name=nAbilityID
 
|param3desc=The ability ID to put in the slot (or 0 to clear)
 
|param3desc=The ability ID to put in the slot (or 0 to clear)
 +
|param3default=
 
|param4type=string
 
|param4type=string
 
|param4name=sItemTag
 
|param4name=sItemTag
 
|param4desc=An item tag in case the ability is linked to a specific item
 
|param4desc=An item tag in case the ability is linked to a specific item
 +
|param4default=""
 
|returntype=void
 
|returntype=void
 
|returndesc=
 
|returndesc=

Latest revision as of 22:22, 11 February 2010

Sets or clears an ability in a creature's quickslot.

void SetQuickslot(
object oCreature,
int nSlot,
int nAbilityID,
string sItemTag = ""
);
Parameters:
oCreature
The creature
nSlot
The index of the slot to set, or -1 to use the first empty slot
nAbilityID
The ability ID to put in the slot (or 0 to clear)
sItemTag
An item tag in case the ability is linked to a specific item
Returns:

Nothing.

Source:

script.ldf

Description

Sets or clears an ability in a creature's quickslot.