Graal Forums  

Go Back   Graal Forums > Private forums > Graal4 Forums > Graal V4 Main Forum
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 01-10-2006, 08:07 PM
Tom Tom is offline
Grraaaaaw
Tom's Avatar
Join Date: May 2005
Posts: 2,037
Tom is on a distinguished road
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 "";

  #2  
Old 01-10-2006, 08:17 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
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.
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
  #3  
Old 01-10-2006, 08:47 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
PHP Code:
myNiceShortName player.clientr.item.worn.bigshoes.link(); 
... where myNiceShortName should probably be better at not being overwritten, unless Stefan already fixed that.
__________________
Skyld
 


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 12:22 AM.


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