SetItemAbilityId

From Dragon Age Toolset Wiki
Jump to: navigation, search

This page was generated by Sunjammer's Dragon Age Script Parser.

The parser was unable to extract and/or match all the information required and has flagged this page as containing one or more errors. The source file was not formatted correctly and the information presented is incomplete or incorrect.

This page must be reviewed by a knowledgeable scripter as it will need to be updated. Once identified, the issue in the source file should be reported to BioWare.

Please remove the {{Generated with errors}} tag once the page has been corrected.

Set the ability_id associated with an item

void SetItemAbilityId(
object oItem,
int nAbilityId,
int nPower = 1
);
Parameters:
oItem
An item
nAbilityId
[Undocumented]
nPower
An optional power value for the item. Default is 1
Returns:

Nothing.

Source:

script.ldf

Description

An items ability id (if != ABILITY_INVALID) is the one active ability an item will grant when equipped to the quickbar. CORE_FUNCTION. Do not use unless you are Georg or Yaron. Do not use on equipped items. Ever. Use the Wrapper.