Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Getting an BIG array from serverside to clientside, or NPCs? (https://forums.graalonline.com/forums/showthread.php?t=42119)

Loriel 01-20-2003 05:37 PM

Getting an BIG array from serverside to clientside, or NPCs?
 
I am working on a mining system where at the beginning, the whole level is filled with walls. Then you use your pickaxe to dig your way through the walls, and sometimes find minerals.
How would I transfer an array that contains all of the wall/not wall info from the serverside to clientside? Or would it be better to have every "tile" as a seperate NPC?

Skyld 01-20-2003 06:13 PM

Suggestion
 
Defining a variable clientside and serverside is pretty much the same. If not, then thiso.<name> might be useful. I can't say I really have played around with serverside/clientside variables that much...

Python523 01-20-2003 08:29 PM

Re: Suggestion
 
Quote:

Originally posted by Skyld
Defining a variable clientside and serverside is pretty much the same. If not, then thiso.<name> might be useful. I can't say I really have played around with serverside/clientside variables that much...
thiso.vars do not exist

loriel, I would suggest making the npc showcharacter; and using gani attributes
setcharprop #P(30),#v(this.var[0]);
for(i=1;i<arraylen(this.var);i++){
setcharprop #P(30),#P(30,-1),#v(this.var[i]);
}

Loriel 01-21-2003 04:32 PM

That is what I am doing now, thanks :)


All times are GMT +2. The time now is 11:46 PM.

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