Frictional Games Forum (read-only)
Item Combination Use Problem - 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: Item Combination Use Problem (/thread-21491.html)



Item Combination Use Problem - rjmcfarland - 05-14-2013

Hey guys, I am working on a custom story for a final project in school (pretty cool right?). I just have one problem so far. So I can combine the hammer and chipper to make a hammer and chipper, but I cannot get that item to open a door. I really need this, because I will use it later as well. Thanks guys!


RE: Item Combination Use Problem - Tomato Cat - 05-14-2013

Do you have a script for it?


RE: Item Combination Use Problem - rjmcfarland - 05-14-2013

(05-14-2013, 07:46 PM)Tomato Cat Wrote: Do you have a script for it?

For what? Combining the items?


RE: Item Combination Use Problem - Tomato Cat - 05-14-2013

No, using it on the door.

Are you getting any sort of error, or is it just not working?


RE: Item Combination Use Problem - rjmcfarland - 05-14-2013

(05-14-2013, 07:57 PM)Tomato Cat Wrote: No, using it on the door.

Are you getting any sort of error, or is it just not working?

Ah. No, it just does not work. Although I know that naming this item also doesn't work, so it might have to do with that since you don't physically pick up the hammer and chipper.


RE: Item Combination Use Problem - Tomato Cat - 05-14-2013

What is it you're trying to do?


RE: Item Combination Use Problem - rjmcfarland - 05-14-2013

(05-14-2013, 08:04 PM)Tomato Cat Wrote: What is it you're trying to do?

So I combined two items that I will use to open a door, but opening a door requires a name (say the name of a key). Does my created item have a name?

(05-14-2013, 08:04 PM)Tomato Cat Wrote: What is it you're trying to do?

I am so sorry. It looks like I fixed my problem. Thanks anyways.


RE: Item Combination Use Problem - Tomato Cat - 05-14-2013

Yeah, I think it's asName argument.

PHP Code:
GiveItem(stringasNamestringasTypestringasSubTypeNamestringasImageNamefloat afAmount); 

So in your case it's "hammer_and_chipper"