![]() |
Need Scripting Help
I was trying to set a string with another string in its name like this:
NPC Code:setstring clientr.bla_#s(this.string)bla,value; When I used that in my script, it just set clientr.bla_bla and left out the #s(this.string). Is there a way to do something like that? |
Quote:
|
i already set this.string....
|
Quote:
|
if this.string is a number, #v(strtofloat(#s(this.string))) instead of just #s(this.string).
By setting it, you are supposed to give it a value, not just use it in a setstring with nothing, if that might be the problem. Also, is the this.string in another npc? If it is, then it wouldn't work. this.var's are variables only for that npc. |
1) It is set in the same npc that is supposed to read it.
2) I said this.string, not this.var. It is a string (text), not a variable (number). 3) Lance, please don't just assume I'm noob scripter. I'm actually pretty good. |
1 Attachment(s)
I don't see any problem. I tried it, and it worked fine. It's probably just a small error. You should post to code, like Lance said.
|
Quote:
|
Quote:
|
| All times are GMT +2. The time now is 11:16 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.