Graal Forums

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

Knightoffrost 09-24-2001 07:52 PM

Grappling Hook/Rope
 
[ Delph Inc. ]
No, I'm not asking for the grappling hook...I'm actually wondering how I would get something like that to work with a gravity script.
I'll post the gravity script...but just after I see what people say.

If you've ever played the game Liero, that's what I want it to be like. So if you press a button...a little red cross shows up above the players head and you can move it around a certain radius. So it's like above the players head about 3 tiles and you can move it 180 degrees each side but not below.
When you fire...it fires a rope...I'm just using the mace chain for now into the direction which the cross was facing and it pulls the player up. The player stays on the rope (they would look like their stuck on the roof) until they fire the weapon again.

I've had a look at the grappling hook script and I can only do some bits but not all.
Could you please help me.

BTW Free PW scripting

Merlin 09-25-2001 04:14 AM

what do you mean by 'with gravity'
why not just slow down the shoot speed?

Knightoffrost 09-25-2001 07:44 PM

[ Delph Inc. ]
I can make it so it pulls the character up but the problem is I want it to use a radius and all the extra stuff for extra effect.
I'm very hopeless at mathematics and I don't understand all this cos, tan, sin stuff.

Shard_IceFire 09-25-2001 08:42 PM

Ok I've never used cos or sin, but aren't they cosign and sign? If not, what are they, and how the hell do you use them!?

Shard_IceFire 09-25-2001 09:20 PM

oops! lol that's what I meant, cosine and sine

Knightoffrost 09-25-2001 09:30 PM

[ Delph Inc. ]
I'd be able to understand it if someone could give me a working example of something revolving around the player. *Knudge* *Knudge* *wink ;)* *wink ;)*
I can work it from there.
The only script I've found is from that scripter bible thing...but it doesn't work even if you call everything and set the right values to all the variables.
And yes...I may need to study my text book :)

Knightoffrost 09-25-2001 09:41 PM

[ Delph Inc. ]
I've got the gravity stuff...and I can work on the swinging.
Oh...I just got it working too...Now how would I make it so that when I press up...it goes in the direction which the angle is?

SSRobgeta 09-26-2001 04:31 AM

GRAV...ITY

Enigma_GP6 09-26-2001 06:42 AM

cool, i need to work on my math skills........ :cool:

Brady2 09-27-2001 03:18 AM

Jadis:

POTENTIAL AND KINETIC! POTENTIAL AND KINETIC!

Liero is fun.


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

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