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 08-09-2001, 02:54 AM
Death_Sythe Death_Sythe is offline
Registered User
Join Date: Aug 2001
Location: PA:USA
Posts: 81
Death_Sythe is on a distinguished road
A Present from me to all of you!

Ok now sense I have no use for these scripts I will give them toi you! Interducing some of the best scriting I ever did, but youmust make your own Gifs I will not give you the ones I made!
Rain
//Code
Put this in Starting Level
//Rain System by Trunks
if(created){
this.start=0;
level.rain=1;
level.maxrain=100;
}
//End Code
//System Code
//Rain System by Trunks
if(playerenters&&level.rain=1){
this.start=1;
}
if(this.start=1){
setarray rainx,level.maxrain;
setarray rainy,level.maxrain;
setarray rainx2,level.maxrain;
setarray rainy2,level.maxrain;
setarray raint,level.maxrain;
for(this.r=0;this.r<level.maxrain;this.r++){
rainx[this.r]=int(random(0,64));
rainy[this.r]=int(random(0,64));
rainx2[this.r]=rainx[this.r];
rainy2[this.r]=rainy[this.r];
raint[this.r]=int(random(5,15))}
this.start=0
}
if(timeout&&level.rain=1){
for(this.i=0;this.i<level.maxrain;this.i++){
if(rainy[this.i]-rainy2[this.i]>raint[this.i]){
//putleaps 5,rainx[this.i],rainy[this.i];
rainx[this.i]=int(random(0,64));
rainy[this.i]=int(random(0,64));
rainx2[this.i]=rainx[this.i];
rainy2[this.i]=rainy[this.i];}
showimg this.i,raindrop.gif,rainx[this.i],rainy[this.i];rainx[this.i]+=0.3;rainy[this.i]+=0.5;}
//sleep 0.05
}
timeout=0.05
//End System Code


This is Clouds
//Put this in Starting level
//Code
//Cloud System by Trunks
if(created){
level.clouds=1;
level.maxcloud=20;}
//End Code
//System Code
//Cloud System by Trunks
if (created) {
level.clouds=1;
level.maxcloud=20;
}
if(playerenters&&level.clouds=1&&isonmap){
this.cstart=1;
}
if(this.cstart=1){
setarray cloudx,level.maxcloud;
setarray cloudy,level.maxcloud;
setarray clouds,level.maxcloud;
for(this.r=0;this.r<level.maxcloud;this.r++){
cloudx[this.r]=int(random(0,64));
cloudy[this.r]=abs(random(0,64));
clouds[this.r]=random(0.1,0.25);
this.cstart=0}}
if(timeout&&level.clouds=1){
for(this.i=0;this.i<level.maxcloud;this.i++){
if(cloudx[this.i]>63){cloudy[this.i]=abs(random(0,64));cloudx[this.i]=0;}
showimg this.i,cloud.gif,cloudx[this.i],cloudy[this.i];

changeimgcolors this.i,1,1,1,0.99;

cloudx[this.i]+=clouds[this.i];}
//sleep 0.05
}
timeout=0.05
//End System Code

Snow
Put this in starting level
//Code
if(created){
this.start=0;
level.rain=1;
level.maxrain=100;
}

//End Code

//System Code
//Snow System by Trunks
if(created){this.maxrain=100;
this.rainsx=0.1;
this.rainsy=0.2;}
if(created){setarray rainx,this.maxrain;setarray rainy,this.maxrain;setarray rainx2,this.maxrain;setarray rainy2,this.maxrain;setarray raint,this.maxrain;this.start=1}
if(this.start=1){for(this.r=0;this.r<this.maxrain; this.r++){
rainx[this.r]=int(random(0,64));
rainy[this.r]=int(random(0,64));
rainx2[this.r]=rainx[this.r];
rainy2[this.r]=rainy[this.r];
raint[this.r]=int(random(5,15));}this.start=0}
if(timeout){
for(this.i=0;this.i<this.maxrain;this.i++){
if(rainy[this.i]-rainy2[this.i]>raint[this.i]){
rainx[this.i]=int(random(0,64));
rainy[this.i]=int(random(0,64));
rainx2[this.i]=rainx[this.i];
rainy2[this.i]=rainy[this.i];
if(this.rainsx<2){this.rainsx+=0.01;}
}
showimg this.i,snow.gif,rainx[this.i],rainy[this.i];rainx[this.i]+=this.rainsx;rainy[this.i]+=this.rainsy;}
//sleep 0.05
}
timeout=0.05
//End System Code

__________________________________________________
__________________
Trunks
Manatra2001 Owner
GP Asst. Chief on Sanstrata
Reply With Quote
  #2  
Old 08-09-2001, 03:30 AM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
i recommend u showimg using this.i as starting as 200 so its local..
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #3  
Old 08-09-2001, 03:47 AM
DuckyJ DuckyJ is offline
Registered User
Join Date: Jun 2001
Location: Maryland
Posts: 93
DuckyJ is on a distinguished road
Send a message via ICQ to DuckyJ Send a message via AIM to DuckyJ
Nah sorry I don't use other's scripts unless they work for me, it just don't seem right.
__________________
"Death is like being locked in a closet - locked away from life." - Me

"Sympathy is a Virtue, but only if your on the receiver side, otherwise, it's just another hole in your wallet." - Me

Ducky Vs The Devil
Devil:Give me your soul and I will give you anything.
Ducky:What happens when I give you my soul?
Devil:When you die you go straight to hell, no if ands or buts, but while your alive you get anything you want!
Ducky:Okay*signs soul certificate entitling the Devil to his soul*
Devil:Now whats the first thing you want?
Ducky:Too live forever.



Bill Clinton VS the Big Dubya
Bill:I get alot of *****.
Bush:I try to lower the eco-projects to keep gas in your car.
Bill:Im Democrat and I hate Doctors.
Bush:Im Republican and my daughter drinks alcohol and Im Proud of it!
Bill:Atleast I get some.
Bush:Look who won the election, then look at who almost got Impeached!
Bill:Whats Impeached? A Peach that was Imed?
Bush: Democraps...oops, did I just say that?
Bush:Monicas a fat pig.
Bill:SHES ONLY 200 POUNDS!
visit my LiveJournal
Reply With Quote
  #4  
Old 08-09-2001, 11:27 PM
CyanideSR71 CyanideSR71 is offline
Registered User
CyanideSR71's Avatar
Join Date: Jun 2001
Location: Canada
Posts: 460
CyanideSR71 is on a distinguished road
Is that on Delteria yet?
__________________
Cyanide SR71
Former Shadow Dragon
Co-Owner of what was Murasamune
Reply With Quote
  #5  
Old 08-10-2001, 02:09 AM
Guest
Posts: n/a
Quote:
Originally posted by CyanideSR71
Is that on Delteria yet?
lol
Reply With Quote
  #6  
Old 08-10-2001, 12:16 PM
ArmadeusWarlock ArmadeusWarlock is offline
Registered User
Join Date: Jun 2001
Posts: 373
ArmadeusWarlock is on a distinguished road
Talking

Hehe
Reply With Quote
  #7  
Old 08-10-2001, 02:43 PM
Slaktmaster Slaktmaster is offline
man with the mastahplan
Slaktmaster's Avatar
Join Date: Apr 2001
Location: Half-way over the river styx
Posts: 4,422
Slaktmaster is an unknown quantity at this point
Send a message via ICQ to Slaktmaster Send a message via AIM to Slaktmaster
And Cyanide is riding teh cl00bus!
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 07:39 PM.


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