- 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.

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)

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.

And thats basically it.
With this you can do ... this
I hope someone will find this usefull, as it took longer to make this tutorial than to event this system lol.
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.

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)

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.

And thats basically it.
With this you can do ... this
I hope someone will find this usefull, as it took longer to make this tutorial than to event this system lol.
Attachments
-
101.4 KB Views: 19
Last edited:

