Author Topic: Is script doing what I need it to?  (Read 362 times)

Legacy_archer4217

  • Full Member
  • ***
  • Posts: 206
  • Karma: +0/-0
Is script doing what I need it to?
« on: October 07, 2011, 09:48:54 pm »


               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 '<img'>

/*   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;
}
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Is script doing what I need it to?
« Reply #1 on: October 07, 2011, 09:50:46 pm »


               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
               
               

               
            

Legacy_archer4217

  • Full Member
  • ***
  • Posts: 206
  • Karma: +0/-0
Is script doing what I need it to?
« Reply #2 on: October 08, 2011, 12:15:51 am »


               Thank you, sweetie. *hugs* '<img'>