![]() |
[SCRIPT] combining glass container with acid - 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] combining glass container with acid (/thread-14397.html) |
combining glass container with acid - zombiehacker595 - 04-01-2012 what would the script be to get a glass container and collect acid from an acid container? RE: combining glass container with acid - Xanthos - 04-01-2012 What exactly do you mean? A Acid Jar and if you use a glass jar on it you get acid jar? RE: combining glass container with acid - zombiehacker595 - 04-01-2012 (04-01-2012, 03:22 AM)Xanthos Wrote: What exactly do you mean? as in the acid container Special>Acid Container and Item>Glass Container how would i script it so that when i click on the acid container with the glass container i get a glass jar of acid? RE: combining glass container with acid - Xanthos - 04-01-2012 (04-01-2012, 03:27 AM)zombiehacker595 Wrote:(04-01-2012, 03:22 AM)Xanthos Wrote: What exactly do you mean? Easy, Put a script area above the glass container where you use the item on and name it "AcidGet" Now the script AddUseItemCallback("", "Glass_jar", "AcidGet", "AcidScript", true); } void AcidScript(string &in asItem, string &in asEntity) { RemoveItem("Glass_jar"); GiveSanityBoostSmall(); GiveItemFromFile("Acid_Glass_Jar", "FILENAME.ent"); } RE: combining glass container with acid - zombiehacker595 - 04-01-2012 (04-01-2012, 03:34 AM)Xanthos Wrote:{(04-01-2012, 03:27 AM)zombiehacker595 Wrote:(04-01-2012, 03:22 AM)Xanthos Wrote: What exactly do you mean? AddUseItemCallback("", "Glass_jar", "AcidGet", "AcidScript", true); } void AcidScript(string &in asItem, string &in asEntity) { RemoveItem("Glass_jar"); GiveSanityBoostSmall(); GiveItemFromFile("Acid_Glass_Jar", "glass_container_mix_done_1.ent"); } wont work all names are same as level editor? RE: combining glass container with acid - Xanthos - 04-01-2012 (04-01-2012, 03:49 AM)zombiehacker595 Wrote:(04-01-2012, 03:34 AM)Xanthos Wrote:{(04-01-2012, 03:27 AM)zombiehacker595 Wrote:(04-01-2012, 03:22 AM)Xanthos Wrote: What exactly do you mean? What's the error? "Can't use this item this way" RE: combining glass container with acid - zombiehacker595 - 04-01-2012 (04-01-2012, 03:50 AM)Xanthos Wrote:yea but in the script was i supposed to change the script to acid get or is the acidscript part sposed to be the script?(04-01-2012, 03:49 AM)zombiehacker595 Wrote:(04-01-2012, 03:34 AM)Xanthos Wrote:{(04-01-2012, 03:27 AM)zombiehacker595 Wrote:(04-01-2012, 03:22 AM)Xanthos Wrote: What exactly do you mean? RE: combining glass container with acid - Xanthos - 04-01-2012 I will bold in the script parts you change AddUseItemCallback("", "Name of empty Glass jar", "AcidGet", "AcidScript", true); } void AcidScript(string &in asItem, string &in asEntity) { RemoveItem("Name of empty Glass Jar"); GiveSanityBoostSmall(); GiveItemFromFile("Acid_Glass_Jar", "FILENAME.ent"); } Acid_Glass_Jar is the subname for the extraEnglish.lang |