Before I do this, I want some feedback O:

Okay, I’m going to start making scripts smaller and such on Evi :stuck_out_tongue:

So for many strings that are the same thing, but with diff names (Like stats)

If I put them all in one string and tokenized them Ex:

setstring client.test,100 100 100 100 100 100 100;

Would I be able to add onto the stat itself such as strtofloat(#t(0))+1;
, also how would the lag be if I had compacted many of my methods like this?

More or less

Stats = One string.

Item Quanitites = One string. (20 items per string to play it safe)
(I will not be having Item Dropping either o; Going to have a give thing only so going too have to have “Monitered” trades.)

Weapon information (Name,Ganis,type,Mindmg,Maxdmg,)

I think that’s all a pretty good example oO

But yeah haha, how bad would the lag be, and would I be able to add, subtract from said strings?

I’ve only tested this with my percentages of how I use Poison and Freeze which is more or less this.string,25 10 or any other number

Do we have proper string array support in this client? Can’t remember.

Dunno, I haven’t even messed with Arrays yet honestly xX… Don’t even know what Arrays are/do/what you can use them for yet x:

I’ve seen Arrays in my C++ class I take, but I’m not being introduced to that until Week 8.

newfeatures2001.txt

#I(list,index)

Faults: string arrays need to be in an extremely specific format (“223 23”,22,3,“23 3”) and must be of the ‘setstring’ variety, all other types of strings (tokens, params, attrs) are not usable.

[QUOTE=Beholder;47885]
newfeatures2001.txt

#I(list,index)

Faults: string arrays need to be in an extremely specific format (“223 23”,22,3,“23 3”) and must be of the ‘setstring’ variety, all other types of strings (tokens, params, attrs) are not usable.
[/QUOTE]

addstring list,text;
insertstring list,index,text;
replacestring list,index,text;
removestring list,text;
deletestring list,index;
sarraylen(list)
lindexof(list,text)
#I(list,index) - gives you the string on place ‘index’

I take it then :slight_smile:

List, index, and text a little explanitory on this part? O:

Text = Text that it contains?

List = lists? O:

Index = part such as 0,1,2,3,4 such as #i(0)?

yes, yes and yes.

[QUOTE=Beholder;47889]yes, yes and yes.[/QUOTE]

:slight_smile: I see

so, list = client.whatever or this.whatever, index = 0 (for first index?) = #I(0), text = text

Thank you ^^

I’ll mess with these for awhile

One more question though :o

Instead of tokenizing things, I can also use text as well and not just numbers I take it? :slight_smile:

The only problem with lists is the need to convert them to variables and back. It’s a tedious process.

Ohmah, example? :x

[QUOTE=Shiny;47891]It’s a tedious process.[/QUOTE]
Code bloat D:

[QUOTE=Beholder;47894]Code bloat D:[/QUOTE]

Indeed :frowning:

Ew x[ nevermind I’ll stick with my string bloat and only list for strings that need to change with values x: (tokenize)

Thanks ahha xD I need all the room possible in these scripts xX

[QUOTE=Twiggy;47896]
Ew x[ nevermind I’ll stick with my string bloat and only list for strings that need to change with values x: (tokenize)

Thanks ahha xD I need all the room possible in these scripts xX
[/QUOTE]

You still have to convert strings to variables, regardless of them being lists or not.

Not as much as I would, nor as long.

Im trying to make a hat system and as part of it I’ve decided to use an array instead of having a whole lot of messy weapons. This is what I tried to do so far:
the selector:

if (playerchats){
  setplayerprop #P1,#I(testarray,#c);
  setplayerprop #c,changed hat to #I(testarray,#c);
}

one of the hats

if (playertouchsme){
  addstring testarray,hat2.png;
  hide;
}

I can touch the first hat so it will have the first index so 0 so if i type nothing into the chat and press enter I will put that hat on but if i typed 1 to try get the second index it doesnt work.

why are people always making complicated hat systems when a if (playerchats) can be used to set any hat image

if (playerchats) {
tokenize #c(0);
if (strequals(#t(0),sethat)) {setplayerprop #P1,#t(1);setani haton,;
}
}
works perfectly, and not limited to hat###.png’s (any image can be entered)

Just steal UN’s goddamn script, you are so good at stealing and claiming things as your own. BTW, STOP the god damn necroposting!

LOL

MEH

[QUOTE=tricxta;50730]uhhhh someone close this thread too. Its not getting anywhere[/QUOTE]

Make me, punk.