Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Tokenize? (https://forums.graalonline.com/forums/showthread.php?t=10214)

Solareon 08-23-2001 09:24 AM

Tokenize?
 
After you do a tokenize event and do another one does it start from a fresh set of tokens?

LiquidIce00 08-23-2001 09:27 AM

yes
if u do
tokenize #c;
then u do
tokenize whatever..
the last one will write over the first one

Solareon 08-23-2001 09:37 AM

fix it
 
if (playerchats) {
tokenize #c;
if (strcontains(#v(#t(1)), times)) {
test=#v(#t(0))*#v(#t(2));
message #s(test);
}
}

on the test= blah blah lines it complains about something wierd

"Error: Expected format var, var[i], obj[i].attr, function(a), function(a,b)"

wtf? I just want test to be set to the first token times the second token

Falcor 08-23-2001 12:32 PM

NPC Code:

if (playerchats) {
tokenize #c;
if (strcontains(strtofloat(#t(1)), times)) {
test=strtofloat(#t(0))*strtofloat(#t(2));
message #s(test);
}
}



All times are GMT +2. The time now is 11:19 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.