Aller au contenu

Photo

Plot Item Issues... [Solved]


1 réponse à ce sujet

#1
Challseus

Challseus
  • Members
  • 1 032 messages
Okay, I must be missing something...

So, I have this item, called "palace_of_justice_key.uti". When it's given to the player, I don't want them to be able to drop it/destroy it. In NWN, we would just make it plot. Okay cool, I see something like that in the attributes section of the item. So, I set it to plot, which has the following description:

"A plot item can not be destroyed or removed from the inventory once acquired".

Makes sense to me so far. Now, when I add it via a script like so, I don't get the item:

UT_AddItemToInventory(R"palace_of_justice_key.uti");

As soon as I set the plot flag to false, it shows up no problem. So, I figured I would work around the issue by immediately setting it plot via script, like so:

object oKey = UT_AddItemToInventory(R"palace_of_justice_key.uti");
SetPlot(oKey, TRUE);

I'm still able to destroy the key. I also put in some DEBUG to make sure the returned key was valid. Anyway, then I search for some sort of destroy method, and find SetDestroyable. I replace SetPlot with that (obviously setting it to FALSE), still nothing.

Am I missing something? Is there no way to stop a player from dropping important items? It's been like 7 months since I last played the OC, so I don't even remember if this happened in it or not.

Thanks for your time.

Modifié par Challseus, 06 juin 2010 - 06:31 .


#2
DavidSims

DavidSims
  • BioWare Employees
  • 196 messages
Plot items have a seperate tab in the inventory. Is it possible the player is getting the item, and you're just not lookin in the right place for it?



The second and third things you tried should both also have worked however. I'm not sure what's going on.