Graal Forums

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

AlexH 09-26-2001 05:27 AM

Help plz
 
Im trying to improve my scripting skills and im trying to understand how triggeraction and tokenzine work

could someone plz explain how they work for me

AlexH 09-26-2001 05:36 AM

anyone?

AlexH 09-26-2001 05:42 AM

to be honest i couldnt really be bothered looking through a bunch of threads :rolleyes:

LiquidIce00 09-26-2001 05:50 AM

goto search and type *triggeraction*
with the starts

AlexH 09-26-2001 05:51 AM

yip
cause i mean
these boards have been running a long time
if i had to look through them all it would take a hell of a long time

AlexH 09-26-2001 05:59 AM

Quote:

Originally posted by Kaimetsu


Not if you used a search. There'd only be a few threads.

yea i done that
there was only a few threads
some were helpfull
but others were completly irrelevent

AlexH 09-26-2001 06:04 AM

i didnt say they didnt help
some did
but some i just have no idea how the search even found them

LiquidIce00 09-26-2001 08:30 AM

do *triggeraction*
if u do triggeraction as search term it wont have as many as *triggeraction*
also refer to the newfeatures txt file it tells u in there too

Falcor 09-26-2001 08:55 AM

Mini Tutorial I made for Triggeraction

Merlin 09-27-2001 02:40 AM

i was typing this up last night but i had to go so ill do it again

tokenize is used to break what the player says up into peaces word for word also known as "tokens"

so if the player says

hi i am merlin

the tokens would be:

hi = 0
i = 1
am = 2
merlin = 3

so to script it..
if (playerchats) {
tokenize #c;
if (tokenscount==3) { //checking if the amount of words = 3 (actualy four since it starts at 0)
setstring client.one,#t(0); //setting the string "client.one=" to = the first word said in the phrase (first token) so it would be client.one=hi if i were to say "hi i am merlin"
}
}

that's basicly it.

Rone 09-27-2001 03:15 AM

www.graalclassic.com and look in the script books


All times are GMT +2. The time now is 09:45 PM.

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