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 04-01-2001, 02:46 PM
MoonAngel MoonAngel is offline
Banned
MoonAngel's Avatar
Join Date: Mar 2001
Location: QUÉBEC!
Posts: 1,443
MoonAngel is on a distinguished road
Send a message via ICQ to MoonAngel Send a message via AIM to MoonAngel
Talking

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
Reply With Quote
  #2  
Old 04-01-2001, 03:26 PM
Grey_Mage Grey_Mage is offline
Registered User
Join Date: Mar 2001
Location: Graal
Posts: 72
Grey_Mage is on a distinguished road
Send a message via AIM to Grey_Mage Send a message via Yahoo to Grey_Mage
Sure!

Sure can I have it? [email protected]
__________________

Quote:
Mess with the best, die like the rest...
Reply With Quote
  #3  
Old 04-01-2001, 03:58 PM
MoonAngel MoonAngel is offline
Banned
MoonAngel's Avatar
Join Date: Mar 2001
Location: QUÉBEC!
Posts: 1,443
MoonAngel is on a distinguished road
Send a message via ICQ to MoonAngel Send a message via AIM to MoonAngel
Red face 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!
Reply With Quote
  #4  
Old 04-01-2001, 05:58 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
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.
__________________

Reply With Quote
  #5  
Old 04-02-2001, 06:53 AM
MoonAngel MoonAngel is offline
Banned
MoonAngel's Avatar
Join Date: Mar 2001
Location: QUÉBEC!
Posts: 1,443
MoonAngel is on a distinguished road
Send a message via ICQ to MoonAngel Send a message via AIM to MoonAngel
.....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
Reply With Quote
  #6  
Old 04-02-2001, 09:47 AM
Thak2 Thak2 is offline
:]
Join Date: Mar 2001
Location: BC
Posts: 1,344
Thak2 is on a distinguished road
Send a message via AIM to Thak2
It wouldnt be as hard as it would be long to make.
Reply With Quote
  #7  
Old 04-02-2001, 09:47 AM
TylerS36 TylerS36 is offline
I want my pet bomy dangit
TylerS36's Avatar
Join Date: Mar 2001
Location: Seattle.
Posts: 937
TylerS36 is on a distinguished road
Send a message via ICQ to TylerS36 Send a message via AIM to TylerS36
mithica couldnt script there way out of a box.
__________________
-SpongeBob SquarePants (SoG)
SoG = Smilies of Graal


If the text is yellow, SpongeBob is posting. If the text is blue, SpongeBob is posting. if the text is normal, SpongeBob is posting. If the text is any font or any color of the rainbow, SpongeBob is posting. Basically, SpongeBob is the only one posting.
Reply With Quote
  #8  
Old 04-02-2001, 12:44 PM
MoonAngel MoonAngel is offline
Banned
MoonAngel's Avatar
Join Date: Mar 2001
Location: QUÉBEC!
Posts: 1,443
MoonAngel is on a distinguished road
Send a message via ICQ to MoonAngel Send a message via AIM to MoonAngel
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.
Reply With Quote
  #9  
Old 04-02-2001, 05:28 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
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.
__________________

Reply With Quote
  #10  
Old 04-03-2001, 03:33 PM
game_king game_king is offline
Registered User
Join Date: Mar 2001
Location: Australia
Posts: 171
game_king is on a distinguished road
Send a message via AIM to game_king Send a message via Yahoo to game_king
can i have it [email protected]
Reply With Quote
  #11  
Old 04-04-2001, 02:29 AM
EvilPoptart EvilPoptart is offline
Banned
Join Date: Mar 2001
Posts: 95
EvilPoptart is on a distinguished road
hmm I'd like to see it [email protected]
Reply With Quote
  #12  
Old 04-04-2001, 10:18 AM
MoonAngel MoonAngel is offline
Banned
MoonAngel's Avatar
Join Date: Mar 2001
Location: QUÉBEC!
Posts: 1,443
MoonAngel is on a distinguished road
Send a message via ICQ to MoonAngel Send a message via AIM to MoonAngel
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
Reply With Quote
  #13  
Old 04-04-2001, 10:42 AM
Guest
Posts: n/a
Wouldn't be that hard to make...
Reply With Quote
  #14  
Old 04-04-2001, 11:05 AM
MoonAngel MoonAngel is offline
Banned
MoonAngel's Avatar
Join Date: Mar 2001
Location: QUÉBEC!
Posts: 1,443
MoonAngel is on a distinguished road
Send a message via ICQ to MoonAngel Send a message via AIM to MoonAngel
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
Reply With Quote
  #15  
Old 04-09-2001, 05:04 AM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm has a spectacular aura about
I made one of those in Ziegfried's....
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
Reply With Quote
  #16  
Old 04-09-2001, 04:15 PM
MoonAngel MoonAngel is offline
Banned
MoonAngel's Avatar
Join Date: Mar 2001
Location: QUÉBEC!
Posts: 1,443
MoonAngel is on a distinguished road
Send a message via ICQ to MoonAngel Send a message via AIM to MoonAngel
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
Reply With Quote
  #17  
Old 04-09-2001, 04:18 PM
MoonAngel MoonAngel is offline
Banned
MoonAngel's Avatar
Join Date: Mar 2001
Location: QUÉBEC!
Posts: 1,443
MoonAngel is on a distinguished road
Send a message via ICQ to MoonAngel Send a message via AIM to MoonAngel
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;
}
Reply With Quote
  #18  
Old 04-09-2001, 04:19 PM
MoonAngel MoonAngel is offline
Banned
MoonAngel's Avatar
Join Date: Mar 2001
Location: QUÉBEC!
Posts: 1,443
MoonAngel is on a distinguished road
Send a message via ICQ to MoonAngel Send a message via AIM to MoonAngel
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.
Reply With Quote
  #19  
Old 04-09-2001, 04:55 PM
funnylinkwantsbomys funnylinkwantsbomys is offline
Omi New
funnylinkwantsbomys's Avatar
Join Date: Mar 2001
Location: ohio
Posts: 2,116
funnylinkwantsbomys is on a distinguished road
Send a message via AIM to funnylinkwantsbomys
weird!!
__________________

"Microwave a piece of cheese for 40secs and eat it. Yum." -Funnylink
Reply With Quote
  #20  
Old 04-09-2001, 07:26 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
Hmm...

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

Reply With Quote
  #21  
Old 04-10-2001, 06:58 AM
kyle0654 kyle0654 is offline
-. .`
kyle0654's Avatar
Join Date: Mar 2001
Posts: 1,000
kyle0654 will become famous soon enough
*shudders*
haven't seen too many needlessly long scripts lately...but boy could I shorten this one...
Reply With Quote
  #22  
Old 04-10-2001, 01:20 PM
Psyker Psyker is offline
Tired Sloth
Join Date: Mar 2001
Posts: 6,217
Psyker will become famous soon enough
Send a message via AIM to Psyker Send a message via Yahoo to Psyker
Kyle at work
Let's just hope nobody copies it and puts it in their server. :o
__________________
Reply With Quote
  #23  
Old 04-10-2001, 06:52 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
Heh.

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

Reply With Quote
  #24  
Old 04-11-2001, 02:12 AM
MoonAngel MoonAngel is offline
Banned
MoonAngel's Avatar
Join Date: Mar 2001
Location: QUÉBEC!
Posts: 1,443
MoonAngel is on a distinguished road
Send a message via ICQ to MoonAngel Send a message via AIM to MoonAngel
Talking

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 ^_^
Reply With Quote
  #25  
Old 04-11-2001, 07:56 AM
kyle0654 kyle0654 is offline
-. .`
kyle0654's Avatar
Join Date: Mar 2001
Posts: 1,000
kyle0654 will become famous soon enough
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...
Reply With Quote
  #26  
Old 04-12-2001, 06:23 AM
HIC HIC is offline
The Hole
Join Date: Mar 2001
Posts: 180
HIC is on a distinguished road
I made a Graal Mario type game a long time ago...i dont think it is on my comp anymore though
__________________
Temporary disabled
Stefan Knorr
Reply With Quote
  #27  
Old 04-12-2001, 07:34 AM
funnylinkwantsbomys funnylinkwantsbomys is offline
Omi New
funnylinkwantsbomys's Avatar
Join Date: Mar 2001
Location: ohio
Posts: 2,116
funnylinkwantsbomys is on a distinguished road
Send a message via AIM to funnylinkwantsbomys
thats my idea don't go there!
__________________

"Microwave a piece of cheese for 40secs and eat it. Yum." -Funnylink
Reply With Quote
  #28  
Old 04-12-2001, 01:48 PM
MoonAngel MoonAngel is offline
Banned
MoonAngel's Avatar
Join Date: Mar 2001
Location: QUÉBEC!
Posts: 1,443
MoonAngel is on a distinguished road
Send a message via ICQ to MoonAngel Send a message via AIM to MoonAngel
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 =)
Reply With Quote
  #29  
Old 04-12-2001, 02:24 PM
FatherDante FatherDante is offline
Low res, high class!
FatherDante's Avatar
Join Date: Mar 2001
Location: Coming soon to the Super Famicon
Posts: 5,164
FatherDante will become famous soon enough
Send a message via ICQ to FatherDante Send a message via AIM to 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!
__________________

Take off in your Bean-with-Bacon Megarocket,
defender of the galaxy, Commander Keen!
Reply With Quote
  #30  
Old 04-12-2001, 07:00 PM
Cyboars Cyboars is offline
Registered User
Cyboars's Avatar
Join Date: Mar 2001
Location: Everwhere.
Posts: 209
Cyboars will become famous soon enough
Send a message via AIM to Cyboars Send a message via Yahoo to Cyboars
Silver send me the scrpt

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


Returned to Graal 2/1/02
Reply With Quote
  #31  
Old 04-13-2001, 08:02 AM
MoonAngel MoonAngel is offline
Banned
MoonAngel's Avatar
Join Date: Mar 2001
Location: QUÉBEC!
Posts: 1,443
MoonAngel is on a distinguished road
Send a message via ICQ to MoonAngel Send a message via AIM to MoonAngel
lol, u couldve asked on AIM =P
Reply With Quote
  #32  
Old 04-13-2001, 08:04 AM
MoonAngel MoonAngel is offline
Banned
MoonAngel's Avatar
Join Date: Mar 2001
Location: QUÉBEC!
Posts: 1,443
MoonAngel is on a distinguished road
Send a message via ICQ to MoonAngel Send a message via AIM to MoonAngel
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
Reply With Quote
  #33  
Old 04-20-2001, 08:01 AM
MoonAngel MoonAngel is offline
Banned
MoonAngel's Avatar
Join Date: Mar 2001
Location: QUÉBEC!
Posts: 1,443
MoonAngel is on a distinguished road
Send a message via ICQ to MoonAngel Send a message via AIM to 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
Reply With Quote
  #34  
Old 04-21-2001, 11:37 AM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm has a spectacular aura about
9.8 m/s/s, or 9.8 meters per (second squared).
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
Reply With Quote
  #35  
Old 04-22-2001, 11:40 PM
Psyker Psyker is offline
Tired Sloth
Join Date: Mar 2001
Posts: 6,217
Psyker will become famous soon enough
Send a message via AIM to Psyker Send a message via Yahoo to Psyker
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?
__________________
Reply With Quote
  #36  
Old 04-23-2001, 01:49 AM
milotheman milotheman is offline
Banned
milotheman's Avatar
Join Date: Apr 2001
Posts: 0
milotheman is on a distinguished road
ill take it
[email protected]
Reply With Quote
  #37  
Old 04-28-2001, 02:59 AM
superkylegod superkylegod is offline
Registered User
Join Date: Apr 2001
Location: Scotland
Posts: 12
superkylegod is on a distinguished road
Send a message via AIM to superkylegod Send a message via Yahoo to superkylegod
Talking

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
Reply With Quote
  #38  
Old 04-28-2001, 08:36 AM
MoonAngel MoonAngel is offline
Banned
MoonAngel's Avatar
Join Date: Mar 2001
Location: QUÉBEC!
Posts: 1,443
MoonAngel is on a distinguished road
Send a message via ICQ to MoonAngel Send a message via AIM to MoonAngel
check out each and every page of this topic, its somewhere in there..
Reply With Quote
  #39  
Old 04-28-2001, 08:38 AM
MoonAngel MoonAngel is offline
Banned
MoonAngel's Avatar
Join Date: Mar 2001
Location: QUÉBEC!
Posts: 1,443
MoonAngel is on a distinguished road
Send a message via ICQ to MoonAngel Send a message via AIM to MoonAngel
Quote:
Originally posted by Psyker

Wow. I gotta tell Warren about this, eh?
already did tell Warren you lagging Fish Ninja!
Reply With Quote
  #40  
Old 04-30-2001, 01:40 AM
Nelm Nelm is offline
delterian loyalist
Nelm's Avatar
Join Date: Apr 2001
Location: Michigan
Posts: 198
Nelm will become famous soon enough
Send a message via AIM to Nelm
Quote:
Originally posted by Psyker
Kyle at work
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;
}
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 11:20 PM.


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