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 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
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 08:04 PM.


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