Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Light radius (https://forums.graalonline.com/forums/showthread.php?t=44855)

Soul-Blade 05-10-2003 11:33 PM

Light radius
 
1 Attachment(s)
I need the effect mode, and color settings to remove light from a light effect. Don't get this confused with light effects, which add light in order to make a lamp light effect...this is using a light effect to cancel out the light create with set effect, creating a normal light area within the radius (I made that way to complicated x-x)

Take a look at the screen to visually see what I need to do (image edited in PSP)

screen_name 05-11-2003 01:27 AM

Hmmm, I would say just make two images, one with the circle, leave about 20 pixels out of each side filled with black. Then an image, doesn't matter the size, I would say 150x150 is fine.

Center the circle, then calculate how many times you'll have to draw the block image to fill the screen, don't overlay though. It would prove difficult, but can be done.

Androk 05-11-2003 03:02 AM

Create a hole effect and then cancel it out with a white circle around the player, which is just a normal light effect:

NPC Code:

seteffectmode 2;
seteffect .5,.5,.5,.1;

showimg 0, circle.png,screenwidth/2-(circlewidth/2),screenhieght-(circlehieght/2);
changeimgcolors 0,.5,.5,.5,.1;
changeimgvis 0, 4;



That should work x.X


All times are GMT +2. The time now is 04:36 PM.

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