Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-12-2009, 01:41 PM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm has a spectacular aura about
Passing values from Clientside to Serverside

Ookay, I had higher hopes for the Stickies, but given that the optimization guide was written in 2004, I guess I'm out of luck:

Are we seriously still using triggeraction to send data from Clientside to Serverside? And are we seriously still using this.rupees, this.darts, this.hearts to change values on Serverside that Clientside can pick up on? I found triggerserver, and that's great for weapons, but I mean - seriously? Are we still tying "the player just hit me" to a code-arrow, shooting it at the serverside, and praying it hits?! I mean, I'm the first to admit I been out of the game for a while, but if there's a better way I'd love to know what it is...

And for those of you who absolutely have to know the context, I'm making a baddy, okay? And right now one baddy runs trigger-to-trigger on the serverside (move to onMovementfinished - and once again, hoorah for a language that buries that tidbit in the newfeatures2001.txt), then looks for an enemy; the clientside looks for an enemy to turn the baddy's head; and the gani runs a timeout too, because it's complicated, (and I'm probably gonna wind up scrapping the gani and moving all that code right back to the clientside script). And right now the only way to tell the Client that the baddy's taken damage is to set this.hearts, and have the client scan it every 0.05 seconds. -_-
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
Reply With Quote
 


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 02:21 PM.


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