Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-21-2006, 07:32 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
for (curItem: getstringkeys("clientr.items"))
{
curItem stuff
}

To new one:
What is 'this.library'?
__________________
Reply With Quote
  #2  
Old 10-21-2006, 07:46 PM
Rapidwolve Rapidwolve is offline
Registered User
Join Date: Jul 2006
Posts: 1,241
Rapidwolve is an unknown quantity at this point
Quote:
Originally Posted by xAndrewx View Post
for (curItem: getstringkeys("clientr.items"))
{
curItem stuff
}

To new one:
What is 'this.library'?
this.library is "scriptfiles/ur_itemlib.txt"

Also:

GraalScript: Function getstringKeys not found at line 67 in script of ItemLib (in level databases.nw at pos (30.5, 30))
Reply With Quote
  #3  
Old 10-21-2006, 07:52 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Quote:
Originally Posted by Rapidwolve View Post
this.library is "scriptfiles/ur_itemlib.txt"

Also:

GraalScript: Function getstringKeys not found at line 67 in script of ItemLib (in level databases.nw at pos (30.5, 30))
Weird?
Works fine for me, I use it all the time:
HTML Code:
  this.shield_1 = {"Basic Shield", "shield1.png", "tom_icon-shield1.png"};
  this.shield_2 = {"Mirror Shield", "shield2.png", "tom_icon-shield2.png"};
  this.shield_3 = {"Lizard Shield", "shield3.png", "tom_icon-shield3.png"};

  for (temp.curShield: getstringkeys("this.shield_"))
  {
    echo(temp.curShield);
  }
I used it earlier today to just do this... o-O


For the file, I think you'd need to use 'getdynamicvarnames()'
__________________
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 10:16 PM.


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