![]() |
Quick Answer Needed
Quick answers are nice... take a look at this code:
NPC Code: notice the line: set server.notice1=#s(#t(1)); it is setting the server.flag to "#s(#t(1))" itself instead of what it represents... do i have missing quotes or something? I'm at a loss... thanks |
I fixed it using setstring, fairly simple, thanks :)
|
Strings rae the best way to go XP. There sholud be some way to store a string that is ONLY for that NPC, so it doesn't really SAVE anwwhere, like a this.var, except this.strings are for D/B NPC's. Perhaps this.strings that are stored into a normal NPC?
---Shifter |
local.strings o_O! LOL... I knew there were new strings, I didn't realize they were! So setstring local.string,value; hmm... I will DEFFINATELY put this to use XP Only clientside though... is there one that isn't? I know you can do a server.string... but those aren't nice ;)
---Shifter |
I never knew about local.strings... hmm... that is odd. And I know you can clear this.strings, you can clear server.strings too though =/ Can you have this.strings in a NON Database NPC?
---Shifter |
i used server.strings so we can change it from RC, but thanks anyways
|
Heh, it's funny, we are all pretty good scripters, but no one has really messed with technicalities. If you're not sure something will work, you find another way, lolz. Like I get tired of setting client.strings just to store temp data, it gets annoying x.X I use this.vars though for numbers, that's most efficient, but data you can't do that with :(
Server.strings = bad x.X I h8 them, and 99% of scripts shouldn't EVER contain them. OCCASIONALLY you may find a use for one, but then with (getnpc(Control-NPC)) { setstring this.string,data;} He he. Best way I would say. Plus you can control and manipulate it better. ---Shifter |
Okay, so I should've specified. Yes, TECHNICALLY numbers are data, but data can be more. Non-numerical data (along with numerical if you so wish)
---Shifter |
Quote:
|
I just made a class selection system, and they are better than using client.strings hell yez! Thanks again Kai.
---Shifter |
| All times are GMT +2. The time now is 12:23 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.