Aller au contenu

Photo

Is script doing what I need it to?


  • Veuillez vous connecter pour répondre
2 réponses à ce sujet

#1
archer4217

archer4217
  • Members
  • 105 messages
Hi all,

I was hoping someone could take a look at this script and tell me if it's checking that the PC has all 3 items or is it checking for at least 1 of the items? I want it to check to make sure the PC has all 3 before completing the task.

Thank you in advance :)

/*   Script generated by
Lilac Soul's NWN Script Generator, v. 2.3

For download info, please visit:
http://nwvault.ign.c...=4683&id=625    */

int StartingConditional()
{
object oPC = GetPCSpeaker();

if (GetItemPossessedBy(oPC, "Item1") == OBJECT_INVALID) return FALSE;

if (GetItemPossessedBy(oPC, "Item2") == OBJECT_INVALID) return FALSE;

if (GetItemPossessedBy(oPC, "Item3") == OBJECT_INVALID) return FALSE;

return TRUE;
}

#2
Shadooow

Shadooow
  • Members
  • 4 471 messages
as long as the tag is different in all three cases it will work, if you would want to check that PC have one item three times it wont

#3
archer4217

archer4217
  • Members
  • 105 messages
Thank you, sweetie. *hugs* :)