Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 12-20-2011, 11:12 PM
Alpho Alpho is offline
Registered User
Alpho's Avatar
Join Date: Dec 2011
Location: California, USA
Posts: 80
Alpho will become famous soon enough
variables and tokenize

Hello, I have been tooling around with this for quite a while now, and I can't quite put my finger on how to do this correctly. I have a series of variables that look a little something like this:
PHP Code:
this.test_Yes 4;
this.test_Yea 4;
this.test_Lol 2;
this.test_Abc 3
I am trying to pull information out of the string. For instance; Lets say my account is labeled "Yes", and my buddies account is "Lol". I want to see if our accounts are existant in the variable strings, and set the number as a client flag in their attributes.

For example:
My account is Yes, so looking at the above script, I would get the number '4' added to my attributes.

How am I able to pull this information out of the variables?
I hope all of the above makes sence.

Thanks in advance,
Alpho.
Reply With Quote
 


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:27 PM.


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