I have two TEXT APPEARS scripts for the following conversation selections.
1. And nice sword work there.
2. Good shooting from up on the ridge.
For the first option this script is used:
-----
#include "x2_inc_itemprop"
int StartingConditional()
{
object oPC = GetPCSpeaker();
object oAhlias = GetObjectByTag("AhliasNox");
object oWeapon = GetItemInSlot(INVENTORY_SLOT_LEFTHAND, oAhlias);
if (IPGetIsRangedWeapon(oWeapon)==TRUE) return FALSE;
return TRUE;
}
-----
For the second option this script is used:
-----
#include "x2_inc_itemprop"
int StartingConditional()
{
object oPC = GetPCSpeaker();
object oAhlias = GetObjectByTag("AhliasNox");
object oWeapon = GetItemInSlot(INVENTORY_SLOT_LEFTHAND, oAhlias);
if (IPGetIsMeleeWeapon(oWeapon)==TRUE) return FALSE;
return TRUE;
}
-----
If the companion is using a melee weapon, option 2 is not available and option 1 is. This is working.
The problem is that when the companion is using a ranged weapon, option 1 and option 2 are available.
I don't know what the problem is and need some direction.
Thanks.
FP!
Modifié par Fester Pot, 24 juillet 2010 - 03:18 .