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 09-05-2001, 02:25 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Question tokenizing and setting em ...

Can someone please explain to me how tokenizing works and how to use em ?
Reply With Quote
  #2  
Old 09-06-2001, 04:08 AM
entravial entravial is offline
Registered User
entravial's Avatar
Join Date: Mar 2001
Posts: 825
entravial is on a distinguished road
Send a message via ICQ to entravial Send a message via AIM to entravial Send a message via Yahoo to entravial
~AlphaFlame~

Tokenizing works by splitting what you say into tokens which can be read using #t(index)... take this for instance...

tokenize I am a bear;

would give you these tokens
#t(0) I
#t(1) am
#t(2) a
#t(3) bear

But, if you should do...

tokenize "I am" a bear;

you would get these tokens

#t(0) I am
#t(1) a
#t(2) bear

Since anything in " " is read as one token

Now that I've explained, all that's left is for Kaimetsu to swing by, say "I wouldn't have used those words, but I'm sure it's harmless enough", and then elabricate a bit.
__________________


If the post says ~AlphaFlame~, that's who's posting. If not, it's Entravial (owner)
Reply With Quote
  #3  
Old 09-06-2001, 05:20 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
in my spying script i used toeknize but the problem was it glitched out whenever your nick contained " or your chat contained "
Reply With Quote
  #4  
Old 09-06-2001, 05:32 AM
entravial entravial is offline
Registered User
entravial's Avatar
Join Date: Mar 2001
Posts: 825
entravial is on a distinguished road
Send a message via ICQ to entravial Send a message via AIM to entravial Send a message via Yahoo to entravial
Hmm... how was it scripted? I might be able to help... I'm no Kaimetsu by far, but at least I'm willing to help *cough*

[edit] Just tested the tokenize to be sure... the "s don't mess up tokenize in #c or #n...[/edit]
__________________


If the post says ~AlphaFlame~, that's who's posting. If not, it's Entravial (owner)

Last edited by entravial; 09-06-2001 at 05:36 AM..
Reply With Quote
  #5  
Old 09-06-2001, 06:06 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
it was like
setstring server.account,"#c" "#n" "#3" and so on
Reply With Quote
  #6  
Old 09-06-2001, 06:20 AM
entravial entravial is offline
Registered User
entravial's Avatar
Join Date: Mar 2001
Posts: 825
entravial is on a distinguished road
Send a message via ICQ to entravial Send a message via AIM to entravial Send a message via Yahoo to entravial
*sits there a moment*

... take out the "s...
__________________


If the post says ~AlphaFlame~, that's who's posting. If not, it's Entravial (owner)
Reply With Quote
  #7  
Old 09-06-2001, 07:28 AM
ownerofbabylon ownerofbabylon is offline
Lord Helmut
ownerofbabylon's Avatar
Join Date: Jun 2001
Location: Gainesville FL
Posts: 1,763
ownerofbabylon is on a distinguished road
Send a message via ICQ to ownerofbabylon Send a message via AIM to ownerofbabylon
wow entravial, that helped me a lot. Someone explained tokenize to me and made me wanna jump out a window. The only thing im wondering is what is it good for?
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #8  
Old 09-06-2001, 04:51 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
thanx

thanx entravial
Reply With Quote
  #9  
Old 09-07-2001, 03:06 AM
entravial entravial is offline
Registered User
entravial's Avatar
Join Date: Mar 2001
Posts: 825
entravial is on a distinguished road
Send a message via ICQ to entravial Send a message via AIM to entravial Send a message via Yahoo to entravial
"What is triggeraction" is most certainly a valid question.

It's not like he asked me to script out a gargantous bugger using it.

Gah I forgot to put ~AlphaFlame~ at the top of my posts Oh well...
__________________


If the post says ~AlphaFlame~, that's who's posting. If not, it's Entravial (owner)
Reply With Quote
  #10  
Old 09-07-2001, 09:42 AM
ArmadeusWarlock ArmadeusWarlock is offline
Registered User
Join Date: Jun 2001
Posts: 373
ArmadeusWarlock is on a distinguished road
Just wondering

Triggeraction can be used to affect other players and npcs right?
Reply With Quote
  #11  
Old 09-08-2001, 02:46 PM
entravial entravial is offline
Registered User
entravial's Avatar
Join Date: Mar 2001
Posts: 825
entravial is on a distinguished road
Send a message via ICQ to entravial Send a message via AIM to entravial Send a message via Yahoo to entravial
-- THE REAL AND ORIGINAL ENTRAVIAL --

I liek geting credits for waht alphaflame does
__________________


If the post says ~AlphaFlame~, that's who's posting. If not, it's Entravial (owner)
Reply With Quote
  #12  
Old 09-09-2001, 03:28 AM
entravial entravial is offline
Registered User
entravial's Avatar
Join Date: Mar 2001
Posts: 825
entravial is on a distinguished road
Send a message via ICQ to entravial Send a message via AIM to entravial Send a message via Yahoo to entravial
~AlphaFlame~

*whallops Entravial upside the head* Ok, shush you.

Kaimetsu, for new scripters, commands.rtf and newfeatures.txt doesn't make exactly that much sense. Therefore, they come to this forum and ask what it is in hope that somebody can explain it where they can understand it.
__________________


If the post says ~AlphaFlame~, that's who's posting. If not, it's Entravial (owner)
Reply With Quote
  #13  
Old 09-09-2001, 04:48 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
How could they NOT make sense
WTF is evryone thinking!
__________________
Do it with a DON!
Reply With Quote
  #14  
Old 09-09-2001, 05:27 AM
entravial entravial is offline
Registered User
entravial's Avatar
Join Date: Mar 2001
Posts: 825
entravial is on a distinguished road
Send a message via ICQ to entravial Send a message via AIM to entravial Send a message via Yahoo to entravial
~AlphaFlame~

Hey, I remember when I was a COMPLETE newbie to scripting and was reading newfeatures.txt and the commands.rtf... half of them left me saying "What the living hell..."

Pssh, I couldn't even make a beer when I started
__________________


If the post says ~AlphaFlame~, that's who's posting. If not, it's Entravial (owner)
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 11:27 PM.


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