GetIsMagical(object)
Checks for predefined groups of magical effects on an item to determine if it is magical.
int GetIsMagical( object oItem );
Parameters
oItem
Description
Returns True if item has one of the following 'magical' properties:
Enhancement Bonus
Enhancement Bonus vs Alignment Group
Enhancement Bonus vs Racial Group
Enhancement Bonus vs Alignment Group
Attack Bonus
Attack Bonus vs Alignment Group
Attack Bonus vs Racial Group
Attack Bonus vs Specific Alignment
Ac Bonus
This is a simple wrapper function that uses a large IF statement to call the GetItemHasItemProperty() function.
Remarks
Function is define in nw_o0_itemmaker.nss on line 186.
This is a very limited check, it does not look for Unique Powers or anything not listed above.
Requirements
#include "nw_o0_itemmaker"
Version
1.22
See Also
functions: | GetItemHasItemProperty | IsValidBaseItem |
categories: | Module Specific Functions |
author: John Shuell