Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-08-2006, 08:47 AM
Novo Novo is offline
[TServerDeveloper]
Join Date: Jun 2006
Posts: 448
Novo will become famous soon enough
global variables?

PHP Code:
//#CLIENTSIDE
function onCreated()
  {
  
player.global.var = 3;
  
player.globalr.var = 4;
  } 
to comply with:

PHP Code:
//#CLIENTSIDE
function onCreated()
  {
  for ( 
plallplayers )
    {
    
temp.sum += pl.global.var;
    
pl.global.var ++;

    
temp.sum2 += pl.globalr.var;
    }
  } 
Basically... A variable that can be edited clientside that is sent to all other players. global.var can be edited by any player, whereas globalr.var only by the player themselves. This would be sent through udp for optimization...

That's my suggestion!
Reply With Quote
  #2  
Old 12-08-2006, 08:58 AM
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
grrr.
__________________
"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
  #3  
Old 12-08-2006, 03:58 PM
Crono Crono is offline
:pluffy:
Join Date: Feb 2002
Location: Sweden
Posts: 20,000
Crono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond repute
Quote:
Originally Posted by Tyhm View Post
grrr.
whats wrong tyhm
__________________
Reply With Quote
  #4  
Old 12-08-2006, 04:07 PM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
That would be sweet.
Reply With Quote
  #5  
Old 12-08-2006, 07:15 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
I keep asking for Global Variables in the sense of intra-server, now you're asking for Global Variables in the sense of, I dunno, intra-player within a level?

A fine idea, but you stole my name. :-(
__________________
"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
  #6  
Old 12-08-2006, 07:19 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
Quote:
Originally Posted by Tyhm View Post
I keep asking for Global Variables in the sense of intra-server, now you're asking for Global Variables in the sense of, I dunno, intra-player within a level?

A fine idea, but you stole my name. :-(
Why are global variables required? Use an ircbot and a bit of collaboration if you want to achieve it that badly.
__________________
Skyld
Reply With Quote
  #7  
Old 12-08-2006, 07:31 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
Sure, I could do passwords, ircbots, webscripting, etc. to emulate a PS2 finding another game's savefile on your memory card - and giving you an extra song from K.K., or tikigod, or whatever. But:
1) officiality. It'd be ghetto to jury-rig something like this, like strapping a truck mirror on a honda.
2) Security. Passwords can be cracked, IRCBots fooled - less so when it's server-to-server communication.
3) Support. Stefan's a busy guy, sure, but if he makes this in Graal and all the servers have equal access to it, they're more likely to support it than if it's one server's "shared" feature. See also: nobody showed up for the Graalympics.

But for Local Variables, the topic of This thread, good idea, poor name. Or perhaps my own project should upgrade to Universal Variables.
__________________
"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
  #8  
Old 12-09-2006, 03:05 AM
Novo Novo is offline
[TServerDeveloper]
Join Date: Jun 2006
Posts: 448
Novo will become famous soon enough
I was thinking of server-wide global...

Use for them? Perhaps just updating the player's health to all players online... For statistics... Lets say you're in a party, and you want to know what everybody's health is. It's not EXCESSIVELY important. And it wouldn't matter if the data never came across... But it would help with lag.
Reply With Quote
  #9  
Old 12-09-2006, 03:05 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
For the clientside-thing you can use player.attr[] which should work in most cases, although it's not directly sent to the other players via udp.

For global data we can use the irc-communication things right now (there are ways to verify from which server/script the data comes, although not fully documented). In the near future there will also be a way to send requesttext/sendtext messages to other npcservers, which then can be used to load, exchange and store data.
Reply With Quote
  #10  
Old 12-09-2006, 03:08 AM
Novo Novo is offline
[TServerDeveloper]
Join Date: Jun 2006
Posts: 448
Novo will become famous soon enough
Quote:
Originally Posted by Stefan View Post
For the clientside-thing you can use player.attr[] which should work in most cases, although it's not directly sent to the other players via udp.

For global data we can use the irc-communication things right now (there are ways to verify from which server/script the data comes, although not fully documented). In the near future there will also be a way to send requesttext/sendtext messages to other npcservers, which then can be used to load, exchange and store data.
What about request/send text to other players?

When using IRC-Bot, we have to go into the same channel and send a message to everyone. If we sent to the player themselves, they get it as a PM.
Reply With Quote
  #11  
Old 12-09-2006, 04:41 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
You can also send irc messages and notices to individual users/scripts.
Reply With Quote
  #12  
Old 12-09-2006, 09:45 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
Quote:
Originally Posted by Stefan View Post
For the clientside-thing you can use player.attr[] which should work in most cases, although it's not directly sent to the other players via udp.

For global data we can use the irc-communication things right now (there are ways to verify from which server/script the data comes, although not fully documented). In the near future there will also be a way to send requesttext/sendtext messages to other npcservers, which then can be used to load, exchange and store data.
Sweet....back to work on Hubworld for me, then. }:{D>
__________________
"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
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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:19 PM.


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