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 06-01-2003, 02:23 PM
protagonist protagonist is offline
Banned
protagonist's Avatar
Join Date: May 2003
Location: CAW
Posts: 5,586
protagonist is on a distinguished road
Send a message via AIM to protagonist Send a message via MSN to protagonist
Unhappy Ugh

Hi.

How do you return a value from a string array? I'm trying to create a hat trading system and I can't get the darned thing to scroll over hats that the people actually have, just hats 1,2,3 etc.

I tried using a bunch of different combinations using sarraylen and lindexof, but neither works for me in the way I was trying it.


For example, I want the client's 6th hat in the string array to appear over their head. I have everything working but the 6th hat turns out to be hat6.png. I want the value of the 6th number in the string array.
Reply With Quote
  #2  
Old 06-01-2003, 02:39 PM
Neoreno Neoreno is offline
Cerebrate
Neoreno's Avatar
Join Date: Aug 2001
Location: England
Posts: 1,663
Neoreno is on a distinguished road
Send a message via AIM to Neoreno
Hmm, tried using #I(string,index)

I'm not too sure that'll work, but try it anyway.
__________________

Quote:
Exitus Acta Probat: The Outcome Justifies the Deed.
Reply With Quote
  #3  
Old 06-01-2003, 02:42 PM
protagonist protagonist is offline
Banned
protagonist's Avatar
Join Date: May 2003
Location: CAW
Posts: 5,586
protagonist is on a distinguished road
Send a message via AIM to protagonist Send a message via MSN to protagonist
Quote:
Originally posted by Neoreno
Hmm, tried using #I(string,index)

I'm not too sure that'll work, but try it anyway.

I think that will work, thanks.
Reply With Quote
  #4  
Old 06-01-2003, 04:46 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
guy, the newfeatures text files are there for a reason, read them
Reply With Quote
  #5  
Old 06-01-2003, 05:00 PM
tlf288 tlf288 is offline
Registered User
tlf288's Avatar
Join Date: Nov 2001
Location: new account: Trevor
Posts: 0
tlf288 is on a distinguished road
Send a message via AIM to tlf288 Send a message via Yahoo to tlf288
Quote:
Originally posted by Python523
guy, the newfeatures text files are there for a reason, read them
But, isn't being spoonfed so much better? :|
__________________
new account: Trevor
Reply With Quote
  #6  
Old 06-01-2003, 08:18 PM
protagonist protagonist is offline
Banned
protagonist's Avatar
Join Date: May 2003
Location: CAW
Posts: 5,586
protagonist is on a distinguished road
Send a message via AIM to protagonist Send a message via MSN to protagonist
Quote:
Originally posted by tlf288


But, isn't being spoonfed so much better? :|
I don't know, tell me.

*Gives a spoonful of don't post in my threads*


Also I read newfeatures when I want to know what something means or I forget a syntax, or if I'm looking for something specific. I thought I had to use sarraylen and/or lindex to get it, someone told me that once before. I didn't know about #I.
Reply With Quote
  #7  
Old 06-02-2003, 09:57 PM
tlf288 tlf288 is offline
Registered User
tlf288's Avatar
Join Date: Nov 2001
Location: new account: Trevor
Posts: 0
tlf288 is on a distinguished road
Send a message via AIM to tlf288 Send a message via Yahoo to tlf288
Quote:
Originally posted by protagonist


I don't know, tell me.

*Gives a spoonful of don't post in my threads*
What, your telling me where I can and can't post? You must be a mod of some sort...
*checks forum leaders*
Nope, your not. What gives you the right to tell me this?
__________________
new account: Trevor
Reply With Quote
  #8  
Old 06-02-2003, 10:54 PM
protagonist protagonist is offline
Banned
protagonist's Avatar
Join Date: May 2003
Location: CAW
Posts: 5,586
protagonist is on a distinguished road
Send a message via AIM to protagonist Send a message via MSN to protagonist
Quote:
Originally posted by tlf288


What, your telling me where I can and can't post? You must be a mod of some sort...
*checks forum leaders*
Nope, your not. What gives you the right to tell me this?
The same right that allows me to call you an infectious pickle in my thread.
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 03:13 AM.


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