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.


All times are GMT +2. The time now is 03:05 PM.

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