This script can make the player only able to see in a certain radius around themself. The rest is darkness. This size and opacity of this darkness is controlled using variables and turned on/off using a switch.
How to Use
1. Place script under Materials and above Main (And under any battle scripts you are using).
2. Copy the image from the demo into your project’s /Graphics/System/ folder.
3. Read script instructions and settings to learn how to use and set variables.
4. Make sure to start a new game after adding the script.
Get it here >
Pretty neat… I think its nice to those who doesn’t want to use Khas’ lighting to achieve that same effect… :)
You should do something about the blog organization. The way the scripts are displayed in the first page it doesn’t allow visitors to identify whats is new.
On the homepage, new scripts are added at the very top left of category the were added to. They appear as the first post of each category page.
I agree it’s not designed for visitors to know what’s new, but sorry that’s how it is.
Oh, okay. That is something at least.
I am having a weird problem with this script, I set up everything right and it works fine but when I go to the play test window, I can not move my character at all even though all the variables and stuff for this script are in a different map.
That is a weird problem, I cannot replicate it. Here’s a generic checklist of things you can try to error trap:
It might be because I didn’t put it into a new project; I put it into one with a save already in it. I don’t know though.
You can find that out by starting a ‘new game’ when you test play your project.
Ya, it didn’t happen when I started a new save.
Any time you add a new script to your project, you should always start a new game in your test plays.
I’m having a bit of an issue… The image appears when the switch comes on, but it only covers the screen if the character is directly in the centre. If I move down, the image moves down too, leaving the top of the screen bright as ever. How do I fix that? I thought it might be something to do with the variables, as I’ve never really got my head around those…
Did you use the image from the demo?
Ah no… I couldn’t find the demo.
Link to the demo is at the top of the script page where you copied the script. Basically, just need to make the image bigger.
Wonderful! Got it working. Thanks a lot!
Please, Galv. How can I fix this? The script is okay and great, but I’m having a little problem with it. And I’m not good at English much, so I hope you get what I want to say when you see this screenshot: http://goo.gl/5dVRyV thank you, Galv.
I updated the script on the page:
I added a Z_LEVEL setting. Make the number higher to make it appear over things like pictures.
eg in the version 1.1 script. try:
Z_LEVEL = 200
Wow. Thank you for the quick reply. And everything is just got perfect now. Thank you so much, Galv.
Thank you, fantastic script, exactly what I was looking for. Thank you for making it possible to view the events in the demo game. This helped me to figure out what to do even though I am a complete novice using scripts. Thank you again.
Thank you for taking the time to study the demo and learn how to use the script. I appreciate you doing that so much.
i have no idea how to use scripts. i have read it all but idk how to set it so that it looks like the picture you have as an example. i dont know how to switch it on
Demo link is at the top of the page. A good way to learn is to explore and look at everything to see how it’s set up
Hey Galv thanks for your great script, however I have a great trouble to make this script active, for 2 hours I’ve messed around with your demo project and I still don’t know how to use your script, I even make a new project and place only your script, then import those 2 image from your demo to the graphic\system folder, I make an event I put a switch and name it Visrange on off, and set it to ON, but when I play test it,the darkness never come.. I tried with the other one and the result is same, This trial and error have driven me crazy.. Is the switch that I make need to be in index 001 ? Is the switch name must be Visrange on off?
To be honest after 2 hours trial and error I can’t even make the darkness come..
No, I don’t blame you Galv, It’s my dumbness.. Sorry for bothering you.. I will do some research again
Hey Galv I think I found the problem, the switch must be set on index 001, I don’t know why but if I make the on off switch at index 001 and turn it on the darkness effect is active, when I tried to put the switch to another index other than 001, it won’t active.. the naming of the switch is exempt, I don;t know if it”s happen to the others or only me.. But sorry for bothering you Galv.. Thanks for this script
Hi galv , forget my comments and please delete all of my comments, I have figured something, at the script when it says
SWITCH = 5000 I change that to SWITCH = 1
hte mean of 1 if I’m not wrong is the index of the switch wich is 001 right? the same rules applies on the other variables right>
FORGIVE ME for my idiotica, BIG thanks to this script
now I’ll shut my mouth and stay away and not bothering you again Galv..Sorry for triple posting
Very nice script, great effect I’m using in an underground dungeon level. However there is a compatibility issue with killozapit’s Cache Back that comes with your Menu Theme demo. And that is once I walk on an event to transfer location 3 times, the darkness effects all break, even though the switches remain on. Deleting killozapit’s Cache Back fixes the issue.
That sounds like a bug that killozapit fixed in her latest script
This seems very useful for dark caves. Shame it doesn’t seem compatible with Yami’s overlay script. :(
Not sure why it wouldn’t be compatible. Make sure you aren’t using the same variables and switches each script use.
Hi Galv ^^ I came across a problem with this script in handling Menu Backgrounds. When you’re displaying the visibility range and access your menu, turns out it lags the game for about 5 seconds. I thought it was my Vi Menu that was causing it but then turns out there’s something from the visibility range that lags the whole menu. In vanilla, it also somehow stops the menu from going back to the map quickly.
I’ve heard some computers load large images slowly in rpgmaker. If you download my demo for it, is it still slow?
A bit. Could it be on my unit’s part? I am using the older version from the demo. I wonder why though, once I close or turn off the visibility range it goes quite fast.
ummm so galv .. a very stupid question . am new to RPGmaker and i cant grasp switches and variable very well . and i was wondering what kinda switches and variable do i use for this?? too much to ask sorry
I recommend asking in an rpgmaker forum for help with that
Hey, Am I just being dumb I cant find the picture i need to download
The link to the demo is at the top of the script page:
click where it says “Demo – Version 1.0” the image is in the demo.
I’m wondering if it would be possible to have this effect centered around an Event rather than the player? So you could have a “Floating Torch” that follows the player, and is itself the source of light (and shadows with your other script :) ) Cause that would be pretty sweet.
That’s a neat idea and something I planned on doing for my project. I’ll update the script when I get to it (might be a while yet hehe)
Excellent, I’ll be looking forward to it!
Question: is there any way to allow additional lighting with this to come from say a torch? (I’m using it for underground and I’d like to have a similar effect that’s on a character on a specific tile or event if possible). It would be a nice touch at the very least.
No, sorry. Others have written lighting scripts you may want to look into
Thank you! Also, such a quick response! Keep up the good work!
Hey Galv, I seem to have a weird issue that others haven’t had. Whenever the effect activates, instead of staying as a range circle like in your demo, the screen will slowly fade to black leaving the player unable to see anything. Any ideas on how to fix this?
Check your event commands and the variables that are being used for the script (you might be using them elsewhere, too). This sounds like you’re doing something in an event somewhere :)