Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help AddCombineCallback
jessehmusic Offline
Senior Member

Posts: 423
Threads: 102
Joined: Dec 2011
Reputation: 8
#1
AddCombineCallback

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?

http://www.moddb.com/mods/jessehmusic - Hospital of horror , WIP
04-11-2012, 07:27 PM
Website Find
Cranky Old Man Offline
Posting Freak

Posts: 986
Threads: 20
Joined: Apr 2012
Reputation: 38
#2
RE: AddCombineCallback

(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.



Noob scripting tutorial: From Noob to Pro

04-11-2012, 07:44 PM
Find
jessehmusic Offline
Senior Member

Posts: 423
Threads: 102
Joined: Dec 2011
Reputation: 8
#3
RE: AddCombineCallback

(04-11-2012, 07:44 PM)Cranky Old Man Wrote:
(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.
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:44 PM)Cranky Old Man Wrote:
(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.
what is gonna be in the Func then ?

http://www.moddb.com/mods/jessehmusic - Hospital of horror , WIP
(This post was last modified: 04-11-2012, 07:50 PM by jessehmusic.)
04-11-2012, 07:49 PM
Website Find
Cranky Old Man Offline
Posting Freak

Posts: 986
Threads: 20
Joined: Apr 2012
Reputation: 38
#4
RE: AddCombineCallback

(04-11-2012, 07:49 PM)jessehmusic Wrote:
(04-11-2012, 07:44 PM)Cranky Old Man Wrote:
(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.
as i said before i cant understand the orginal script :S that FG did they are so huge and wierd in my ayes

what is gonna be in the Func then ?
Here is an online tutorial on how to program scripts in Amnesia:
https://www.youtube.com/watch?v=hrkpC5N_...plpp_video


Noob scripting tutorial: From Noob to Pro

04-11-2012, 07:59 PM
Find
jessehmusic Offline
Senior Member

Posts: 423
Threads: 102
Joined: Dec 2011
Reputation: 8
#5
RE: AddCombineCallback

(04-11-2012, 07:59 PM)Cranky Old Man Wrote:
(04-11-2012, 07:49 PM)jessehmusic Wrote:
(04-11-2012, 07:44 PM)Cranky Old Man Wrote:
(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.
as i said before i cant understand the orginal script :S that FG did they are so huge and wierd in my ayes

what is gonna be in the Func then ?
Here is an online tutorial on how to program scripts in Amnesia:
https://www.youtube.com/watch?v=hrkpC5N_...plpp_video
Have seen alrdy ^_^

http://www.moddb.com/mods/jessehmusic - Hospital of horror , WIP
04-11-2012, 09:01 PM
Website Find
Cranky Old Man Offline
Posting Freak

Posts: 986
Threads: 20
Joined: Apr 2012
Reputation: 38
#6
RE: AddCombineCallback

(04-11-2012, 09:01 PM)jessehmusic Wrote:
(04-11-2012, 07:59 PM)Cranky Old Man Wrote: Here is an online tutorial on how to program scripts in Amnesia:
https://www.youtube.com/watch?v=hrkpC5N_...plpp_video
Have seen alrdy ^_^
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:
http://wiki.frictionalgames.com/hpl2/amn..._functions


Noob scripting tutorial: From Noob to Pro

(This post was last modified: 04-11-2012, 09:14 PM by Cranky Old Man.)
04-11-2012, 09:13 PM
Find




Users browsing this thread: 2 Guest(s)