Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-20-2003, 05:37 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
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?
Reply With Quote
  #2  
Old 01-20-2003, 06:13 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Lightbulb 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...
__________________
Skyld
Reply With Quote
  #3  
Old 01-20-2003, 08:29 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
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]);
}
Reply With Quote
  #4  
Old 01-21-2003, 04:32 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
That is what I am doing now, thanks
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 06:52 PM.


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