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 02-22-2002, 02:39 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Clouds

Here is a little script I made for an little Graal Omive i am making:
NPC Code:

NPC Code:

// NPC made by NyghtGT
if (created) {
setimg smoke.gif;
this.speed=0.2; // Increase to go faster
this.startx=x;
this.starty=y;
timeout=1;
drawoverplayer;
dontblock;
}
if (timeout) {
x-=this.speed;
updown();
if (this.updown=1) {
y=y;
} else {
if (this.updown=2) {
y-=0.2;
} else {
y+=0.2;
}
}
poscheck();
timeout=0.12;
}
// Functions
function updown() {
this.updown=int(random(0,3));
}
function poscheck() {
if (x<=2) {
x=62;
y=int(random(0,64));
sleep 1;
this.x=x;
this.y=y;
}
}




I had to use smoke.gif for know till i can make me some better cloud images. But what it does is the movie starts and the clouds come in ... and blah blah blah, you'll just have to wait, . I know this script is very basic but does it seem to be ok for my purposes ?
Reply With Quote
  #2  
Old 02-22-2002, 09:34 PM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
Can you attach smoke.gif please, I had to switch computers so I lost some of my images

BTW: Your PM inbox is full
Reply With Quote
  #3  
Old 02-22-2002, 10:58 PM
Tommy2000 Tommy2000 is offline
Registered User
Join Date: Oct 2001
Location: BC Canada
Posts: 215
Tommy2000 is on a distinguished road
Send a message via AIM to Tommy2000
here ye go
Attached Images
 
__________________

Also shared with DarkLegacy (LiVeToDiE) - AIM - UnseenOiScouts
Reply With Quote
  #4  
Old 02-22-2002, 11:11 PM
neomaximus2k neomaximus2k is offline
Registered User
Join Date: Feb 2002
Location: UK
Posts: 324
neomaximus2k is on a distinguished road
Send a message via ICQ to neomaximus2k
Re: Clouds

Quote:
Originally posted by nyghtGT
Here is a little script I made for an little Graal Omive i am making:
NPC Code:

NPC Code:

// NPC made by NyghtGT
if (created) {
setimg smoke.gif;
this.speed=0.2; // Increase to go faster
this.startx=x;
this.starty=y;
timeout=1;
drawoverplayer;
dontblock;
}
if (timeout) {
x-=this.speed;
updown();
if (this.updown=1) {
y=y;
} else {
if (this.updown=2) {
y-=0.2;
} else {
y+=0.2;
}
}
poscheck();
timeout=0.12;
}
// Functions
function updown() {
this.updown=int(random(0,3));
}
function poscheck() {
if (x<=2) {
x=62;
y=int(random(0,64));
sleep 1;
this.x=x;
this.y=y;
}
}




I had to use smoke.gif for know till i can make me some better cloud images. But what it does is the movie starts and the clouds come in ... and blah blah blah, you'll just have to wait, . I know this script is very basic but does it seem to be ok for my purposes ?
Yes it does, but you might want to have a varying speed for different clouds
__________________
Beware of thy Inner self
NPC Code:

_.,.__
((o\\o\))
.-. ` \\``
__( )___.o"".,___
=== ~~~~~~~~
==
= Neo

Reply With Quote
  #5  
Old 02-22-2002, 11:34 PM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
don't be retarded, use arrays.
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #6  
Old 02-23-2002, 06:58 AM
TDK_RC6 TDK_RC6 is offline
Registered User
TDK_RC6's Avatar
Join Date: Jan 2002
Location: Earth
Posts: 0
TDK_RC6 is on a distinguished road
arrays would work best, but randomize it though
__________________
Staff on Renegade


email: [email protected]
aim: papivicente
Reply With Quote
  #7  
Old 02-23-2002, 08:00 AM
zallus-k zallus-k is offline
Registered User
Join Date: Sep 2001
Location: AC0265, Zaroke
Posts: 122
zallus-k is on a distinguished road
Want a better cloud graphic? Here:

You should make it translucent, but then put a whole lot of them at one place and randomize the speeds.
Attached Images
 
__________________

Solemn Destiny - Owner
Reply With Quote
  #8  
Old 02-23-2002, 08:54 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Quote:
Originally posted by Saga2001
don't be retarded, use arrays.
i'm not, its just at 2AM in the morning i'm not thing about the best syntax thats why I came here and let you guys remind me ....
Reply With Quote
  #9  
Old 02-23-2002, 09:04 AM
zell12 zell12 is offline
Gone
zell12's Avatar
Join Date: Jun 2001
Location: Alberta, Canada
Posts: 8,541
zell12 has a spectacular aura about
Send a message via ICQ to zell12 Send a message via AIM to zell12 Send a message via MSN to zell12
Quote:
Originally posted by zallus-k
Want a better cloud graphic? Here:

You should make it translucent, but then put a whole lot of them at one place and randomize the speeds.

Thats from RPG Maker o.o
__________________
Reply With Quote
  #10  
Old 02-23-2002, 09:08 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Quote:
Originally posted by zallus-k
Want a better cloud graphic? Here:

You should make it translucent, but then put a whole lot of them at one place and randomize the speeds.
thats great, i wanted it to more cartoon like, ALl it is so far is a troll dude comes out and does some arobics ...
Reply With Quote
  #11  
Old 02-23-2002, 06:47 PM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
Re: Re: Clouds

Quote:
Originally posted by neomaximus2k


Yes it does, but you might want to have a varying speed for different clouds
why should they have different speed? wind blows the same speed for every cloud...
__________________
No Webhost at the moment
Reply With Quote
  #12  
Old 02-23-2002, 07:36 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Re: Re: Re: Clouds

Quote:
Originally posted by TDO2000


why should they have different speed? wind blows the same speed for every cloud...
well I was thinking, in response to what neomaximus said, I could have foreground clouds moving faster then clouds further behind them ...
Reply With Quote
  #13  
Old 02-23-2002, 07:41 PM
neomaximus2k neomaximus2k is offline
Registered User
Join Date: Feb 2002
Location: UK
Posts: 324
neomaximus2k is on a distinguished road
Send a message via ICQ to neomaximus2k
Re: Re: Re: Clouds

Quote:
Originally posted by TDO2000


why should they have different speed? wind blows the same speed for every cloud...
Someone didn't pay much attention in geography did they!!!
the wind is not a constant speed all over, clouds move at vary speeds due to their height in the atmosphere, i could go into it but there aint much point!
if wind was a constant thing then dont you think that everywhere around the world the wind would be exactly the same???

(reminds you about warm and cold fronts)
__________________
Beware of thy Inner self
NPC Code:

_.,.__
((o\\o\))
.-. ` \\``
__( )___.o"".,___
=== ~~~~~~~~
==
= Neo

Reply With Quote
  #14  
Old 02-23-2002, 07:49 PM
Ultima_P2P Ultima_P2P is offline
Registered User
Join Date: Dec 2001
Location: On Your Doorstep
Posts: 168
Ultima_P2P is on a distinguished road
Send a message via AIM to Ultima_P2P
I have yet to see a Graalian Movie in a graal level.
I hope I get to see this sometime.

- Ultima
__________________

- ¤*U£†îmå*¤

Forever in my hands
I hold the sword...
Reply With Quote
  #15  
Old 02-23-2002, 08:17 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Quote:
Originally posted by Ultima_P2P
I have yet to see a Graalian Movie in a graal level.
I hope I get to see this sometime.

- Ultima
it will be posted in the Main Graal forum in 1-2 weeks, i'm waiting on graphix ...
Reply With Quote
  #16  
Old 02-23-2002, 09:01 PM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
Re: Re: Re: Re: Clouds

Quote:
Originally posted by neomaximus2k


Someone didn't pay much attention in geography did they!!!
the wind is not a constant speed all over, clouds move at vary speeds due to their height in the atmosphere, i could go into it but there aint much point!
if wind was a constant thing then dont you think that everywhere around the world the wind would be exactly the same???

(reminds you about warm and cold fronts)
not around the world but here the clouds are at the same height and at the same place so => same speed
__________________
No Webhost at the moment
Reply With Quote
  #17  
Old 02-24-2002, 07:47 AM
neomaximus2k neomaximus2k is offline
Registered User
Join Date: Feb 2002
Location: UK
Posts: 324
neomaximus2k is on a distinguished road
Send a message via ICQ to neomaximus2k
Re: Re: Re: Re: Re: Clouds

Quote:
Originally posted by TDO2000

not around the world but here the clouds are at the same height and at the same place so => same speed
OMG LOL clouds are not all at the same height
__________________
Beware of thy Inner self
NPC Code:

_.,.__
((o\\o\))
.-. ` \\``
__( )___.o"".,___
=== ~~~~~~~~
==
= Neo

Reply With Quote
  #18  
Old 02-24-2002, 08:29 AM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
Re: Re: Re: Re: Re: Re: Clouds

Quote:
Originally posted by neomaximus2k

OMG LOL clouds are not all at the same height


In this level *hint hint* the clouds are at the same high. I do not mean th real world...
__________________
No Webhost at the moment
Reply With Quote
  #19  
Old 02-24-2002, 10:43 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
It does not have to be ultra complex, its just clouds!!
Reply With Quote
  #20  
Old 02-24-2002, 12:05 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Quote:
Originally posted by btedji
It does not have to be ultra complex, its just clouds!!
amen ...
Reply With Quote
  #21  
Old 02-25-2002, 03:49 PM
toad1413 toad1413 is offline
toad@graal:~$ ./Oldbie
Join Date: May 2001
Location: Aust.
Posts: 3,819
toad1413 is on a distinguished road
Send a message via ICQ to toad1413
Re: Re: Re: Re: Re: Re: Re: Clouds

Quote:
Originally posted by TDO2000




In this level *hint hint* the clouds are at the same high. I do not mean th real world...
well, no, he's got you again.

You could have the level like this:

<cloud>
<cloud>
<cloud>

-----------------------------------

note the 'clouds' at different heights.

[edit]the clouds were at different spots, not ontop of each other in the text box. [/edit]
__________________
Creator of the original 'spam' icon. Worst mistake I ever made on these forums.
Reply With Quote
  #22  
Old 02-25-2002, 10:23 PM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
hahaha i have this ub3r l33t weather system, it has all 4 seasons, and it has cool things like in winter, snow can do flurries, where it does a quick circle and returns to its normal path, like its wind blown.
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #23  
Old 02-26-2002, 03:09 PM
neomaximus2k neomaximus2k is offline
Registered User
Join Date: Feb 2002
Location: UK
Posts: 324
neomaximus2k is on a distinguished road
Send a message via ICQ to neomaximus2k
Re: Re: Re: Re: Re: Re: Re: Re: Clouds

Quote:
Originally posted by toad1413


well, no, he's got you again.

You could have the level like this:

<cloud>
<cloud>
<cloud>

-----------------------------------

note the 'clouds' at different heights.

[edit]the clouds were at different spots, not ontop of each other in the text box. [/edit]
MUWHAHAHAHAHAHAHAHAHAHAH
erm how did we get into an argument about clouds?
and dude you never said in the level at first so :P
__________________
Beware of thy Inner self
NPC Code:

_.,.__
((o\\o\))
.-. ` \\``
__( )___.o"".,___
=== ~~~~~~~~
==
= Neo

Reply With Quote
  #24  
Old 02-27-2002, 05:06 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
JEZUS !

This was just about clouds, it did not have to turn into a wrong/right contest ....
Reply With Quote
  #25  
Old 02-27-2002, 08:00 PM
neomaximus2k neomaximus2k is offline
Registered User
Join Date: Feb 2002
Location: UK
Posts: 324
neomaximus2k is on a distinguished road
Send a message via ICQ to neomaximus2k
Quote:
Originally posted by nyghtGT
JEZUS !

This was just about clouds, it did not have to turn into a wrong/right contest ....
*points finger at you* I AM RIGHT YOU ARE WRONG
MUWHAHAHAHAHAHAHAHAH
thats a joke before you all find out where i live and try and beat me up
*hides*
__________________
Beware of thy Inner self
NPC Code:

_.,.__
((o\\o\))
.-. ` \\``
__( )___.o"".,___
=== ~~~~~~~~
==
= Neo

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 09:28 AM.


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