Changed folder name.
Changed folder name.
This commit is contained in:
65
_module/nss/gc_wpn_props.nss
Normal file
65
_module/nss/gc_wpn_props.nss
Normal file
@@ -0,0 +1,65 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: FileName gc_has_wpn
|
||||
//:://////////////////////////////////////////////
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Script Wizard
|
||||
//:: Created On: 9/11/2008 10:30:09 AM
|
||||
//:://////////////////////////////////////////////
|
||||
#include "nw_i0_tool"
|
||||
|
||||
int StartingConditional()
|
||||
{
|
||||
|
||||
int nIs = FALSE;
|
||||
int nProp;
|
||||
switch (nProp)
|
||||
{
|
||||
case IP_CONST_DAMAGEBONUS_1d4:
|
||||
{ nIs = TRUE; break; }
|
||||
case IP_CONST_DAMAGEBONUS_1d6:
|
||||
{ nIs = TRUE; break; }
|
||||
case IP_CONST_DAMAGEBONUS_1d8:
|
||||
{ nIs = TRUE; break; }
|
||||
case IP_CONST_DAMAGEBONUS_1d10:
|
||||
{ nIs = TRUE; break; }
|
||||
case IP_CONST_DAMAGEBONUS_1d12:
|
||||
{ nIs = TRUE; break; }
|
||||
case IP_CONST_DAMAGEBONUS_2d4:
|
||||
{ nIs = TRUE; break; }
|
||||
case IP_CONST_DAMAGEBONUS_2d6:
|
||||
{ nIs = TRUE; break; }
|
||||
case IP_CONST_DAMAGEBONUS_2d8:
|
||||
{ nIs = TRUE; break; }
|
||||
case IP_CONST_DAMAGEBONUS_2d10:
|
||||
{ nIs = TRUE; break; }
|
||||
case IP_CONST_DAMAGEBONUS_2d12:
|
||||
{ nIs = TRUE; break; }
|
||||
|
||||
|
||||
}
|
||||
int nType;
|
||||
object oItem = GetItemInSlot(INVENTORY_SLOT_RIGHTHAND, GetPCSpeaker());
|
||||
|
||||
int n = 0;
|
||||
itemproperty iProp;
|
||||
iProp = GetFirstItemProperty(oItem);
|
||||
while(GetIsItemPropertyValid(iProp))
|
||||
{
|
||||
if(GetItemPropertyType(iProp)==nProp)
|
||||
n +=1;
|
||||
|
||||
iProp = GetNextItemProperty(oItem);
|
||||
}
|
||||
|
||||
//Max Weapon Properties!
|
||||
if(n >=5)
|
||||
return TRUE;
|
||||
|
||||
|
||||
else
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user