Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help combining glass container with acid
Author Message
zombiehacker595 Offline
Member

Posts: 141
Joined: Mar 2012
Reputation: 3
Post: #1
combining glass container with acid
what would the script be to get a glass container and collect acid from an acid container?
04-01-2012 02:51 AM
Find all posts by this user Quote this message in a reply
Xanthos Offline
Senior Member

Posts: 322
Joined: Mar 2012
Reputation: 8
Post: #2
RE: combining glass container with acid
What exactly do you mean?
A Acid Jar and if you use a glass jar on it you get acid jar?

04-01-2012 03:22 AM
Find all posts by this user Quote this message in a reply
zombiehacker595 Offline
Member

Posts: 141
Joined: Mar 2012
Reputation: 3
Post: #3
RE: combining glass container with acid
(04-01-2012 03:22 AM)Xanthos Wrote:  What exactly do you mean?
A Acid Jar and if you use a glass jar on it you get acid jar?


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?
04-01-2012 03:27 AM
Find all posts by this user Quote this message in a reply
Xanthos Offline
Senior Member

Posts: 322
Joined: Mar 2012
Reputation: 8
Post: #4
RE: combining glass container with acid
(04-01-2012 03:27 AM)zombiehacker595 Wrote:  
(04-01-2012 03:22 AM)Xanthos Wrote:  What exactly do you mean?
A Acid Jar and if you use a glass jar on it you get acid jar?


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?


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");
}

04-01-2012 03:34 AM
Find all posts by this user Quote this message in a reply
zombiehacker595 Offline
Member

Posts: 141
Joined: Mar 2012
Reputation: 3
Post: #5
RE: combining glass container with acid
(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?
A Acid Jar and if you use a glass jar on it you get acid jar?


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?


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");
}
{
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?
04-01-2012 03:49 AM
Find all posts by this user Quote this message in a reply
Xanthos Offline
Senior Member

Posts: 322
Joined: Mar 2012
Reputation: 8
Post: #6
RE: combining glass container with acid
(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?
A Acid Jar and if you use a glass jar on it you get acid jar?


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?


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");
}
{
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?


What's the error?
"Can't use this item this way"

04-01-2012 03:50 AM
Find all posts by this user Quote this message in a reply
zombiehacker595 Offline
Member

Posts: 141
Joined: Mar 2012
Reputation: 3
Post: #7
RE: combining glass container with acid
(04-01-2012 03:50 AM)Xanthos Wrote:  
(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?
A Acid Jar and if you use a glass jar on it you get acid jar?


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?


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");
}
{
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?


What's the error?
"Can't use this item this way"
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 04:13 AM
Find all posts by this user Quote this message in a reply
Xanthos Offline
Senior Member

Posts: 322
Joined: Mar 2012
Reputation: 8
Post: #8
RE: combining glass container with acid
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

04-01-2012 04:17 AM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)