I have tried to make two items to combine and found a thread where Jens told someone to put the script to inventory file. Well I made such file and tried to make items to combine, and I got the combine part working; it does not complain that "this combination does not work". However the function does not happen, so they combine(I think) but nothing happens.
(10-20-2010, 08:08 PM)house Wrote: void OnGameStart()? It isn't like that. Its supposed to be: void OnStart()
This may be your problem.
Yeah but it is in "inventory.hps" file that is used for every map, and in original games inventory file there was void OnGameStart()
EDIT: Anyway tried that also; didn't work...
Oh, I just found out about Inventory.hps. Sorry!
Anyways, Maybe this will help. I see that you made this ya in the inventory.hps?
GiveItem("Explosion1", "Explosion", "", "glass_container_mix_notdone", 1.0f);
I think glass_container_mix_notdone needs a .tga at the end of it like:
GiveItem("Explosion1", "Explosion", "", "glass_container_mix_notdone.tga", 1.0f);
This may not work. But aleast we can give it a try.
RE: Inventory Script File (How to combine two items)
I made it work but only using the main's folder inventory file (you know, the one with all the game's combinations).
I tried it with a script in a map but it would do what you described (no complaints about combination not working, but the function wouldn't execute).
And I tried to make an inventory.hps in my custom story's folder (along with custom_story_settings.cfg) but it wouldn't work that way =/ (usual combination not working message would show).
Does your inventory.hps file works? (and with "works" I mean does your custom story runs it?)