Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-08-2011, 12:08 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Quote:
Originally Posted by kingcj View Post
This worked for me, but I'm unsure why the .blah was needed when assigning. I'm not sure if the other is for GUIs or not, but thanks for the help!
That's the variable sortbyvalue grabs the value from to sort it by, you could use rabblerabble if you wanted to.

I.e:

PHP Code:
temp.xs = {1,6,7,3,2,1,5,23,41,75,2347,51,123}; 
for (
temp.0temp.temp.xs.size(); temp.i++) { 
  
temp.xs[temp.i].rabblerabble temp.xs[temp.i]; 

temp.xs.sortbyvalue("rabblerabble""float"true); 
__________________
Quote:
Reply With Quote
  #2  
Old 01-08-2011, 12:37 AM
kingcj kingcj is offline
Registered User
kingcj's Avatar
Join Date: Apr 2006
Location: TN
Posts: 114
kingcj will become famous soon enough
Send a message via MSN to kingcj
Quote:
Originally Posted by fowlplay4 View Post
That's the variable sortbyvalue grabs the value from to sort it by, you could use rabblerabble if you wanted to.

I.e:

PHP Code:
temp.xs = {1,6,7,3,2,1,5,23,41,75,2347,51,123}; 
for (
temp.0temp.temp.xs.size(); temp.i++) { 
  
temp.xs[temp.i].rabblerabble temp.xs[temp.i]; 

temp.xs.sortbyvalue("rabblerabble""float"true); 
Oh... Thank you very much!
__________________
Zie

"It is not necessary to change. Survival is not mandatory." - W. Edwards Deming
Reply With Quote
Reply


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 04:00 PM.


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