Graal Forums

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

Knight_Vincent 05-26-2002 11:20 AM

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...

Knight_Vincent 05-26-2002 11:32 AM

Can you explane that better? I'm new at tokenize and stuff so i don't realy now how to use it...

Knight_Vincent 05-26-2002 11:40 AM

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.

Python523 05-26-2002 11:57 AM

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

nyghtGT 05-26-2002 12:24 PM

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...

nyghtGT 05-26-2002 12:29 PM

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?

nyghtGT 05-26-2002 12:55 PM

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...

Saga2001 05-26-2002 01:25 PM

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.

nyghtGT 05-26-2002 01:50 PM

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

Knight_Vincent 05-27-2002 05:14 AM

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?

Python523 05-27-2002 01:44 PM

but in school, you have things called math books that show examples, in gscript, you have things called commands.rtf, newfeatures2001.txt, newfeatures2002,txt

BBflat 05-27-2002 11:26 PM

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.

nyghtGT 05-28-2002 12:00 AM

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...

BBflat 05-28-2002 12:27 AM

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.

Knight_Vincent 05-28-2002 08:32 AM

Fuuny thing is, all I asked for was and example and a explination, not a script, you people jumo to conclusion way to fast.

Knight_Vincent 05-29-2002 02:53 AM

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.

Falcor 05-29-2002 03:08 AM

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.

Knight_Vincent 05-29-2002 03:12 AM

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.

azuretek23 05-30-2002 01:22 AM

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...

azuretek23 05-30-2002 05:52 AM

oh yea I used strequals before

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

or am I wrong yet again :)


All times are GMT +2. The time now is 07:06 AM.

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