Graal Forums

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

Dnetick 09-21-2001 03:28 AM

Grappling Hook
 
Okay, I am starting to get more into the Scripting part of Graal. But, anyway, I know 3/4s of the Commands but I just don't know how to use some of them. Anyway, I am gonna start working on a 2D type Grappling Hook like in Zelda: Link's Awaking DX. I am working on the add to inventory part which will only take me like 2 seconds. But, What this is mainly about is, I will most likely start posting updates on the script sorta. If I need help that is.

NPC Code:

// NPC made by Dnetick
///
if (playertouchsme){
set gotgrapplinghook;
toweapons Grappling Hook;
say 0;
}


Dnetick 09-21-2001 03:30 AM

That is what I have so far.

Also, I need to know the script for like making a player doing a Gani, but, since the Grappling Gani is going to make the player go left/right/up/down, I am wondering how I can make it to where if when the player is done moving to the right of the screen, while doing the gani, after it is done, the gani that is, he stays in that position.

AlexH 09-21-2001 03:31 AM

as Kai says
do NOT use flags

Brady2 09-21-2001 03:33 AM

Jadis:

Wow a grappling hook you say? And this has -only- been done.. oh lets see here.. 200 times before?

I myself have made one and therefore, everyone has.

Brady2 09-21-2001 03:34 AM

Quote:

Originally posted by AlexH
as Kai says
do NOT use flags

Jadis:

And why not use flags? They're perfectly fine for getting the weapon to be part of a quest. You could set a string, but that'd really be pointless and less-efficient.

AlexH 09-21-2001 03:34 AM

lol
hes only learning
thats how you learn
you see something you like
you make it YOURSELF
then you advance on from there

AlexH 09-21-2001 03:35 AM

Quote:

Originally posted by Brady2


Jadis:

And why not use flags? They're perfectly fine for getting the weapon to be part of a quest. You could set a string, but that'd really be pointless and less-efficient.

yes thats what i thought
but i asked Kai why he was so anti-flags and he said they sometimes dont set and unset online

Brady2 09-21-2001 03:36 AM

Jadis:

Quote:

lol
hes only learning
thats how you learn
you see something you like
you make it YOURSELF
then you advance on from there
And I have no problem with that, but why post it here?

JeffTL 09-21-2001 03:37 AM

I have an idea for a grapple hook...just a crude one mind you. Oughta do it.

Brady2 09-21-2001 03:37 AM

Jadis:

I need to stop posting so fast, but he is right about that; however, I see no other way to do something. hasweapon() could work, but oh well flags are fine for me.

AlexH 09-21-2001 03:37 AM

you have no problem with what

Dnetick 09-21-2001 03:44 AM

I will just start out easy I guess. I will start out small.

Merlin 09-21-2001 04:21 AM

PHP Code:

if (playertouchsme) {toweapons Hook-Shot;
set client.gothookshot;
say2 
 You got the hookshot
!;


then when you do the if weaponfired
PHP Code:

if (weaponfired) {
if (
client.gothookshot) {
action;
}


this way you can avoid rcs giving themselves weapons and possible trainers etc

Dnetick 09-21-2001 07:40 AM

Thanks Merlin!

CyanideSR71 09-21-2001 11:31 PM

Hmmm... There were about 5 hookshots/grappling hooks made in Graal already. Why don't you try to find one of them, and study how it was made? Personally, I'd find XDaKreepX's, upon my memory, it would be fairly easy to follow.

Death_Link 09-22-2001 02:06 AM

ur a damn voilent for a monkey

SSj_Link 09-22-2001 03:33 AM

Lol!
 
Quote:

quote:
--------------------------------------------------------------------------------
Originally posted by CyanideSR71
Hmmm... There were about 5 hookshots/grappling hooks made in Graal already. Why don't you try to find one of them, and study how it was made? Personally, I'd find XDaKreepX's, upon my memory, it would be fairly easy to follow.
--------------------------------------------------------------------------------



*hits Cyanide*

No! That is not the way to learn
Lmao, Just pull a delteria and steal it :D

-Freaky Carnie-

CyanideSR71 09-22-2001 04:22 AM

Haven't you ever heard of learning by example, Kai?

Merlin 09-22-2001 07:09 AM

i think the way nai is doing it is good starting small as you learn more things you progress

CyanideSR71 09-22-2001 10:06 AM

I don't know... Newton thought watching the apple fall to the ground was a whole lot easier than making some crackpot theory...

SSj_Link 09-22-2001 08:49 PM

hmmm
 
Quote:

Originally posted by Kaimetsu


Your analogy is poor. If we reapplied it to our situation then him seeing the apple would translate to Nai seeing a grappling hook and seeking to reproduce it. If he wants to benefit then he has to do what Newton did - do it himself.



So Nai should drop an apple :D
but seriously, Nai, just get one of the hookshot scripts and look over it to figure out how it works,second ignore Kaimetsu the hateful monkey,


Happy Scripting

-FrEaKy CaRnIe-

SSj_Link 09-22-2001 09:08 PM

Re: Re: hmmm
 
Quote:

Originally posted by Kaimetsu


Hello? I'm trying to give him some advice and I'm one of the most qualified people to do so. Learning from somebody else's script before you've even tried it yourself is *****ic.


you are qualified,but, its not *****ic its just fine, as long as your not stealing the script

SSj_Link 09-22-2001 09:13 PM

Re: Re: Re: Re: hmmm
 
Quote:

Originally posted by Kaimetsu


Wrong. You don't learn if you don't try.

True, but, Maybe he already did try, and now he should look at one of them to see how he screwed up

Merlin 09-22-2001 11:50 PM

nai is doing it fine as it is let him do it little by little as he learns more.

CyanideSR71 09-23-2001 05:13 AM

Kai, this way may have worked fine for you, but it's a lot harder for people who lack the way of thinking you were blessed with. Some people can't even learn that way, so please don't shun any other way then yours.

CyanideSR71 09-23-2001 06:15 AM

Ah, but there is trial and error in that, for he has to figure out what part of the script does what in order for anything to work. By understanding what part does what, he has to learn anyway, but at a faster pace. Besides, trial and error may leave you doing something that is very inefficient and pretty pointless.

CyanideSR71 09-23-2001 06:22 AM

It did for me.

SSj_Link 09-24-2001 08:02 AM

Kai, I respect you, but, anyway of learning is fine, as long as your not learning from Ice Pick:D
But let him pick his way, he might become better than you
lmao


-Freaky Carnie-

Brady2 09-24-2001 08:12 AM

Jadis:

I learned by examples to learn the basic "program execution"
Before "Gscript" I hadn't the slightest about -any- programming language. Once I got the basics, I.E. understood rupees+=3; and junk like that I just started trial and error. Probably because when I was learning the best example of a good NPC was the beer npc which slid across a bar.

CyanideSR71 09-24-2001 08:27 AM

Hey! I made that! =P

CyanideSR71 09-24-2001 10:26 AM

Ever thought that different people might have different ways of doing things, and that some people learn to accept that they are different? (No, I'm not some stupid tree-hugging hipee.)

Death_Link 09-25-2001 04:15 AM

Dudes this thread is getting way outa hand. And Kiametsu jus coz ur a good scripter dont mean ur in charge of the law of gravity or even ways of learning to script so put a sock in it man!

hmmm...... now where were we?

Merlin 09-25-2001 04:23 AM

Quote:

Originally posted by Death_Link
Dudes this thread is getting way outa hand. And Kiametsu jus coz ur a good scripter dont mean ur in charge of the law of gravity or even ways of learning to script so put a sock in it man!

hmmm...... now where were we?

i don't think you were anywhere.
on a public forum there will be alterications, guy!


All times are GMT +2. The time now is 11:51 PM.

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