Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Graal V4 Main Forum (https://forums.graalonline.com/forums/forumdisplay.php?f=143)
-   -   Suggestion: Pointers (https://forums.graalonline.com/forums/showthread.php?t=63345)

Tom 01-10-2006 08:07 PM

Suggestion: Pointers
 
In various cases, it has been a pain to rewrite a long line such as
player.clientr.item.worn.bigshoes.dynamic

Instead, would it be possible to create references, like static objects, so that:

PHP Code:

&dynamic = &player.clientr.item.worn.bigshoes.dynamic
dynamic 
= {5player.account}; 

And, likewise, to increase the potential of:

PHP Code:

function onCreated()
{
  &static = &
player.clientr.item.worn.bigshoes.static;
  &
dynamic = &player.clientr.item.worn.bigshoes.dynamic;
  
test( &static, &dynamic );
}

function 
merge( &static, &dynamic )
{
  static.
addarray(dynamic);
  
dynamic "";



ApothiX 01-10-2006 08:17 PM

Quote:

Originally Posted by Tom
In various cases, it has been a pain to rewrite a long line such as
player.clientr.item.worn.bigshoes.dynamic

PHP Code:

with(player.clientr.item.worn.bigshoes) {
  
dynamic = {5"HEHE"};
  static = 
":O!";


Although yes, pointers would be nice to have.

Skyld 01-10-2006 08:47 PM

PHP Code:

myNiceShortName player.clientr.item.worn.bigshoes.link(); 

... where myNiceShortName should probably be better at not being overwritten, unless Stefan already fixed that.


All times are GMT +2. The time now is 09:50 AM.

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