Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-21-2001, 03:28 AM
Dnetick Dnetick is offline
Registered User
Join Date: Sep 2001
Location: USA
Posts: 136
Dnetick is on a distinguished road
Send a message via AIM to Dnetick
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;
}

__________________
- dmjof
- Fortara 1.28: 192.168.200.2
- Fortara 1.28: 14900
- Fortara 1.28 Guest:
guest:guest
email: [email protected]
aim: dmjof
PW Owner: Fortara
PW Site: http://froggyfun.freewebsites.com/findex.html
Reply With Quote
  #2  
Old 09-21-2001, 03:30 AM
Dnetick Dnetick is offline
Registered User
Join Date: Sep 2001
Location: USA
Posts: 136
Dnetick is on a distinguished road
Send a message via AIM to Dnetick
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.
__________________
- dmjof
- Fortara 1.28: 192.168.200.2
- Fortara 1.28: 14900
- Fortara 1.28 Guest:
guest:guest
email: [email protected]
aim: dmjof
PW Owner: Fortara
PW Site: http://froggyfun.freewebsites.com/findex.html

Last edited by Dnetick; 09-21-2001 at 03:34 AM..
Reply With Quote
  #3  
Old 09-21-2001, 03:31 AM
AlexH AlexH is offline
Have A Drink On Me
AlexH's Avatar
Join Date: Jun 2001
Location: Somewhere In Time
Posts: 7,442
AlexH is on a distinguished road
Send a message via AIM to AlexH Send a message via MSN to AlexH
as Kai says
do NOT use flags
__________________
QUICK LOOK BUSY JESUS IS COMING!
Reply With Quote
  #4  
Old 09-21-2001, 03:33 AM
Brady2 Brady2 is offline
Registered User
Brady2's Avatar
Join Date: Mar 2001
Location: Phoenix, AZ and Wichita Falls, TX
Posts: 924
Brady2 is on a distinguished road
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.
Reply With Quote
  #5  
Old 09-21-2001, 03:34 AM
Brady2 Brady2 is offline
Registered User
Brady2's Avatar
Join Date: Mar 2001
Location: Phoenix, AZ and Wichita Falls, TX
Posts: 924
Brady2 is on a distinguished road
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.
Reply With Quote
  #6  
Old 09-21-2001, 03:34 AM
AlexH AlexH is offline
Have A Drink On Me
AlexH's Avatar
Join Date: Jun 2001
Location: Somewhere In Time
Posts: 7,442
AlexH is on a distinguished road
Send a message via AIM to AlexH Send a message via MSN to AlexH
lol
hes only learning
thats how you learn
you see something you like
you make it YOURSELF
then you advance on from there
__________________
QUICK LOOK BUSY JESUS IS COMING!
Reply With Quote
  #7  
Old 09-21-2001, 03:35 AM
AlexH AlexH is offline
Have A Drink On Me
AlexH's Avatar
Join Date: Jun 2001
Location: Somewhere In Time
Posts: 7,442
AlexH is on a distinguished road
Send a message via AIM to AlexH Send a message via MSN to AlexH
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
__________________
QUICK LOOK BUSY JESUS IS COMING!
Reply With Quote
  #8  
Old 09-21-2001, 03:36 AM
Brady2 Brady2 is offline
Registered User
Brady2's Avatar
Join Date: Mar 2001
Location: Phoenix, AZ and Wichita Falls, TX
Posts: 924
Brady2 is on a distinguished road
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?

Last edited by Brady2; 09-21-2001 at 03:39 AM..
Reply With Quote
  #9  
Old 09-21-2001, 03:37 AM
JeffTL JeffTL is offline
Registered User
Join Date: Sep 2001
Posts: 374
JeffTL is on a distinguished road
I have an idea for a grapple hook...just a crude one mind you. Oughta do it.
__________________
Reply With Quote
  #10  
Old 09-21-2001, 03:37 AM
Brady2 Brady2 is offline
Registered User
Brady2's Avatar
Join Date: Mar 2001
Location: Phoenix, AZ and Wichita Falls, TX
Posts: 924
Brady2 is on a distinguished road
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.
Reply With Quote
  #11  
Old 09-21-2001, 03:37 AM
AlexH AlexH is offline
Have A Drink On Me
AlexH's Avatar
Join Date: Jun 2001
Location: Somewhere In Time
Posts: 7,442
AlexH is on a distinguished road
Send a message via AIM to AlexH Send a message via MSN to AlexH
you have no problem with what
__________________
QUICK LOOK BUSY JESUS IS COMING!
Reply With Quote
  #12  
Old 09-21-2001, 03:44 AM
Dnetick Dnetick is offline
Registered User
Join Date: Sep 2001
Location: USA
Posts: 136
Dnetick is on a distinguished road
Send a message via AIM to Dnetick
I will just start out easy I guess. I will start out small.
__________________
- dmjof
- Fortara 1.28: 192.168.200.2
- Fortara 1.28: 14900
- Fortara 1.28 Guest:
guest:guest
email: [email protected]
aim: dmjof
PW Owner: Fortara
PW Site: http://froggyfun.freewebsites.com/findex.html
Reply With Quote
  #13  
Old 09-21-2001, 04:21 AM
Merlin Merlin is offline
Banned
Merlin's Avatar
Join Date: Jul 2001
Location: Merlin - U S A Malak - United Kingdom
Posts: 2,543
Merlin is on a distinguished road
Send a message via ICQ to Merlin Send a message via AIM to Merlin
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
Reply With Quote
  #14  
Old 09-21-2001, 07:40 AM
Dnetick Dnetick is offline
Registered User
Join Date: Sep 2001
Location: USA
Posts: 136
Dnetick is on a distinguished road
Send a message via AIM to Dnetick
Thanks Merlin!
__________________
- dmjof
- Fortara 1.28: 192.168.200.2
- Fortara 1.28: 14900
- Fortara 1.28 Guest:
guest:guest
email: [email protected]
aim: dmjof
PW Owner: Fortara
PW Site: http://froggyfun.freewebsites.com/findex.html
Reply With Quote
  #15  
Old 09-21-2001, 11:31 PM
CyanideSR71 CyanideSR71 is offline
Registered User
CyanideSR71's Avatar
Join Date: Jun 2001
Location: Canada
Posts: 460
CyanideSR71 is on a distinguished road
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.
__________________
Cyanide SR71
Former Shadow Dragon
Co-Owner of what was Murasamune
Reply With Quote
  #16  
Old 09-22-2001, 02:06 AM
Death_Link Death_Link is offline
Registered User
Join Date: Aug 2001
Posts: 51
Death_Link is on a distinguished road
ur a damn voilent for a monkey
Reply With Quote
  #17  
Old 09-22-2001, 03:33 AM
SSj_Link SSj_Link is offline
Registered User
Join Date: Jul 2001
Location: i r live in texas
Posts: 244
SSj_Link is on a distinguished road
Send a message via ICQ to SSj_Link Send a message via AIM to SSj_Link
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

-Freaky Carnie-
__________________
-People with my Password: Me (Boozy), Ghostface Killa, bgraven, Freaky Carnie, Dark Warlock, and SoulReaver.
-So they can all post.-

-I hate my account name -

~Old Names: Link, Darklink, Neo, then Boozy when Bravo died. (So some people will recognize me)~

AIM: boozyneo
ICQ: 116030736
Msn: [email protected]
Email: [email protected]


-DANCE SPAM DANCE!- Dark Warlock
Reply With Quote
  #18  
Old 09-22-2001, 04:22 AM
CyanideSR71 CyanideSR71 is offline
Registered User
CyanideSR71's Avatar
Join Date: Jun 2001
Location: Canada
Posts: 460
CyanideSR71 is on a distinguished road
Haven't you ever heard of learning by example, Kai?
__________________
Cyanide SR71
Former Shadow Dragon
Co-Owner of what was Murasamune
Reply With Quote
  #19  
Old 09-22-2001, 07:09 AM
Merlin Merlin is offline
Banned
Merlin's Avatar
Join Date: Jul 2001
Location: Merlin - U S A Malak - United Kingdom
Posts: 2,543
Merlin is on a distinguished road
Send a message via ICQ to Merlin Send a message via AIM to Merlin
i think the way nai is doing it is good starting small as you learn more things you progress
Reply With Quote
  #20  
Old 09-22-2001, 10:06 AM
CyanideSR71 CyanideSR71 is offline
Registered User
CyanideSR71's Avatar
Join Date: Jun 2001
Location: Canada
Posts: 460
CyanideSR71 is on a distinguished road
I don't know... Newton thought watching the apple fall to the ground was a whole lot easier than making some crackpot theory...
__________________
Cyanide SR71
Former Shadow Dragon
Co-Owner of what was Murasamune
Reply With Quote
  #21  
Old 09-22-2001, 08:49 PM
SSj_Link SSj_Link is offline
Registered User
Join Date: Jul 2001
Location: i r live in texas
Posts: 244
SSj_Link is on a distinguished road
Send a message via ICQ to SSj_Link Send a message via AIM to SSj_Link
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
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-
__________________
-People with my Password: Me (Boozy), Ghostface Killa, bgraven, Freaky Carnie, Dark Warlock, and SoulReaver.
-So they can all post.-

-I hate my account name -

~Old Names: Link, Darklink, Neo, then Boozy when Bravo died. (So some people will recognize me)~

AIM: boozyneo
ICQ: 116030736
Msn: [email protected]
Email: [email protected]


-DANCE SPAM DANCE!- Dark Warlock
Reply With Quote
  #22  
Old 09-22-2001, 09:08 PM
SSj_Link SSj_Link is offline
Registered User
Join Date: Jul 2001
Location: i r live in texas
Posts: 244
SSj_Link is on a distinguished road
Send a message via ICQ to SSj_Link Send a message via AIM to SSj_Link
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
__________________
-People with my Password: Me (Boozy), Ghostface Killa, bgraven, Freaky Carnie, Dark Warlock, and SoulReaver.
-So they can all post.-

-I hate my account name -

~Old Names: Link, Darklink, Neo, then Boozy when Bravo died. (So some people will recognize me)~

AIM: boozyneo
ICQ: 116030736
Msn: [email protected]
Email: [email protected]


-DANCE SPAM DANCE!- Dark Warlock
Reply With Quote
  #23  
Old 09-22-2001, 09:13 PM
SSj_Link SSj_Link is offline
Registered User
Join Date: Jul 2001
Location: i r live in texas
Posts: 244
SSj_Link is on a distinguished road
Send a message via ICQ to SSj_Link Send a message via AIM to SSj_Link
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
__________________
-People with my Password: Me (Boozy), Ghostface Killa, bgraven, Freaky Carnie, Dark Warlock, and SoulReaver.
-So they can all post.-

-I hate my account name -

~Old Names: Link, Darklink, Neo, then Boozy when Bravo died. (So some people will recognize me)~

AIM: boozyneo
ICQ: 116030736
Msn: [email protected]
Email: [email protected]


-DANCE SPAM DANCE!- Dark Warlock
Reply With Quote
  #24  
Old 09-22-2001, 11:50 PM
Merlin Merlin is offline
Banned
Merlin's Avatar
Join Date: Jul 2001
Location: Merlin - U S A Malak - United Kingdom
Posts: 2,543
Merlin is on a distinguished road
Send a message via ICQ to Merlin Send a message via AIM to Merlin
nai is doing it fine as it is let him do it little by little as he learns more.
Reply With Quote
  #25  
Old 09-23-2001, 05:13 AM
CyanideSR71 CyanideSR71 is offline
Registered User
CyanideSR71's Avatar
Join Date: Jun 2001
Location: Canada
Posts: 460
CyanideSR71 is on a distinguished road
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.
__________________
Cyanide SR71
Former Shadow Dragon
Co-Owner of what was Murasamune
Reply With Quote
  #26  
Old 09-23-2001, 06:15 AM
CyanideSR71 CyanideSR71 is offline
Registered User
CyanideSR71's Avatar
Join Date: Jun 2001
Location: Canada
Posts: 460
CyanideSR71 is on a distinguished road
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.
__________________
Cyanide SR71
Former Shadow Dragon
Co-Owner of what was Murasamune
Reply With Quote
  #27  
Old 09-23-2001, 06:22 AM
CyanideSR71 CyanideSR71 is offline
Registered User
CyanideSR71's Avatar
Join Date: Jun 2001
Location: Canada
Posts: 460
CyanideSR71 is on a distinguished road
It did for me.
__________________
Cyanide SR71
Former Shadow Dragon
Co-Owner of what was Murasamune
Reply With Quote
  #28  
Old 09-24-2001, 08:02 AM
SSj_Link SSj_Link is offline
Registered User
Join Date: Jul 2001
Location: i r live in texas
Posts: 244
SSj_Link is on a distinguished road
Send a message via ICQ to SSj_Link Send a message via AIM to SSj_Link
Kai, I respect you, but, anyway of learning is fine, as long as your not learning from Ice Pick
But let him pick his way, he might become better than you
lmao


-Freaky Carnie-
__________________
-People with my Password: Me (Boozy), Ghostface Killa, bgraven, Freaky Carnie, Dark Warlock, and SoulReaver.
-So they can all post.-

-I hate my account name -

~Old Names: Link, Darklink, Neo, then Boozy when Bravo died. (So some people will recognize me)~

AIM: boozyneo
ICQ: 116030736
Msn: [email protected]
Email: [email protected]


-DANCE SPAM DANCE!- Dark Warlock
Reply With Quote
  #29  
Old 09-24-2001, 08:12 AM
Brady2 Brady2 is offline
Registered User
Brady2's Avatar
Join Date: Mar 2001
Location: Phoenix, AZ and Wichita Falls, TX
Posts: 924
Brady2 is on a distinguished road
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.
Reply With Quote
  #30  
Old 09-24-2001, 08:27 AM
CyanideSR71 CyanideSR71 is offline
Registered User
CyanideSR71's Avatar
Join Date: Jun 2001
Location: Canada
Posts: 460
CyanideSR71 is on a distinguished road
Hey! I made that! =P
__________________
Cyanide SR71
Former Shadow Dragon
Co-Owner of what was Murasamune
Reply With Quote
  #31  
Old 09-24-2001, 10:26 AM
CyanideSR71 CyanideSR71 is offline
Registered User
CyanideSR71's Avatar
Join Date: Jun 2001
Location: Canada
Posts: 460
CyanideSR71 is on a distinguished road
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.)
__________________
Cyanide SR71
Former Shadow Dragon
Co-Owner of what was Murasamune
Reply With Quote
  #32  
Old 09-25-2001, 04:15 AM
Death_Link Death_Link is offline
Registered User
Join Date: Aug 2001
Posts: 51
Death_Link is on a distinguished road
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?
Reply With Quote
  #33  
Old 09-25-2001, 04:23 AM
Merlin Merlin is offline
Banned
Merlin's Avatar
Join Date: Jul 2001
Location: Merlin - U S A Malak - United Kingdom
Posts: 2,543
Merlin is on a distinguished road
Send a message via ICQ to Merlin Send a message via AIM to Merlin
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!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 06:05 AM.


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