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-07-2001, 02:30 AM
mystic_pheonix mystic_pheonix is offline
Registered User
Join Date: Mar 2001
Location: Dunno
Posts: 123
mystic_pheonix is on a distinguished road
Send a message via AIM to mystic_pheonix Send a message via Yahoo to mystic_pheonix
Help with tokenize

can someone tell me whats wrong with this?

if (playertouchsme) {
toweapons Warper;
}
if (playerchats) {
if(startswith(warpto,#c)) {
tokenize #c;
setlevel2 #t(3).graal,#t(1),#t(2);
}
}

it keeps comming up with errors
__________________
Justin
Reply With Quote
  #2  
Old 08-07-2001, 02:48 AM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
try isweapon before all of that beside the toweapon and touch me
Reply With Quote
  #3  
Old 08-07-2001, 02:49 AM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
BTW nice idea
Reply With Quote
  #4  
Old 08-07-2001, 02:51 AM
mystic_pheonix mystic_pheonix is offline
Registered User
Join Date: Mar 2001
Location: Dunno
Posts: 123
mystic_pheonix is on a distinguished road
Send a message via AIM to mystic_pheonix Send a message via Yahoo to mystic_pheonix
the #t(2) is the error, but why?
__________________
Justin
Reply With Quote
  #5  
Old 08-07-2001, 02:53 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
try this:
NPC Code:
if (playertouchsme) { 
toweapons Warper;
}
if (playerchats) {
if(startswith(warpto,#c)) {
setlevel #e(7,-1,#c).graal;
}
else if(startswith(setx,#c)) {
playerx=strtofloat(#e(5,-1,#c));
}
else if(startswith(sety,#c)) {
playery=strtofloat(#e(5,-1,#c));
}
}


__________________
Do it with a DON!
Reply With Quote
  #6  
Old 08-07-2001, 02:55 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
toekns are string-bassed

try

setlevel2 #t(3).graal,strtofloat(#t(1)),strtofloat(#t(2));
__________________

subliminal message: 1+1=3
Reply With Quote
  #7  
Old 08-07-2001, 02:55 AM
mystic_pheonix mystic_pheonix is offline
Registered User
Join Date: Mar 2001
Location: Dunno
Posts: 123
mystic_pheonix is on a distinguished road
Send a message via AIM to mystic_pheonix Send a message via Yahoo to mystic_pheonix
i dont want to have to say setx and sety
__________________
Justin
Reply With Quote
  #8  
Old 08-07-2001, 02:58 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 mystic_pheonix
i dont want to have to say setx and sety
oh well it sucks for you then
__________________
Do it with a DON!
Reply With Quote
  #9  
Old 08-07-2001, 03:00 AM
mystic_pheonix mystic_pheonix is offline
Registered User
Join Date: Mar 2001
Location: Dunno
Posts: 123
mystic_pheonix is on a distinguished road
Send a message via AIM to mystic_pheonix Send a message via Yahoo to mystic_pheonix
thx falcor!
__________________
Justin
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 12:16 AM.


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