Help - Search - Members - Calendar
Full Version: Thomas Edison VX
RPG RPG Revolution Forums > Scripting > Script Tutorials > RGSS2
bulletxt
Thomas Edison VX
Author: BulletXt (bulletxt@gmail.com)
Version: 0.1
Original credit goes to Kylock


This script is an enhanced version of the well known Light Effects written from Kylock. I decided to pick it up, fix some things and add some new important features. The most important one is that you can enable/disable a light through a switch call based on its type. For example you can make all FIRE lights go on/off with a switch, and with another switch make all GROUND lights go on/off. There are also new lights, for a total of 12. The script is also smart when using KGC Day Night system! When it's day, the lights keep off and when it's night they automatically go on! Instructions are inside the script.

IMPORTANT: if you are already using Light Effect VX script, you can simply replace it with this one. Your lights will still work!


Example screenshot:



Download Demo:
here
If you directly want the script and the light picture needed, you can get them: here and here


Alternate Script Version:
this is an alternate version of Thomas Edison VX script. It has the following features added:
- Size you want \S[x] where x is a digit from 0 to 9
- Is it flickering or not \F
- What ever color you want \R[x1] \G[x1] \B[x1] \T[x2] where x1 is a digit from 0 to 510 and x2 is a digit from 0 to 255
For download and more info: here
The Alternate Script comes with NO support. Don't ask for help, don't complain. It will be ignored. The author has released it "as is" with no support.


Cheers,
BulletXt
Octople Threat
This is some epic stuff man. I'll be sure to add you to my credits list.

The only thing I could really ask for is if it would be possible for the lights to have a more pronounced effect. Like a map is nigh to pitch black except for the part around a campfire or something...
reijubv
cool, another light effects to use ^^
Thanks!
Speed@
OMG! Nice!
Auron
Nice i like it

woot.gif blink.gif woot.gif woot.gif


[Show/Hide] Click Me
jameba
I got a question about the light script.. how i can make an event only appear in phase 0? i wanna make the windows of a house light the floor when its phase 0.. because it's when the sun is stronger, i keep trying but i can't.

[sorry for grammar errors, .. mage.gif ]

bulletxt
QUOTE (jameba @ Jun 13 2009, 06:57 AM) *
I got a question about the light script.. how i can make an event only appear in phase 0? i wanna make the windows of a house light the floor when its phase 0.. because it's when the sun is stronger, i keep trying but i can't.

[sorry for grammar errors, .. ]


Look at it this way. It's morning when KGC_DAY_NIGHT_SCRIPT_VARIABLE variable is 3. It's night when it's 1 and 2. This is enough to understand how to handle your request wink.gif And don't forget to read the script intructions, especially the Tips & Tricks section. You will probably need that to accomplish your request.
Speed@
What about Kylock's Time System? Almost same as KGC Day/Night...
Can I get support for that?
bulletxt
QUOTE (Speed@ @ Jun 13 2009, 09:10 AM) *
What about Kylock's Time System? Almost same as KGC Day/Night...
Can I get support for that?


I'll check it out later.
MysTaFoX
This is better..
Great job, It's really nice.

I would use it but I already have way too many systems.
bulletxt
QUOTE (MysTaFoX @ Jun 13 2009, 08:30 PM) *
This is better..
Great job, It's really nice.

I would use it but I already have way too many systems.


What do you mean? You don't need to have the day night system. That's just an additional feature the script supports in case you have that system tongue.gif
shadow44
biggrin.gif this is nice.


sad.gif i was wondering? can you make a script that a light on the player is that possable i'm just wondering?
Khev
@shadow44: You mean like a flashlight or something? Like just a circle in the middle of the screen surrounding the main character so that he won't see the whole screen? i.e. in a cave or something.
Shaffinaaz
Hi everyone,

I had some free time on my hand so I started playing with your script (Thomas Edison VX) and I have come up with something very interesting...
I rewrite it in such a way that you can use functions similar to those in messages.

You can now decide
- If it is flickering or not \F
- What size you want \S[x] where x is a digit from 0 to 9 (Recommended up to 5)
- Your own type \K[FIRE] or \K[FLAME] and turn them ON/OFF using switches. But first you need to define it in TYPE_HASH at the top of the script. I guess it is not case sensitive.
- What ever color you want \R[x1] \G[x1] \B[x1] \T[x2] where x1 is a digit from 0 to 510 and x2 is a digit from 0 to 255
- If it will fadeout or fadein after x frame \O[x] and \I[x]

But the switches to turn ON/OFF FIRE, GROUND, LIGHT or TORCH have been removed

[Show/Hide] Screenshot
Click to view attachment

There might be bugs... and as you can see this is my second post... I hope Bulletxt can continue on what has been improved...

EDIT: I change the name in case there are missing features...
Credits : Bulletxt, Kylock, Yanfly (Custom Message System - Message Features)
bulletxt
QUOTE (Shaffinaaz @ Jul 19 2009, 07:09 PM) *
Hi everyone,

I had some free time on my hand so I started playing with your script (Thomas Edison VX) and I have come up with something very interesting...

I rewrite it in such a way that you can use functions similar to those in messages.

You can now decide what
- Size you want \S[x] where x is a digit from 0 to 9
- Is it flickering or not \F
- What ever color you want \R[x1] \G[x1] \B[x1] \T[x2] where x1 is a digit from 0 to 510 and x2 is a digit from 0 to 255

Click to view attachmentClick to view attachment
Click to view attachment

There might be bugs... and as you can see this is my second post... I hope Bulletxt are continue on what is has been improved...


Thanks for your work, I don't have time to test it now so please give more details to users. For example, does it support all features of Thomas Edison VX script? If it doesn't, please name the script as "an alternate script" since it's not Thomas Edison VX script + new features smile.gif

Once you test it enough I'll be happy to include it in main thread smile.gif
Octople Threat
Only thing that I can think of to improve is to have each light actually affect visibility... Heh... Probably take a thousand lines of script though...
Shaffinaaz
QUOTE (Octople Threat @ Jul 19 2009, 10:14 PM) *
Only thing that I can think of to improve is to have each light actually affect visibility... Heh... Probably take a thousand lines of script though...

Can you give some example?
Octople Threat
QUOTE (Shaffinaaz @ Jul 19 2009, 10:19 PM) *
QUOTE (Octople Threat @ Jul 19 2009, 10:14 PM) *
Only thing that I can think of to improve is to have each light actually affect visibility... Heh... Probably take a thousand lines of script though...

Can you give some example?


Uhh... Not really an example... But think of it like this... A map is completely dark, except you have a few lights around and the area around them is visible, slowly becoming less and less so until it fades into blackness... Does that help explain it?
SuperMega
QUOTE (Shaffinaaz @ Jul 19 2009, 10:09 PM) *
Hi everyone,

I had some free time on my hand so I started playing with your script (Thomas Edison VX) and I have come up with something very interesting...
I rewrite it in such a way that you can use functions similar to those in messages.

You can now decide what
- Is it flickering or not \F
- Size you want \S[x] where x is a digit from 0 to 9 (Recommended up to 5)
- Define your own type \K[FIRE] or \K[FLAME] and turn them ON/OFF using switches. But first you need to define it in TYPE_HASH at the top of the script. I guess it is not case sensitive.
- What ever color you want \R[x1] \G[x1] \B[x1] \T[x2] where x1 is a digit from 0 to 510 and x2 is a digit from 0 to 255

But the switches to turn ON/OFF FIRE, GROUND, LIGHT or TORCH have been removed

Click to view attachment

There might be bugs... and as you can see this is my second post... I hope Bulletxt are continue on what is has been improved...

EDIT: I change the name in case there are missing features...

Wow! That's some pretty handy features right there. I need to try this version too. You might want to make another post for this by itself.
Shaffinaaz
QUOTE (Octople Threat @ Jul 19 2009, 10:35 PM) *
Uhh... Not really an example... But think of it like this... A map is completely dark, except you have a few lights around and the area around them is visible, slowly becoming less and less so until it fades into blackness... Does that help explain it?

something like a fading feature? its possible, i'll see what I can do... Done, but it does not work with flickering, though. Update the post...
bulletxt
QUOTE (Shaffinaaz @ Jul 19 2009, 11:39 PM) *
QUOTE (Octople Threat @ Jul 19 2009, 10:35 PM) *
Uhh... Not really an example... But think of it like this... A map is completely dark, except you have a few lights around and the area around them is visible, slowly becoming less and less so until it fades into blackness... Does that help explain it?

something like a fading feature? its possible, i'll see what I can do... Done, but it does not work with flickering, though. Update the post...


Let me know if you want me to include your script in main thread or if you want to create your own wink.gif
Octople Threat
QUOTE (Shaffinaaz @ Jul 19 2009, 11:39 PM) *
QUOTE (Octople Threat @ Jul 19 2009, 10:35 PM) *
Uhh... Not really an example... But think of it like this... A map is completely dark, except you have a few lights around and the area around them is visible, slowly becoming less and less so until it fades into blackness... Does that help explain it?

something like a fading feature? its possible, i'll see what I can do... Done, but it does not work with flickering, though. Update the post...


That's not quite what I mean... Fading out yes, but having the area around the candle be 'lit', and providing visibility and that fading out as you get further away from the light. Like how lights and candles would work in real life; They don't illuminate the entire room, and the closer you are to them, the more visibility you have.

bulletxt
I added the alternate script made from Shaffinaaz in main thread.
The Alternate Script comes with NO support. Don't ask for help, don't complain. It will be ignored. The author has released it "as is" with no support.
Demonaci
hey i was wondering about something since i am using the script and i wanna to know if i can make events only appear when its dark like the stores are close and you have to lock pick to get into it
BizarreMonkey
I'm not sure whether its a script im using or this one, but When I draw pictures on the screen or issue a fade out to black command, the light stays there, so I have a black screen or picture with light showing through, I need this fixed cause it looks really weird. But Like i said it could just be my script order. but if anyone else has the issue, would be nice to have it fixed.

I'll try putting some scripts below it and reordering my scripts. I'll report back later with what I find.

Oops, sorry, I didn't realize i was necroposting.

Edit: Even at the top of the scripts list it changed nothing, I've been searching in the script for a priority modifier but haven't found any.

Is there a way to fix this that I don't know about?

Edit: 2nd of January, still no replies. I really would like to know if/how I can fix this. Please help smile.gif
bulletxt
QUOTE (BizarreMonkey @ Dec 27 2009, 04:44 AM) *
I'm not sure whether its a script im using or this one, but When I draw pictures on the screen or issue a fade out to black command, the light stays there, so I have a black screen or picture with light showing through, I need this fixed cause it looks really weird. But Like i said it could just be my script order. but if anyone else has the issue, would be nice to have it fixed.

I'll try putting some scripts below it and reordering my scripts. I'll report back later with what I find.

Oops, sorry, I didn't realize i was necroposting.

Edit: Even at the top of the scripts list it changed nothing, I've been searching in the script for a priority modifier but haven't found any.

Is there a way to fix this that I don't know about?

Edit: 2nd of January, still no replies. I really would like to know if/how I can fix this. Please help smile.gif


What about turning ON all the switches of this script? That will make all lights go off. Read instructions.
Braska
I know this is a necropost, but I found a bug that I thought I might share with people. It took me a long time to figure out what was making the problem. I'm using a resize script, and so a lot of the time the boundary of my "room" is larger than the actual room itself, so that no matter where the character is the screen always centers properly. To reduce the size of my rooms and accomodate this fact I often would use the "both loop" feature. My character can see 9.5 tiles away, so using the loop meant I only needed to have my rooms be oversized by 5 tiles each direction instead of 10, thus giving me the same basic effect.

The bug happens when doing this. Say you have a torch that you walk past. As soon as the "loop" feature begins to display a portion of the map that it loops, meaning as soon as the screen shows you not only what's to your left but the looped stuff from the right side, the light script shuts itself off. I know this isn't very clear sounding, but it's the best I can do. It's a really weird thing and for the life of me I couldn't figure it out untill I had a minor epiphany and thought maybe that was doing it..

Not really a huge problem, just thought I'd point it out biggrin.gif
chaco
This is such a beautiful script! Makes my game look 100x better!
Thank you for this, and I have found no errors AT ALL with it either! laugh.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.