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 10-13-2001, 02:38 AM
Rone Rone is offline
Registered User
Rone's Avatar
Join Date: Aug 2001
Location: Ohio
Posts: 744
Rone is on a distinguished road
Send a message via AIM to Rone Send a message via Yahoo to Rone
Faeries

I need the script for litte light effects with drawoverplay that flie around at random and look like faeries

I TRIED and TRIED and could not figure it ou.. PLZ help

for this level

Which is not complete
Attached Files
File Type: graal cas_garden.graal (5.5 KB, 175 views)
__________________

Reply With Quote
  #2  
Old 10-13-2001, 02:46 AM
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
NPC Code:
if (created) {
setimg light2.png;
setcoloreffect 0.5,0.5,0.5,0.9;
setzoomeffect 0.1;
timeout=0.05;
this.speed=0.5;
}
if (timeout) {
this.i=(this.i+1)%20;
if (this.i==0) this.dir=int(random(0,4));
if (!((x in |0,63)||(y in |0,63|))) this.dir=(this.dir+2)%4;
x+=vecx(this.dir)*this.speed;
y+=vecy(this.dir)*this.speed;
timeout=0.05;
}

Should work, although I haven't scripted in months so it might not actually work...
__________________

Reply With Quote
  #3  
Old 10-13-2001, 03:02 AM
Enigma_GP6 Enigma_GP6 is offline
Banned
Join Date: Jul 2001
Location: Who?
Posts: 261
Enigma_GP6 is on a distinguished road
Send a message via ICQ to Enigma_GP6 Send a message via AIM to Enigma_GP6
Nice, could you send me screenshots so I can see the swhole thing? I can't see light effects on my stupid computer.

-Rebel95
Reply With Quote
  #4  
Old 10-13-2001, 03:13 AM
Rone Rone is offline
Registered User
Rone's Avatar
Join Date: Aug 2001
Location: Ohio
Posts: 744
Rone is on a distinguished road
Send a message via AIM to Rone Send a message via Yahoo to Rone
I want it to fly in circles

that goes in strait lines

Like in birdbirds PH
__________________

Reply With Quote
  #5  
Old 10-13-2001, 03:18 AM
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
Quote:
Originally posted by Enigma_GP6
Nice, could you send me screenshots so I can see the swhole thing? I can't see light effects on my stupid computer.

-Rebel95
I assume you've seen pictures of light effects? This is just one of those things randomly moving around like a typical NPC.
__________________

Reply With Quote
  #6  
Old 10-13-2001, 06:10 AM
Rone Rone is offline
Registered User
Rone's Avatar
Join Date: Aug 2001
Location: Ohio
Posts: 744
Rone is on a distinguished road
Send a message via AIM to Rone Send a message via Yahoo to Rone
Help
__________________

Reply With Quote
  #7  
Old 10-13-2001, 11:38 AM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
Quote:
Originally posted by Rone
I want it to fly in circles

that goes in strait lines

Like in birdbirds PH
Its Genmos -_- Bird Birds is ugrly and the outside has gfx errors
Reply With Quote
  #8  
Old 10-14-2001, 02:28 AM
Enigma_GP6 Enigma_GP6 is offline
Banned
Join Date: Jul 2001
Location: Who?
Posts: 261
Enigma_GP6 is on a distinguished road
Send a message via ICQ to Enigma_GP6 Send a message via AIM to Enigma_GP6
I have seen light effects before, but I want to see this one, it looks promisiing.

-Rebel95
Reply With Quote
  #9  
Old 10-14-2001, 02:33 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
offline

Quote:
Originally posted by Enigma_GP6
Nice, could you send me screenshots so I can see the swhole thing? I can't see light effects on my stupid computer.

-Rebel95
i dont think light effects work offline ....
Reply With Quote
  #10  
Old 10-14-2001, 05:57 AM
Enigma_GP6 Enigma_GP6 is offline
Banned
Join Date: Jul 2001
Location: Who?
Posts: 261
Enigma_GP6 is on a distinguished road
Send a message via ICQ to Enigma_GP6 Send a message via AIM to Enigma_GP6
Well, look at it this way, The training/tutorial has the light effects. Offline, I need scren shot.

-Rebel95
Reply With Quote
  #11  
Old 10-14-2001, 08:05 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
if you cant see light effects offline either your video card doesnt support that or graal does not support your video card or you have directx turned off
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:39 PM.


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