How to combining 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: How to combining items? (/thread-19411.html) |
How to combining items? - giacomo9 - 12-02-2012 The player has an empty container, a bottle of acid and a bottle of glycerin - to create an explosive mixture, it must pour acid and glycerin into the empty container. - Player gets "unfinished potion" when poured the contents of any bottle. - Player gets the "explosive mixture" when combined "unfinished potion" with the other component. How to do it? RE: How to combining items? - The chaser - 12-02-2012 void OnStart() { AddUseItemCallback("", "acid", "empty", "Unfinished", true); AddUseItemCallback("", "Glycerin", "empty", "Unfinished", true); } void Unfinished(string &in asItem, string &in asEntity) { SetEntityActive("unfinished", true); SetEntityActive("empty", false); AddUseItemCallback("", "Glycerin", "unfinished", "To_complete", true); AddUseItemCallback("", "acid", "unfinished", "To_complete", true); } void To_complete (string &in asItem, string &in asEntity) { SetEntityActive("Complete_yay", true); SetEntityActive("unfinished", false); } Feel free to add screen efects so it doesn't look fake. RE: How to combining items? - giacomo9 - 12-02-2012 When I tried to connect, for example, glycerin with an empty container, there was a message "combination does not work"... RE: How to combining items? - NaxEla - 12-03-2012 I would suggest taking a look at this video: http://www.youtube.com/watch?v=VtgSk36Sa8E RE: How to combining items? - The chaser - 12-03-2012 (12-02-2012, 11:00 PM)giacomo9 Wrote: When I tried to connect, for example, glycerin with an empty container, there was a message "combination does not work"...That's a name problem. Check the names so they fit. RE: How to combining items? - giacomo9 - 12-03-2012 I do not have the file "Inventory.hps" can there be a problem? RE: How to combining items? - giacomo9 - 12-03-2012 Ok, problem solved |