![]() |
Tokens and Strings - A Problem
Well Ive got a doosie of a problem this time. Ive tried everything I can think of to come up with a way to tokenize a string, add another string to a certain token, then putting the string in place again. [its for stackable items in a custom inventory - that bypasses the normal graal inventory] This is what I have, well theres more but this is the part that has the error I think. Am I going about this wrong? Or can it not be done... though I would think it can, considering Ive not slept in a few days I cant think straight >_<! Thanks in advance to anyone who can help!
NPC Code: |
The line
tokenize #s(client.ammo(#s(this.free))); doesn't seem to make sense. What you are doing is getting a single token from that, not a token*value. Also, I don't know why you have #s(this.free) nested in the #s for client.ammo(perhaps it's something I've never heard of, I don't know.). |
I just glanced at the script & noticed the same thing..
if you have a string called this.free, and you have another string called client.ammo<whatever this.free currently is>, you'd do #s(client.ammo#s(this.free)) |
explaining
oops LOL e.e well I feel dumb, figured it was something simple. Thanks guys time for a nap methinks.. my brain is fried
|
| All times are GMT +2. The time now is 05:32 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.