Thread: Strings on NPCs
View Single Post
  #2  
Old 01-19-2002, 10:27 PM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
Re: Strings on NPCs

Quote:
Originally posted by everandom
well i've several questions:
1. How to save a string on an NPC?
2. Is there a way to send infos from one NPC to another without using trigger action. (like sending variables between them)
3. what's the client.variable thing? is it different to the strings in the player flags
4. Can server.variable save a string variable?

thx for helping a newbie scripter like me...
1. only P2P (u need a NPC Server to test it)
setstring this.npcstring,lalala;

2. with(getnpc(index or whatever)){ (only P2P)

3. It's saved offline

4. of course:
NPC Code:

if(playerenters){
setstring account,#a;
setstring server.text, #s(account);
}


as an example...
__________________
No Webhost at the moment
Reply With Quote