| View previous topic :: View next topic   | 
	
	
	
		| Author | 
		Message | 
	
	
		bis_senchi
 
 
  
  Joined: 08 Jun 2004 Posts: 460 Location: Reims, France
  | 
		
			
				 Posted: Fri Apr 01, 2005 3:03 am    Post subject: How do I link a global variable with an Npc ? | 
				     | 
			 
			
				
  | 
			 
			
				I would like to link a global variable with the Npc 16 so that I can give him the same name.
 
 
I used the command npc reference and a global variable at the beginning of my script but I don't managed to call him when I am on another map.
 
 
Could somoene help me to solve this problem ?
 
Thanks very much in advance for the help! | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		Mike Caron Technomancer
 
 
  
  Joined: 26 Jul 2003 Posts: 889 Location: Why do you keep asking?
  | 
		
			
				 Posted: Fri Apr 01, 2005 5:22 am    Post subject:  | 
				     | 
			 
			
				
  | 
			 
			
				I don't understand what you mean. If you just want to have the same name for your NPC in all your scripts, you can just declare a variable at the beginning of your script. You shouldn't save an NPC reference in a global variable, since it will not be valid on other maps. _________________ I stand corrected. No rivers ran blood today. At least, none that were caused by us.
 
 
Final Fantasy Q
 
OHR Developer BLOG
 
Official OHRRPGCE Wiki and FAQ | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		bis_senchi
 
 
  
  Joined: 08 Jun 2004 Posts: 460 Location: Reims, France
  | 
		
			
				 Posted: Sat Apr 02, 2005 11:15 am    Post subject: I see there is no use for such commands | 
				     | 
			 
			
				
  | 
			 
			
				You are right. I realise now that I don't need to use global Npcs
 
 
Thank you very much for ansewering and sorry for posting an stupid question! | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		Mike Caron Technomancer
 
 
  
  Joined: 26 Jul 2003 Posts: 889 Location: Why do you keep asking?
  | 
		 | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		 |