For starters, you are not posting the script. Without looking at the script, none of us can point at the line and say 'There it is, do this instead.'
Meanwhile, here is a script that should do what you want IF you fill in the blanks (including the resref of the object you want made in the PCs inventory and also the name of the convo you want launched)... and of course, put the script into your modules' on enter or a trigger around the location PC start point.
(Special thanks to lightfoot - i missed a parameter in the original post, this is corrected below)
void main()
{
object oPC = GetEnteringObject();
object oItem = GetFirstItemInInventory(oPC);
while(GetIsObjectValid(oItem))
{
DestroyObject(oItem);
oItem = GetNextObjectInInventory(oPC);
}
oItem = CreateItemOnObject("RESREF_OF_ITEM_TO_GIVE_PC",oPC);
AssignCommand(oItem,ActionStartConverstation(oPC,"RESREF_OF_CONVO"));
}
Best wishes on your project.
Be well. Game on!
GM_ODA
Modifié par ehye_khandee, 09 avril 2012 - 02:11 .