![]() |
[SCRIPT] AddCombineCallback - 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] AddCombineCallback (/thread-14712.html) |
AddCombineCallback - jessehmusic - 04-11-2012 Hey im trying to make some chimicals or how it spells but dont know how to combine the items :S ? want an empty and then and glad ,when you combine those the will be and green chimcal any clue? RE: AddCombineCallback - Cranky Old Man - 04-11-2012 (04-11-2012, 07:27 PM)jessehmusic Wrote: Hey im trying to make some chimicals or how it spells but dont know how to combine the items :S ? want an empty and then and glad ,when you combine those the will be and green chimcal any clue?Just clarifying: You want an empty glass bottle, to be able to combine with a poisonous gland, creating a glass bottle with green liquid in it? You do the AddCombineCallback in the OnStart function, and in the function that you call with it, you remove both the empy glass bottle and the gland, and then give the player the green glass bottle. You can learn a lot by studying and copying from the original code. RE: AddCombineCallback - jessehmusic - 04-11-2012 (04-11-2012, 07:44 PM)Cranky Old Man Wrote:as i said before i cant understand the orginal script :S that FG did they are so huge and wierd in my ayes(04-11-2012, 07:27 PM)jessehmusic Wrote: Hey im trying to make some chimicals or how it spells but dont know how to combine the items :S ? want an empty and then and glad ,when you combine those the will be and green chimcal any clue?Just clarifying: You want an empty glass bottle, to be able to combine with a poisonous gland, creating a glass bottle with green liquid in it? (04-11-2012, 07:44 PM)Cranky Old Man Wrote:what is gonna be in the Func then ?(04-11-2012, 07:27 PM)jessehmusic Wrote: Hey im trying to make some chimicals or how it spells but dont know how to combine the items :S ? want an empty and then and glad ,when you combine those the will be and green chimcal any clue?Just clarifying: You want an empty glass bottle, to be able to combine with a poisonous gland, creating a glass bottle with green liquid in it? RE: AddCombineCallback - Cranky Old Man - 04-11-2012 (04-11-2012, 07:49 PM)jessehmusic Wrote:Here is an online tutorial on how to program scripts in Amnesia:(04-11-2012, 07:44 PM)Cranky Old Man Wrote:as i said before i cant understand the orginal script :S that FG did they are so huge and wierd in my ayes(04-11-2012, 07:27 PM)jessehmusic Wrote: Hey im trying to make some chimicals or how it spells but dont know how to combine the items :S ? want an empty and then and glad ,when you combine those the will be and green chimcal any clue?Just clarifying: You want an empty glass bottle, to be able to combine with a poisonous gland, creating a glass bottle with green liquid in it? https://www.youtube.com/watch?v=hrkpC5N_pZM&feature=BFa&list=PLD326789BC99530C8&lf=plpp_video RE: AddCombineCallback - jessehmusic - 04-11-2012 (04-11-2012, 07:59 PM)Cranky Old Man Wrote:Have seen alrdy ^_^(04-11-2012, 07:49 PM)jessehmusic Wrote:Here is an online tutorial on how to program scripts in Amnesia:(04-11-2012, 07:44 PM)Cranky Old Man Wrote:as i said before i cant understand the orginal script :S that FG did they are so huge and wierd in my ayes(04-11-2012, 07:27 PM)jessehmusic Wrote: Hey im trying to make some chimicals or how it spells but dont know how to combine the items :S ? want an empty and then and glad ,when you combine those the will be and green chimcal any clue?Just clarifying: You want an empty glass bottle, to be able to combine with a poisonous gland, creating a glass bottle with green liquid in it? RE: AddCombineCallback - Cranky Old Man - 04-11-2012 (04-11-2012, 09:01 PM)jessehmusic Wrote:Well, then, the original code should make at least some sense. The map where you create a potion from the gland is located in "ch3\", and a simple combination script is done in the first part of the dungeons when you combine the hammer and the chipper to create the "hammer-chipper-item". Just take that script and insert the names of the items from the lab instead. I could write the script here, but then you wouldn't have learned anything, so you'll just ask "How do I combine a fish and a bowl?" a week from now. All the script functions are listed here with explanations:(04-11-2012, 07:59 PM)Cranky Old Man Wrote: Here is an online tutorial on how to program scripts in Amnesia:Have seen alrdy ^_^ http://wiki.frictionalgames.com/hpl2/amnesia/script_functions |