Jump to content

GiveItem/GiveItemCreate


Yovaneth

Recommended Posts

Can anyone please explain the difference between these two actions? This works:

 

IF ~Global("ys_TalkedToAngharad","GLOBAL",0)
Global("ys_TalkedToGarGel","GLOBAL",1)~ THEN BEGIN BLK14
SAY @2381
IF~~THEN
DO~ GiveItemCreate("ysdhkey",PLAYER1,1,0,0)
	SetGlobal("ys_TalkedToAngharad","GLOBAL",1)
	AddJournalEntry(@38,QUEST)~
EXIT
END

and this doesn't:

IF ~Global("ys_TalkedToAngharad","GLOBAL",0)
Global("ys_TalkedToGarGel","GLOBAL",1)~ THEN BEGIN BLK14
SAY @2381
IF~~THEN
DO~ GiveItem("ysdhkey",PLAYER1)
	SetGlobal("ys_TalkedToAngharad","GLOBAL",1)
	AddJournalEntry(@38,QUEST)~
EXIT
END

even thought the item (ysdhkey) exists in the override folder? I've read the IESDP but it doesn't clarify the difference.

 

Thank you.

 

-Y-

Link to comment

In order for GiveItem to work (and it does), the item has to be in the inventory of the creature running the script.

 

In the case of GiveItemCreate, the creature running the script does not need to have it in his inventory.

 

The IESDP is a marvellous tool, and quite comprehensive, but sometimes, it's kind of hard to understand. I spend a good deal of time scratching my head.

Link to comment
In order for GiveItem to work (and it does), the item has to be in the inventory of the creature running the script.

 

In the case of GiveItemCreate, the creature running the script does not need to have it in his inventory.

Ahh.... that explains quite a lot. Thank you!

 

-Y-

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...