Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Gravity Script (https://forums.graalonline.com/forums/showthread.php?t=837)

MoonAngel 04-01-2001 02:46 PM

Remember Zelda 2 on the NES? Link's Awakening.

Well, Warren, one of the best scripter of graal that recently quit graal made a copy of the zelda game and you can throw a dagger-like thing when you're at max hp. I will upload the Gravity levels on Mithica in about 3 weeks. The script is too long for me to post here, but if you would like to have it, post a reply and ill need ur email too =P

Grey_Mage 04-01-2001 03:26 PM

Sure!
 
Sure can I have it? [email protected]

MoonAngel 04-01-2001 03:58 PM

bleh
 
i bet almost every server will have the npc levels soon. bah.. at least Mithica will have done one good thing in its chaotic life!

grim_squeaker_x 04-01-2001 05:58 PM

Hehe.
 
It isn't that hard to script actually, just make the player always go down (As long as the tiles under him/her are not onwall), assign the 'A' button to allow jumping, and if the player's hearts are full shoot an extra projectile.

MoonAngel 04-02-2001 06:53 AM

.....its VERY complicated, u have to check for onwall so that the player doesnt pass through wallz and many other details like that, try scripting it

Thak2 04-02-2001 09:47 AM

It wouldnt be as hard as it would be long to make.

TylerS36 04-02-2001 09:47 AM

mithica couldnt script there way out of a box.

MoonAngel 04-02-2001 12:44 PM

You're so wrong, the only reason why Mithica currently sucks, is cause Brett of Elven Land Hacked our FTP and had FUN with it. We do have proofs that he did it.

Anyways, Mithica will go Under Reconstruction Soon and we will have our own NPCServer, we have about 500 new levels and are making many other levels. It will have a totally new system. You really don't know a thing about Mithica.

grim_squeaker_x 04-02-2001 05:28 PM

Blah.
 
I'll script a whole gravity system thingy when I'm feeling like it, you only have to check for the ceiling and floor anyways.

game_king 04-03-2001 03:33 PM

can i have it [email protected]

EvilPoptart 04-04-2001 02:29 AM

hmm I'd like to see it [email protected]

MoonAngel 04-04-2001 10:18 AM

ill post the scripts since ive made a few modifications, but i have to check with warren and psyker if they want me to post it.. if they dont, ill just give hints on how to make one yourself

04-04-2001 10:42 AM

Wouldn't be that hard to make...

MoonAngel 04-04-2001 11:05 AM

its hard and long to make if u dont know many things about scripting.

btw, still havent asked Warren and Psyker, should be answered tomorrow

Tyhm 04-09-2001 05:04 AM

I made one of those in Ziegfried's....

MoonAngel 04-09-2001 04:15 PM

oh thats right, but i havent seen urs so i guess they are both different since the one that made it has never stolen/copied other npcs.

ive removed a few things so ill post it now

MoonAngel 04-09-2001 04:18 PM

ITS NOW TIME FOR ALL OF YOU NPC COPY-CATS TO TAKE IT TO YOUR SERVER. THIS WAS MADE ON MITHICA, FOR MITHICA SO ASDF TO YOU! =D =P Just give Warren the credits, he was NAT on Mithica until he quitted Graal. So please give him the credits! =)

//Experiment with gravity by Warren
if (playerenters) {
hide;
toweapons *Gravity;
playerx=int(playerx);
playery=int(playery);
playerdir=3;
timeout=0.05;
}
if (timeout&&isweapon) {
if (!antigravity) {
if (keydown(0)&&playersprite>=1&&playersprite<=8) playery+=0.5;
if (playerdir==0||playerdir==2) playerdir=gravdir;
if (onwall(playerx+0.5,playery+3)||onwall(playerx+1.5 ,playery+3)) {
velocity=0;
playery=int(playery);
if (keydown(6)) velocity=-2;
}
else if (keydown(2)&&playersprite>=1&&playersprite<=8) playery-=0.5;
if (onwall(playerx+0.5,playery-0.1)||onwall(playerx+0.5,playery)||onwall(playerx+ 1.5,playery)||onwall(playerx+1.5,playery-0.1)) velocity=0.1;
else {
if (velocity>-0.1&&velocity<=0) velocity=0.1;
if (velocity>3) velocity=3;
}
if (abs(velocity)>0) {
playery+=velocity/6;
if ((velocity>0&&(onwall(playerx+0.5,playery+3)||onwa ll(playerx+1.5,playery+3)))||(velocity<0&&(onwall( playerx+0.5,playery)||onwall(playerx+1.5,playery)) )) playery=int(playery);
else playery+=velocity/6;
if ((velocity>0&&(onwall(playerx+0.5,playery+3)||onwa ll(playerx+1.5,playery+3)))||(velocity<0&&(onwall( playerx+0.5,playery)||onwall(playerx+1.5,playery)) )) playery=int(playery);
else playery+=velocity/6;
if ((velocity>0&&(onwall(playerx+0.5,playery+3)||onwa ll(playerx+1.5,playery+3)))||(velocity<0&&(onwall( playerx+0.5,playery)||onwall(playerx+1.5,playery)) )) playery=int(playery);
else playery+=velocity/6;
if ((velocity>0&&(onwall(playerx+0.5,playery+3)||onwa ll(playerx+1.5,playery+3)))||(velocity<0&&(onwall( playerx+0.5,playery)||onwall(playerx+1.5,playery)) )) playery=int(playery);
else playery+=velocity/6;
if ((velocity>0&&(onwall(playerx+0.5,playery+3)||onwa ll(playerx+1.5,playery+3)))||(velocity<0&&(onwall( playerx+0.5,playery)||onwall(playerx+1.5,playery)) )) playery=int(playery);
else playery+=velocity/6;
}
velocity+=abs(velocity/4);
if (this.shot==9) {
hideimg 345;
this.shot=0;
}
if (this.shot>0) {
if (this.sd==1) this.sx-=0.75;
if (this.sd==3) this.sx+=0.75;
showimg 345,busterl2d#v(this.sd).gif,this.sx,this.sy;
if (this.sd==1) {
if (testplayer(this.sx,this.sy)>-2) hitplayer testplayer(this.sx,this.sy),2,playerx,playery;
if (testnpc(this.sx,this.sy)>-2) hitnpc testnpc(this.sx,this.sy),2,playerx,playery;
if (testcompu(this.sx,this.sy)>-2) hitcompu testcompu(this.sx,this.sy),2,playerx,playery;
}
if (this.sd==3) {
if (testplayer(this.sx+1,this.sy)>-2) hitplayer testplayer(this.sx+1,this.sy),2,playerx,playery;
if (testnpc(this.sx+1,this.sy)>-2) hitnpc testnpc(this.sx+1,this.sy),2,playerx,playery;
if (testcompu(this.sx+1,this.sy)>-2) hitcompu testcompu(this.sx+1,this.sy),2,playerx,playery;
}
this.shot++;
}
if (playersprite==11&&playerhearts==playerfullhearts) {
this.shot=1;
this.sd=playerdir;
if (this.sd==1) {
this.sx=playerx-2;
this.sy=playery+1;
}
if (this.sd==3) {
this.sx=playerx+2;
this.sy=playery+1;
}
showimg 345,busterl2d#v(this.sd).gif,this.sx,this.sy;
}
if ((keydown(0)||keydown(2))&&!(keydown(1)||keydown(3 ))) playersprite=0;
if (keydown(1)&&!keydown(3)) playerdir=1;
if (keydown(3)&&!keydown(1)) playerdir=3;
gravdir=playerdir;
}
timeout=0.05;
}

MoonAngel 04-09-2001 04:19 PM

oh and to most of you, dont try to figure out how it works if u havent been scripting much ; ) just Press A to jump.

funnylinkwantsbomys 04-09-2001 04:55 PM

weird!!

grim_squeaker_x 04-09-2001 07:26 PM

Hmm...
 
... You could put that in a system NPc (preferably invisible), then put in that it does that stuff if (level.sidescroll==1)

kyle0654 04-10-2001 06:58 AM

*shudders*
haven't seen too many needlessly long scripts lately...but boy could I shorten this one...

Psyker 04-10-2001 01:20 PM

Kyle at work :D
Let's just hope nobody copies it and puts it in their server. :o

grim_squeaker_x 04-10-2001 06:52 PM

Heh.
 
*pictures Kyle busy with putting all the stuff into arrays etc.*

MoonAngel 04-11-2001 02:12 AM

Psyker, of course every server will have it soon =P as long as they give credits to the lord of the smileys, Warren =D

and anyways, im helping out for those that wanted a script like that ^_^

kyle0654 04-11-2001 07:56 AM

Actually...just looking at it I think I'd figure out how it works first (haven't even looked at it yet though, sorry) and then redo the whole thing...

HIC 04-12-2001 06:23 AM

I made a Graal Mario type game a long time ago...i dont think it is on my comp anymore though :(

funnylinkwantsbomys 04-12-2001 07:34 AM

thats my idea don't go there!

MoonAngel 04-12-2001 01:48 PM

too late, it was made on Mithica 2 months ago, Mario Spar =) but now Mithica is so messed up that i didnt bother putting it back, anyways have fun with da script =)

FatherDante 04-12-2001 02:24 PM

Wouldn't qa true gravity script have to include gravitational acceleration at a gravitational constant times the time squared? That would be a nightmare!

Cyboars 04-12-2001 07:00 PM

Silver send me the scrpt
 
Silver send me the script, i'll make a thing for our guildhouse with it. ;-)

MoonAngel 04-13-2001 08:02 AM

lol, u couldve asked on AIM =P

MoonAngel 04-13-2001 08:04 AM

Quote:

Originally posted by FatherDante
Wouldn't qa true gravity script have to include gravitational acceleration at a gravitational constant times the time squared? That would be a nightmare!
yeah it would be a real nightmare to make that lol

MoonAngel 04-20-2001 08:01 AM

BWAHAHAH i knew it would get on many servers but i never expected it to be on G2K1 Even if everyone says Stefan made his own, its much easier to get a perfect one here ; ) and its public, so who cares? but i cant believe its on new main lol

Tyhm 04-21-2001 11:37 AM

9.8 m/s/s, or 9.8 meters per (second squared).

Psyker 04-22-2001 11:40 PM

Quote:

Originally posted by MoonAngel
BWAHAHAH i knew it would get on many servers but i never expected it to be on G2K1 Even if everyone says Stefan made his own, its much easier to get a perfect one here ; ) and its public, so who cares? but i cant believe its on new main lol
Wow. I gotta tell Warren about this, eh? :)

milotheman 04-23-2001 01:49 AM

ill take it
[email protected]

superkylegod 04-28-2001 02:59 AM

i would like to see it i made one myself and it is longer than it is hard but i would
like to cheak out yours,
thanks Sepher [mail][email protected][/mail]
check out www.angelfire.com/games3/tantaraserver it's a new player world goin up and it looks really good
unlike the rubbish ones up just now. Stefan take note

MoonAngel 04-28-2001 08:36 AM

check out each and every page of this topic, its somewhere in there..

MoonAngel 04-28-2001 08:38 AM

Quote:

Originally posted by Psyker

Wow. I gotta tell Warren about this, eh? :)

already did tell Warren you lagging Fish Ninja!

Nelm 04-30-2001 01:40 AM

Quote:

Originally posted by Psyker
Kyle at work :D
Let's just hope nobody copies it and puts it in their server. :o

Me and Trinnexx are going to make a weapon out of it...hehehhehehehe....
if (weaponfired) {
Everyone on level goes splat;
}


All times are GMT +2. The time now is 03:43 AM.

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