Hi all,
Got another question for ya. I have this script where you can set up a campfire but only if you're holding a torch. The generator lets you specify which hand to have the torch in...how can I modify it so it doesn't matter which hand holds the torch?
location lTarget;
object oSpawn;
object oTarget;
/* Script generated by
Lilac Soul's NWN Script Generator, v. 2.3
For download info, please visit:
http://nwvault.ign.c...=4683&id=625   */
//Put this on action taken in the conversation editor
void main()
{
object oPC = GetPCSpeaker();
if (GetTag(GetItemInSlot(INVENTORY_SLOT_RIGHTHAND, oPC)) == "NW_IT_TORCH001")
{
oTarget = oPC;
lTarget = GetLocation(oTarget);
oSpawn = CreateObject(OBJECT_TYPE_PLACEABLE, "lje_campfire", lTarget);
}
else
{
SendMessageToPC(oPC, "(You must be holding a torch to start a fire)");
}
}
thank you for any help.
'>