blend 
 
 
		
			Junior Member 
			
			
			
 
			
	Posts: 5 
	Threads: 2 
	Joined: Sep 2011
	
 Reputation: 
0
		
	 | 
	
		
			
Chemical mixing? 
			 
			
				Hey, 
I just wanted to ask if its possible to put chemicals into your custom stories. Ive tried looking in the original game files but that stuff is just way too hard for me to put into my custom story, not a pro in scripting.
 
Couldnt find any tutorials on this either. Does anyone know how to do this?   
			 
			
			
			
		 |  
	 
 | 
 
	| 10-23-2011, 09:09 AM  | 
	
		
	 | 
 
 
	
		
		flamez3 
 
 
		
			Posting Freak 
			
			
			
 
			
	Posts: 1,281 
	Threads: 48 
	Joined: Apr 2011
	
 Reputation: 
57
		
	 | 
	
		
			
RE: Chemical mixing? 
			 
			
				Not very sure if this would work:  
Go into editor, make the pot 1 wherever you want it to be, then make pot 2 directly on it and aswell but uncheck "active" so that it wont appear until you tell it to. And then: 
 
 
"AddUseItemCallback" you would for making a key work on a door: 
 
void OnStart() 
{ 
AddUseItemCallback("", "name of item", "thing to interact", "nameoffunction", true); 
 
} 
 
And then in the function: 
 
void namefunction(string &in asItem, string &in asEntity) 
{ 
	SetEntityActive("pot1", false); 
 
	SetEntityActive("pot2", true); 
 
} 
 
And then, make it so that the pot2 is required to advance through the door or where ever: 
 
void OnStart() 
{ 
AddUseItemCallback("", "pot2", "door or what ever", "getthrough", true); 
 
} 
 
void getthrough(string &in asItem, string &in asEntity) 
 
{ 
	SetSwingDoorLocked("door", false, true); 
 
} 
 
I don't know if that would work, but its worth a shot.
			 
			
			
 
			
		 |  
	 
 | 
 
	| 10-23-2011, 12:02 PM  | 
	
		
	 | 
 
 
	
		
		blend 
 
 
		
			Junior Member 
			
			
			
 
			
	Posts: 5 
	Threads: 2 
	Joined: Sep 2011
	
 Reputation: 
0
		
	 | 
	
		
			
RE: Chemical mixing? 
			 
			
				Ah, that helps a bit, I was actually thinking of something like the acid mixing thing in the original story, but this will do. Thanks!
			 
			
			
			
		 |  
	 
 | 
 
	| 10-23-2011, 01:43 PM  | 
	
		
	 | 
 
 
	
		
		flamez3 
 
 
		
			Posting Freak 
			
			
			
 
			
	Posts: 1,281 
	Threads: 48 
	Joined: Apr 2011
	
 Reputation: 
57
		
	 | 
	
		
			
RE: Chemical mixing? 
			 
			
				 (10-23-2011, 01:43 PM)blend Wrote:  Ah, that helps a bit, I was actually thinking of something like the acid mixing thing in the original story, but this will do. Thanks! Yeh, i have no idea how that worked in the original story :S 
			  
			
			
 
			
		 |  
	 
 | 
 
	| 10-23-2011, 01:49 PM  | 
	
		
	 | 
 
 
	
		
		JenniferOrange 
 
 
		
			Senior Member 
			
			
			
 
			
	Posts: 424 
	Threads: 43 
	Joined: Jun 2011
	
 Reputation: 
33
		
	 | 
	
		
			
RE: Chemical mixing? 
			 
			
				If you want to know how the main game did it just look it up in their .hps. I've seen it, it's confusing.
			 
			
			
 
Ba-da bing, ba-da boom. 
 
			
		 |  
	 
 | 
 
	| 10-25-2011, 10:18 PM  | 
	
		
	 | 
 
 
	 
 |