![]() |
Embarassingly easy script I can't figure out
Why won't this work?
// NPC made by Cyanide SR71 if (playerenters) { show; timeout=0.05; } if (timeout) { tokenize level.room1names; message #v(tokenscount); for (i=0;i<tokenscount;i++) { if (strequals(#s(#t(i)),#a))hidelocal; } if (strequals(#s(level.owneracc),#a)) hidelocal; timeout=0.05; } =/ First time using commands after 1.41.... |
Re: Embarassingly easy script I can't figure out
PHP Code:
|
Nope =/. I know what the problem is... Graal won't tokenize level.room1names for some reason, but I know not how to fix it so it will.
|
Re: Re: Embarassingly easy script I can't figure out
Quote:
dont use #s(#t(i)) just use #t(i) it still might not work, but that is how you use tokens |
-Some Rebel guy Hacking into This Account
PHP Code:
|
Okay... Is there ANYONE here able to tokenize a defined string?
|
NPC Code: That should make test.string into "a b c d e f f e d c b a" once it's been run... |
I'm guessing I should learn how to use strings...
|
Thanks!!!!
Will that work if the string is set by anohter NPC? |
Quote:
Huh? Could you leave an example, Kai... I don't quite get what you say. You use too much jargon that we of lesser vocabulary and knowlegde of wording cannot quite grasp, and without use of simple examples; we are left in the dark... |
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Ah, but those who are truely intelligent know to be able to speak to the sharper and slower alike. Being obnoxious and attempting to make yourself look better than everyone else in such a way has both been admonished by those who teach English, and makes you look like an ass.
*Waits for you to come back with some witty comeback I won't understand again, so I'll just call you an ass.* Thanks Lady Midnight! That helps a lot! |
Haha, I just realized I said 'come back with some witty comeback.' Redundency is fun!
|
PHP Code:
|
Jadis:
setstring level.room1name,#a bob; tokenize #s(level.room1names); look at it and think hard. |
HAHAHAHA!!!! NICE!!!
Okay, it works now, but I want another NPC to set the string, and this NPC to recieve that string and follow through, but it doesn't seem to work. Would this work in online mode? (Please tell me if this is too confusing) |
Quote:
|
Okay, now you are an ass.
|
www.dictionary.com is our friend.
|
He was talking some coder jargon, Rogue. And nevetheless, if I am forced to use that, what he said was uneffective.
|
mommy
have you seen my mommy ?:spam:
|
Your delivery of what you said.
|
Odd... I always though you learned from mistakes... And it helps if you know th mistake...
|
| All times are GMT +2. The time now is 10:30 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.