![]() "some object"->AddItem "some item" count refers to the object 'some object' defined in the CS and can be used anywhere in scripting. ![]() The scripting language does not provide any means to determine any of these conditions however, the use on actors in a dialog is generally safe.Īt this point we need to remember the two types of uses of functions like AddItem: The behavior of the function changes significantly depending on the type of the caller, the time of the call, and sometimes the number of objects present in the game. This function can be called by any actor or container from a script or dialog result. For this reason most of the bugs, traps, and problems are included in the main text. There are so many traps to avoid, that the bugs section would be longer than the real explanation. The implementation of the inventory feature is poor, politely put. Accessing disabled references is no problem. ![]() Keep that in mind when dealing with items that run scripts of their own.ĪddItem is not limited by the encumbrance value of a container.ĪddItem can not be used on objects that have no reference in the game. However, AddItem will always create new items in the given inventory. ![]() It is often used together with RemoveItem to simulate giving something from one actor to another. ![]() The most common use is in dialogue to handle rewards or quest items. Adds a given number of items to the callers inventory. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |