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
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.
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
List, index, and text a little explanitory on this part? O:
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)