Janni1234 
 
 
		
			Member 
			
			
			
 
			
	Posts: 134 
	Threads: 24 
	Joined: Jan 2011
	
 Reputation: 
1
		
	 | 
	
		
			
RE: Wrong script!Why!? 
			 
			
				FATAL ERROR; Could not load script file 
'custom _stories/.....hps'! (my script file) 
main (4,39) : ERR : Expected ';' 
main (9,38) : Expected ';'
			 
			
			
			
		 |  
	 
 | 
 
	| 01-05-2011, 06:16 PM  | 
	
		
	 | 
 
 
	
		
		xiphirx 
 
 
		
			Senior Member 
			
			
			
 
			
	Posts: 662 
	Threads: 16 
	Joined: Nov 2010
	
 Reputation: 
5
		
	 | 
	
		
			
RE: Wrong script!Why!? 
			 
			
				void OnStart() 
{ 
AddEntityCollideCallback("Player", "area_scare_1", "areascare1", true, 1); 
PlayMusic("12_amb.ogg"***)***, true, 0.7f, 1, 0, false); 
} 
 
void OnEnter() 
{ 
PlayMusic("12_amb.ogg"***)***, true, 0.7f, 1, 0, false); 
} 
 
void areascare1(string &in asParent , string &in asChild , int alState) 
{ 
PlaySoundAtEntity("Player", "04_hole_squeal.snt", "candle_floor_1", 0, false); 
}
 void OnStart() 
{ 
AddEntityCollideCallback("Player", "area_scare_1", "areascare1", true, 1); 
PlayMusic("12_amb.ogg", true, 0.7f, 1, 0, false); 
} 
 
void OnEnter() 
{ 
PlayMusic("12_amb.ogg", true, 0.7f, 1, 0, false); 
} 
 
void areascare1(string &in asParent , string &in asChild , int alState) 
{ 
PlaySoundAtEntity("Player", "04_hole_squeal.snt", "candle_floor_1", 0, false); 
}
 
Before and after *** *** denotes the changes I made. Again, you're making basic syntax mistakes. You would figure this out on your own if you took the 3 minutes to re-read your script.
			  
			
			
 
			
		 |  
	 
 | 
 
	| 01-05-2011, 06:58 PM  | 
	
		
	 | 
 
 
	
		
		Janni1234 
 
 
		
			Member 
			
			
			
 
			
	Posts: 134 
	Threads: 24 
	Joined: Jan 2011
	
 Reputation: 
1
		
	 | 
	
		
			
RE: Wrong script!Why!? 
			 
			
				Ahh Thanks!  
Im an idiot!    
It works now!
			  
			
			
			
		 |  
	 
 | 
 
	| 01-05-2011, 07:22 PM  | 
	
		
	 | 
 
 
	
		
		Janni1234 
 
 
		
			Member 
			
			
			
 
			
	Posts: 134 
	Threads: 24 
	Joined: Jan 2011
	
 Reputation: 
1
		
	 | 
	
		
			
RE: Wrong script!Why!? 
			 
			
				My Enemy File: 
void areabrute1(string &in asParent , string &in asChild , int alState) 
          { 
              SetEntityActive("servant_brute_1", true); 
              AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_1", 0, ""); 
              AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_2", 0, ""); 
              AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_3", 0, ""); 
              AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_4", 0, ""); 
              AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_5", 0, ""); 
              AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_6", 0, ""); 
              AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_7", 0, ""); 
              AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_8", 0, ""); 
              AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_9", 0, ""); 
              PlaySoundAtEntity("Player", "react_pant.snt", "brick_pile01_2", 0, false); 
          }
			 
			
			
			
		 |  
	 
 | 
 
	| 01-05-2011, 09:25 PM  | 
	
		
	 | 
 
 
	
		
		Tottel 
 
 
		
			Senior Member 
			
			
			
 
			
	Posts: 307 
	Threads: 9 
	Joined: Nov 2010
	
 Reputation: 
0
		
	 | 
	
		
			
RE: Wrong script!Why!? 
			 
			
				.. And? 
 
Again, post the error message.
			 
			
			
			
		 |  
	 
 | 
 
	| 01-06-2011, 03:38 PM  | 
	
		
	 | 
 
 
	
		
		Janni1234 
 
 
		
			Member 
			
			
			
 
			
	Posts: 134 
	Threads: 24 
	Joined: Jan 2011
	
 Reputation: 
1
		
	 | 
	
		
			
RE: Wrong script!Why!? 
			 
			
				How can i use keys in my scripting file?
			 
			
			
			
		 |  
	 
 | 
 
	| 01-06-2011, 05:01 PM  | 
	
		
	 | 
 
 
	
		
		ModManDann 
 
 
		
			Member 
			
			
			
 
			
	Posts: 61 
	Threads: 6 
	Joined: Dec 2010
	
 Reputation: 
0
		
	 | 
	
		
			
RE: Wrong script!Why!? 
			 
			
				I don't think map scripts support hooks onto direct user input. Perhaps you can find something about this on angelscript.
			 
			
			
 
			
		 |  
	 
 | 
 
	| 01-06-2011, 05:29 PM  | 
	
		
	 | 
 
 
	
		
		Janni1234 
 
 
		
			Member 
			
			
			
 
			
	Posts: 134 
	Threads: 24 
	Joined: Jan 2011
	
 Reputation: 
1
		
	 | 
	
		
			
RE: Wrong script!Why!? 
			 
			
				@ModManDann Can you send me your scripting file with a key script?if you have one?and nice map^^ 
At the beginning i was hanging on the wall xD
			 
			
			
			
		 |  
	 
 | 
 
	| 01-06-2011, 07:49 PM  | 
	
		
	 | 
 
 
	
		
		ModManDann 
 
 
		
			Member 
			
			
			
 
			
	Posts: 61 
	Threads: 6 
	Joined: Dec 2010
	
 Reputation: 
0
		
	 | 
	
		
			
RE: Wrong script!Why!? 
			 
			
				What do you mean with a key script? If you mean a trigger that happens if you press a key on your keyboard, it's likely not supported by amnesia level scripting. 
 
Edit: 
I wasn't thinking clear.. You mean a key script for doors I assume.
			 
			
			
 
			
				
(This post was last modified: 01-06-2011, 08:22 PM by ModManDann.)
 
				
			 
		 |  
	 
 | 
 
	| 01-06-2011, 08:20 PM  | 
	
		
	 | 
 
 
	
		
		Janni1234 
 
 
		
			Member 
			
			
			
 
			
	Posts: 134 
	Threads: 24 
	Joined: Jan 2011
	
 Reputation: 
1
		
	 | 
	
		
			
RE: Wrong script!Why!? 
			 
			
				Not for my keyboard.yup,for doors.
			 
			
			
			
		 |  
	 
 | 
 
	| 01-06-2011, 08:51 PM  | 
	
		
	 | 
 
 
	 
 |