Frictional Games Forum (read-only)
[SCRIPT] Naming combined items? - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: [SCRIPT] Naming combined items? (/thread-14438.html)



Naming combined items? - zombiehacker595 - 04-02-2012

so i combined glass jar with acid got a jar of acid but because it is combined i couldnt really add text entry in hpl editor so how do i add a name and desc to a combined item? Smile


RE: Naming combined items? - i3670 - 04-02-2012

I believe it works like this:

GiveItem(string& asName, string& asType, string& asSubTypeName, string& asImageName, float afAmount);
I think it is the "string& asSubTypeName" if you can trust the wiki
http://wiki.frictionalgames.com/hpl2/amnesia/script_functions#inventory