![]() |
Tokenize and tiles
Could someone explain what these commands do and how to use them?
tokenize str; tokenize2 delims,str; Also, is there a easy way to change a tile at a certain x & y with a different tile? Thanx |
Tokenize str will break a string into toekns based on Spaces and Commas
so tokenize HI I,AM BOB; will give you #t(0) = HI #t(1) = I #t(2) = AM #t(3) = BOB Tokenize 2 will let you add more conditions fore tokens so tokenize2 +,HI+I AM,BOB; will give you #t(0) = HI #t(1) = I #t(2) = AM #t(3) = BOB Since You Delimited the Plus also board[x+64*y] = boardx+boardy*16; It think thats the syntax for editing. Dont forget to UPDATEBOARD X,Y,WIDTH,HEIGHT; |
ok thanx
|
And I can never get the updateboard command to work for some reason.
|
Nevermind...I got updateboard to work.
|
Opening your eyes and taking everything you see, look at all the colors; yellow blue and green! We can take airplanes and fly around the globe!!
|
Ok...one last question.
I've heard that tile changes are local...such as the constructor npc on unholy nations. How would I make the changes visible to everyone? Would I use a timeout? |
...hmm...dunno
|
Quote:
it would give you: #t(0) = HI #t(1) = I AM,BOB |
Do you need a NPC-Server for tokenize to work?
|
nope
|
ok
|
Tokenize2 dilimits spaces and commas PLUSE the delimiters you specifi. I beleive thats how it works.
|
| All times are GMT +2. The time now is 08:06 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.