![]() |
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 |
anyone?
|
to be honest i couldnt really be bothered looking through a bunch of threads :rolleyes:
|
goto search and type *triggeraction*
with the starts |
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 |
Quote:
there was only a few threads some were helpfull but others were completly irrelevent |
i didnt say they didnt help
some did but some i just have no idea how the search even found them |
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 |
|
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. |
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.