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
  #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
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 02:18 PM.


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