Dynamic Time Based Lighting System

Status
Not open for further replies.

Skunk

Melody Master
Veteran
Joined
Mar 2, 2013
Messages
1,069
Reaction score
398
First Language
English/Slavic
Primarily Uses
RMMV
Hey folks!
I've spent the past few hours coming up with a method for having a dynamic lighting system based on the time of day.
To do this we will need two plugins:

MOGHUNTERS Time System
MOGHUNTERS Time System HUD (optional)
Soulpour777 Thomas Edison Lights

The first thing we are going to do is download and install the plugins, and make sure they are under any core plugins.
For this example we are going to make it so the street lights in our happy little town will come on at 8 oclock at night, and turn off at 6 in the morning.
There are more than one way to do this, but with this method we can also have doors not open until morning, NPC's will only give you certain dialogue, and i'm sure there are plenty other nifty things you can do with it.

Prestep: Create a switch that says "sunset".

Step 1: Create an event on the map you wish to have this effect, in that event we are going to set it to parallel process.
We are going to control the variables from Mog's time system inside this event.
Plainly put, this says "if its past 8 o'clock, then turn the lights on, if its past 6 am, turn them off". (it is very important to pay attention to the identifier) ie: = > < etc.

Capture.PNG

Step 2: Now we need to set up our light events to get their tasks from the event above.
Using this event comment "LIGHT 99 [250,666,700,350] true B" we are telling rpg maker to turn ON this light when switch 99 is turned to ON. (be sure it is a parallel process)

Capture2.PNG

Step 3: Now you can set up your time plugin to have all the specs you'd like it to have, as well as the HUD.

LOCKED DOORS: using this exact same method, we can prevent the player from accessing different doors or npc's.
Do to this simply copy the the contents from the first event where we controled the variables.
So because there is a conditional branch within a conditional branch, we need to erase the switches from the top part, so it will look like this.
And because its only a door, change it to ACTION BUTTON.

Capture3.PNG

Capture.JPG

And thats basically it.
With this you can do ... this :D
I hope someone will find this usefull, as it took longer to make this tutorial than to event this system lol.
 

Attachments

Last edited:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,355
Reaction score
7,669
First Language
German
Primarily Uses
RMMV
Soulpour777 Thomas Edison Lights link is dead. if u have pls i want this plugins
all soulpour's links are dead, because he left the community.
and the reason he left the community is that it was proven in at least one case of copyright theft (with strong evidence of more cases) where he demanded payment and credit for a script that was written by someone else.
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
@Bilalichwa As there is no way to retrieve a working link, and a high chance that this plugin contains stolen code, we cannot help you to find it.

@Skunk If you come up with a way of doing this using a different plugin to that of soulpour, we can reopen the thread for you to edit it.

[mod]As this tutorial cannot be followed in its present form, I am closing it.[/mod]
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 2)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,853
Messages
1,016,986
Members
137,561
Latest member
visploo100
Top