Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Strings on NPCs (https://forums.graalonline.com/forums/showthread.php?t=21512)

everandom 01-19-2002 09:25 PM

Strings on NPCs
 
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... :)

TDO2000 01-19-2002 10:27 PM

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...

everandom 01-19-2002 10:51 PM

thanks.... :)


All times are GMT +2. The time now is 10:07 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.