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 05-26-2002, 11:20 AM
Knight_Vincent Knight_Vincent is offline
Registered User
Knight_Vincent's Avatar
Join Date: Aug 2001
Location: Troy, MI
Posts: 682
Knight_Vincent is on a distinguished road
Send a message via ICQ to Knight_Vincent Send a message via AIM to Knight_Vincent Send a message via Yahoo to Knight_Vincent
Help

How can I make it realize what body.head the player is asking for and give it to them without writing a scrip that has each and every line of code dedicated to one head/body...
__________________
"Did you write the Book of Love And do you have faith in God above If the Bible tells you so Do you believe in rock 'n roll Can music save your mortal soul And can you teach me how to dance real slow Well, I know that you're in love with him 'Cause I saw you dancin' in the gym You both kicked off your shoes Man, I dig those rhythm and blues I was a lonely teenage broncin' buck With a pink carnation and a pickup truck But I knew I was out of luck The day the music died" --Don McLean 'American Pie'
Reply With Quote
  #2  
Old 05-26-2002, 11:32 AM
Knight_Vincent Knight_Vincent is offline
Registered User
Knight_Vincent's Avatar
Join Date: Aug 2001
Location: Troy, MI
Posts: 682
Knight_Vincent is on a distinguished road
Send a message via ICQ to Knight_Vincent Send a message via AIM to Knight_Vincent Send a message via Yahoo to Knight_Vincent
Can you explane that better? I'm new at tokenize and stuff so i don't realy now how to use it...
__________________
"Did you write the Book of Love And do you have faith in God above If the Bible tells you so Do you believe in rock 'n roll Can music save your mortal soul And can you teach me how to dance real slow Well, I know that you're in love with him 'Cause I saw you dancin' in the gym You both kicked off your shoes Man, I dig those rhythm and blues I was a lonely teenage broncin' buck With a pink carnation and a pickup truck But I knew I was out of luck The day the music died" --Don McLean 'American Pie'
Reply With Quote
  #3  
Old 05-26-2002, 11:40 AM
Knight_Vincent Knight_Vincent is offline
Registered User
Knight_Vincent's Avatar
Join Date: Aug 2001
Location: Troy, MI
Posts: 682
Knight_Vincent is on a distinguished road
Send a message via ICQ to Knight_Vincent Send a message via AIM to Knight_Vincent Send a message via Yahoo to Knight_Vincent
Kaim, I never asked you to give it to me, I said 'explane', also, I have been looking in their and it did not help.

Thank you Nyght for explaning it.
__________________
"Did you write the Book of Love And do you have faith in God above If the Bible tells you so Do you believe in rock 'n roll Can music save your mortal soul And can you teach me how to dance real slow Well, I know that you're in love with him 'Cause I saw you dancin' in the gym You both kicked off your shoes Man, I dig those rhythm and blues I was a lonely teenage broncin' buck With a pink carnation and a pickup truck But I knew I was out of luck The day the music died" --Don McLean 'American Pie'
Reply With Quote
  #4  
Old 05-26-2002, 11:57 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally posted by Knight_Vincent
Kaim, I never asked you to give it to me, I said 'explane', also, I have been looking in their and it did not help.

Thank you Nyght for explaning it.
*explain
and #e isn't much difficult, just look it up in the commands.rtf
Reply With Quote
  #5  
Old 05-26-2002, 12:24 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
Quote:
Originally posted by Kaimetsu
Gah, will people not just come along and post complete scripts?
I showed him how it would work!

Not the whole complete script with everthing...
I even explained each command as well.

WTF is your problem lately? Your like 'delete post happy' all of a sudden...
Reply With Quote
  #6  
Old 05-26-2002, 12:29 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
Quote:
Originally posted by Kaimetsu


?

I've deleted a few of your posts because you've tended to double-post quite often, but that's about it.
So in this one I double posted explaining information about a script?
Reply With Quote
  #7  
Old 05-26-2002, 12:55 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
Quote:
Originally posted by Kaimetsu


No, in this one you encouraged the practice of simply asking for scripts without bothering to learn how to make them.
But what I posted showed him how it worked therfore he may have learned something...
Reply With Quote
  #8  
Old 05-26-2002, 01:25 PM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Well I'll learn you a bit...
#e(start, lenght, string).
if the length is -1 it goes to the end of the string.
like:
#e(5, -1, #c).
if ths player said "kill PastAustin"
#e(5, -1, #c). would equal PastAustin.
its not hard...
Tokenize would work just as well. However I will not hand it on a plate either.
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #9  
Old 05-26-2002, 01:50 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
tokenize is easy:

tokenize string;

so:
if i say, "Nyght Is Awesome"
and use...
tokenize #c;

the follwoing tokens would be made:
#t(0) = Nyght
#t(1) = Is
#t(2) = Awesome
Reply With Quote
  #10  
Old 05-27-2002, 05:14 AM
Knight_Vincent Knight_Vincent is offline
Registered User
Knight_Vincent's Avatar
Join Date: Aug 2001
Location: Troy, MI
Posts: 682
Knight_Vincent is on a distinguished road
Send a message via ICQ to Knight_Vincent Send a message via AIM to Knight_Vincent Send a message via Yahoo to Knight_Vincent
Kaimetsu, do you have no idea on how learning works? I'll give a school example, if they were to give you a problem, they first show you how to do it and then usely give a example. They just do go, oh, use dividing to do it becuse how would use USE dividing if you didn't know what it was? I'm guessing that you arn't one that spends time helping and/or teaching others are you?
__________________
"Did you write the Book of Love And do you have faith in God above If the Bible tells you so Do you believe in rock 'n roll Can music save your mortal soul And can you teach me how to dance real slow Well, I know that you're in love with him 'Cause I saw you dancin' in the gym You both kicked off your shoes Man, I dig those rhythm and blues I was a lonely teenage broncin' buck With a pink carnation and a pickup truck But I knew I was out of luck The day the music died" --Don McLean 'American Pie'
Reply With Quote
  #11  
Old 05-27-2002, 01:44 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
but in school, you have things called math books that show examples, in gscript, you have things called commands.rtf, newfeatures2001.txt, newfeatures2002,txt
Reply With Quote
  #12  
Old 05-27-2002, 11:26 PM
BBflat BBflat is offline
Registered User
BBflat's Avatar
Join Date: Apr 2002
Location: United States of America
Posts: 573
BBflat is on a distinguished road
Grr... You will learn a LOT more effectively if someone tells you how different functions work and then let you figure it out rather than giving you the script and explaining it. If they have to figure out how to piece things together on their own, they will learn and remember it a LOT better.
__________________
I am a .sig virus. Please put me in your .sig so I can continue to replicate.
Reply With Quote
  #13  
Old 05-28-2002, 12:00 AM
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
Quote:
Originally posted by BBflat
Grr... You will learn a LOT more effectively if someone tells you how different functions work and then let you figure it out rather than giving you the script and explaining it. If they have to figure out how to piece things together on their own, they will learn and remember it a LOT better.
You won't win this arguement, just contact me on AIM if you need some help...
Reply With Quote
  #14  
Old 05-28-2002, 12:27 AM
BBflat BBflat is offline
Registered User
BBflat's Avatar
Join Date: Apr 2002
Location: United States of America
Posts: 573
BBflat is on a distinguished road
Quote:
Originally posted by nyghtGT

You won't win this arguement, just contact me on AIM if you need some help...
I'm not here to win, I'm here to share my opinion.
__________________
I am a .sig virus. Please put me in your .sig so I can continue to replicate.
Reply With Quote
  #15  
Old 05-28-2002, 08:32 AM
Knight_Vincent Knight_Vincent is offline
Registered User
Knight_Vincent's Avatar
Join Date: Aug 2001
Location: Troy, MI
Posts: 682
Knight_Vincent is on a distinguished road
Send a message via ICQ to Knight_Vincent Send a message via AIM to Knight_Vincent Send a message via Yahoo to Knight_Vincent
Fuuny thing is, all I asked for was and example and a explination, not a script, you people jumo to conclusion way to fast.
__________________
"Did you write the Book of Love And do you have faith in God above If the Bible tells you so Do you believe in rock 'n roll Can music save your mortal soul And can you teach me how to dance real slow Well, I know that you're in love with him 'Cause I saw you dancin' in the gym You both kicked off your shoes Man, I dig those rhythm and blues I was a lonely teenage broncin' buck With a pink carnation and a pickup truck But I knew I was out of luck The day the music died" --Don McLean 'American Pie'
Reply With Quote
  #16  
Old 05-29-2002, 02:53 AM
Knight_Vincent Knight_Vincent is offline
Registered User
Knight_Vincent's Avatar
Join Date: Aug 2001
Location: Troy, MI
Posts: 682
Knight_Vincent is on a distinguished road
Send a message via ICQ to Knight_Vincent Send a message via AIM to Knight_Vincent Send a message via Yahoo to Knight_Vincent
How was saying that you wont hand it to me on silver plater rational when I never asked for that in the first place. I ask for a explination, I have never used tokensize before.
__________________
"Did you write the Book of Love And do you have faith in God above If the Bible tells you so Do you believe in rock 'n roll Can music save your mortal soul And can you teach me how to dance real slow Well, I know that you're in love with him 'Cause I saw you dancin' in the gym You both kicked off your shoes Man, I dig those rhythm and blues I was a lonely teenage broncin' buck With a pink carnation and a pickup truck But I knew I was out of luck The day the music died" --Don McLean 'American Pie'
Reply With Quote
  #17  
Old 05-29-2002, 03:08 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
Life doesn't always hand you answers on a silver platter. Learn it for yourself. Ultimitly it will help you more than someone sticking a silver spoon in your mouth every time you are confused.
__________________

subliminal message: 1+1=3
Reply With Quote
  #18  
Old 05-29-2002, 03:12 AM
Knight_Vincent Knight_Vincent is offline
Registered User
Knight_Vincent's Avatar
Join Date: Aug 2001
Location: Troy, MI
Posts: 682
Knight_Vincent is on a distinguished road
Send a message via ICQ to Knight_Vincent Send a message via AIM to Knight_Vincent Send a message via Yahoo to Knight_Vincent
You people don't get it do you? I never asked for anything of that sort... I wanted a explination on how one would use that, and in life they do explane things like that, I say, this thread should end NOW.
__________________
"Did you write the Book of Love And do you have faith in God above If the Bible tells you so Do you believe in rock 'n roll Can music save your mortal soul And can you teach me how to dance real slow Well, I know that you're in love with him 'Cause I saw you dancin' in the gym You both kicked off your shoes Man, I dig those rhythm and blues I was a lonely teenage broncin' buck With a pink carnation and a pickup truck But I knew I was out of luck The day the music died" --Don McLean 'American Pie'
Reply With Quote
  #19  
Old 05-30-2002, 01:22 AM
azuretek23 azuretek23 is offline
Registered User
azuretek23's Avatar
Join Date: May 2002
Location: Phoenix, AZ
Posts: 516
azuretek23 is on a distinguished road
Send a message via ICQ to azuretek23 Send a message via AIM to azuretek23
you people are crazy... he isnt allowed to explain things? nevermind I guess it dosent matter....

while I am here I might as well learn..

ok so like an if statment would be made with tokensize like...

if (#t(3,awsome)) {
blah;
}

somethin like that? or am I off completley...
Reply With Quote
  #20  
Old 05-30-2002, 05:52 AM
azuretek23 azuretek23 is offline
Registered User
azuretek23's Avatar
Join Date: May 2002
Location: Phoenix, AZ
Posts: 516
azuretek23 is on a distinguished road
Send a message via ICQ to azuretek23 Send a message via AIM to azuretek23
oh yea I used strequals before

its like
if (strequals(#t(3),awsome)) {
blah stuff;
}

or am I wrong yet again
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 04:17 PM.


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