Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-05-2001, 07:30 AM
MrCoolDude MrCoolDude is offline
Registered User
Join Date: Jul 2001
Posts: 74
MrCoolDude is on a distinguished road
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
__________________
Mista Neat
Reply With Quote
  #2  
Old 08-05-2001, 08:11 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
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;
__________________

subliminal message: 1+1=3
Reply With Quote
  #3  
Old 08-05-2001, 08:14 AM
MrCoolDude MrCoolDude is offline
Registered User
Join Date: Jul 2001
Posts: 74
MrCoolDude is on a distinguished road
ok thanx
__________________
Mista Neat
Reply With Quote
  #4  
Old 08-05-2001, 08:16 AM
MrCoolDude MrCoolDude is offline
Registered User
Join Date: Jul 2001
Posts: 74
MrCoolDude is on a distinguished road
And I can never get the updateboard command to work for some reason.
__________________
Mista Neat
Reply With Quote
  #5  
Old 08-05-2001, 08:57 AM
MrCoolDude MrCoolDude is offline
Registered User
Join Date: Jul 2001
Posts: 74
MrCoolDude is on a distinguished road
Nevermind...I got updateboard to work.
__________________
Mista Neat
Reply With Quote
  #6  
Old 08-05-2001, 09:00 AM
Lionel-Jonson Lionel-Jonson is offline
Fly away on my zephyr
Join Date: Jul 2001
Location: Never
Posts: 2,798
Lionel-Jonson is on a distinguished road
Send a message via ICQ to Lionel-Jonson Send a message via AIM to Lionel-Jonson Send a message via Yahoo to Lionel-Jonson
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!!
Reply With Quote
  #7  
Old 08-05-2001, 09:33 AM
MrCoolDude MrCoolDude is offline
Registered User
Join Date: Jul 2001
Posts: 74
MrCoolDude is on a distinguished road
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?
__________________
Mista Neat
Reply With Quote
  #8  
Old 08-05-2001, 11:56 AM
General General is offline
Banned
Join Date: Apr 2001
Location: Station Square
Posts: 984
General is on a distinguished road
Send a message via ICQ to General Send a message via AIM to General Send a message via Yahoo to General
...hmm...dunno
Reply With Quote
  #9  
Old 08-06-2001, 03:49 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Quote:
Originally posted by Falcor
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
no...
it would give you:
#t(0) = HI
#t(1) = I AM,BOB
__________________
Do it with a DON!
Reply With Quote
  #10  
Old 08-06-2001, 09:33 AM
MrCoolDude MrCoolDude is offline
Registered User
Join Date: Jul 2001
Posts: 74
MrCoolDude is on a distinguished road
Do you need a NPC-Server for tokenize to work?
__________________
Mista Neat

Last edited by MrCoolDude; 08-06-2001 at 09:56 AM..
Reply With Quote
  #11  
Old 08-06-2001, 10:18 AM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm has a spectacular aura about
nope
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
Reply With Quote
  #12  
Old 08-06-2001, 10:33 AM
MrCoolDude MrCoolDude is offline
Registered User
Join Date: Jul 2001
Posts: 74
MrCoolDude is on a distinguished road
ok
__________________
Mista Neat
Reply With Quote
  #13  
Old 08-06-2001, 11:27 PM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
Tokenize2 dilimits spaces and commas PLUSE the delimiters you specifi. I beleive thats how it works.
__________________

subliminal message: 1+1=3
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 10:33 AM.


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