66 lines
2.8 KiB
Plaintext
66 lines
2.8 KiB
Plaintext
int StartingConditional()
|
|
{
|
|
//check to see if pc has something in his righthand
|
|
if (GetItemInSlot(INVENTORY_SLOT_RIGHTHAND, GetPCSpeaker()) == OBJECT_INVALID) return FALSE;
|
|
//otherwise determine the type of weapon it is
|
|
int bit = GetBaseItemType(GetItemInSlot(INVENTORY_SLOT_RIGHTHAND, GetPCSpeaker()));
|
|
//check the baseitems 2da
|
|
string name = Get2DAString("baseitems","label",bit);
|
|
//set the custom token for this conversation node
|
|
SetCustomToken(659,name);
|
|
return TRUE;
|
|
}
|
|
|
|
/*this is the previous version, left for reference or in case you want spaces in your
|
|
weapon names:
|
|
|
|
int StartingConditional()
|
|
{
|
|
//check to see if pc has something in his righthand
|
|
if (GetItemInSlot(INVENTORY_SLOT_RIGHTHAND, GetPCSpeaker()) == OBJECT_INVALID) return FALSE;
|
|
//otherwise determine the type of weapon it is
|
|
int bit = GetBaseItemType(GetItemInSlot(INVENTORY_SLOT_RIGHTHAND, GetPCSpeaker()));
|
|
string name;
|
|
//check against the weapon basetypes
|
|
if (bit==BASE_ITEM_BASTARDSWORD) name = "bastard sword";
|
|
if (bit==BASE_ITEM_BATTLEAXE) name = "battle axe";
|
|
if (bit==BASE_ITEM_CLUB) name = "club";
|
|
if (bit==BASE_ITEM_DAGGER) name = "dagger";
|
|
if (bit==BASE_ITEM_DART) name = "dart";
|
|
if (bit==BASE_ITEM_DIREMACE) name = "dire mace";
|
|
if (bit==BASE_ITEM_DOUBLEAXE) name = "double axe";
|
|
if (bit==BASE_ITEM_GRENADE) name = "grenade";
|
|
if (bit==BASE_ITEM_GREATAXE) name = "greataxe";
|
|
if (bit==BASE_ITEM_GREATSWORD) name = "greatsword";
|
|
if (bit==BASE_ITEM_HALBERD) name = "halberd";
|
|
if (bit==BASE_ITEM_HANDAXE) name = "handaxe";
|
|
if (bit==BASE_ITEM_HEAVYCROSSBOW) name = "heavy crossbow";
|
|
if (bit==BASE_ITEM_HEAVYFLAIL) name = "heavy flail";
|
|
if (bit==BASE_ITEM_KAMA) name = "kama";
|
|
if (bit==BASE_ITEM_KATANA) name = "katana";
|
|
if (bit==BASE_ITEM_KUKRI) name = "kukri";
|
|
if (bit==BASE_ITEM_LIGHTCROSSBOW) name = "light crossbow";
|
|
if (bit==BASE_ITEM_LIGHTFLAIL) name = "light flail";
|
|
if (bit==BASE_ITEM_LIGHTHAMMER) name = "light hammer";
|
|
if (bit==BASE_ITEM_LIGHTMACE) name = "light mace";
|
|
if (bit==BASE_ITEM_LONGBOW) name = "longbow";
|
|
if (bit==BASE_ITEM_LONGSWORD) name = "long sword";
|
|
if (bit==BASE_ITEM_MORNINGSTAR) name = "morningstar";
|
|
if (bit==BASE_ITEM_QUARTERSTAFF) name = "quarterstaff";
|
|
if (bit==BASE_ITEM_RAPIER) name = "rapier";
|
|
if (bit==BASE_ITEM_SCIMITAR) name = "scimitar";
|
|
if (bit==BASE_ITEM_SCYTHE) name = "scythe";
|
|
if (bit==BASE_ITEM_SHORTBOW) name = "shortbow";
|
|
if (bit==BASE_ITEM_SHORTSPEAR) name = "shortspear";
|
|
if (bit==BASE_ITEM_SHORTSWORD) name = "shortsword";
|
|
if (bit==BASE_ITEM_SHURIKEN) name = "shuriken";
|
|
if (bit==BASE_ITEM_SICKLE) name = "sickle";
|
|
if (bit==BASE_ITEM_SLING) name = "sling";
|
|
if (bit==BASE_ITEM_THROWINGAXE) name = "throwing axe";
|
|
if (bit==BASE_ITEM_WARHAMMER) name = "warhammer";
|
|
|
|
//set the custom token for this conversation node
|
|
SetCustomToken(659,name);
|
|
return TRUE;
|
|
}*/
|