Chaos Project

RPG Maker => Event Systems => Topic started by: bboyd93 on June 26, 2010, 11:38:33 pm

Title: [XP]Advanced Light System
Post by: bboyd93 on June 26, 2010, 11:38:33 pm
Advanced Light System
Version: 1.0
Type: Eventing



Introduction

Alright, this is a fairly simple combination of events that, when preformed correctly, can create a nice lighting system controlled by the player.  


Features




Screenshots

The demo should cover anyone wondering how this works. . .


Demo
The demo can be found at the following link:

Mediafire
Spoiler: ShowHide
MediaFire (http://www.mediafire.com/download/a3kgug55py1tzrd)




Included in the demo, is an easy to read, 10 step process on how to use this system yourself.  

Don't want to see the demo, and simply want to use this yourself?

You can view the 10 step process in the instructions below.


Instructions

I've included instructions in the Demo, but for anyone who wants to just use this themselves, and don't want a demonstration, here are my detailed instructions, in an easily readable 10 step process.

Instructions
Spoiler: ShowHide

========================================================================

Step 1
=======

First, you need two areas that you will be using to implement this system properly.

Once you have that it's time to really get started, so go to Step 2 once you have

your two areas.



Step 2
=======

OK, find the spot where you want your light source.  

Make a new event on that spot, name it "light" or "lantern" or something similar.

Now, find the proper icon graphic.  I chose the one that looks like a lantern.

But, before setting up the eventing, let's set up the event itself.  

You need to checkmark:
      -Move animation
      -Stop animation
  and -Direction Fix

This will stop the icon from changing during gameplay.  

It's also preferable that the event be set to activate with the action button.




Step 3
========
Now for some eventing.

First, place insert some text to ask the player if he wants to turn out the lantern.  

Here's what I used. . .


Text: A lantern supplying light for the room.
Text: Would you like to put the lantern out?


Now, insert a choice box with the options Yes and No.  


Step 4
=======

Under "When [Yes]" insert these commands.  

-Change Screen Color Tone (Don't set the tone yet yet)

-Control Self Switch: A =ON


Got that? OK, now make a new variable, call it "Lights OUT"

Now insert that variable under "Contol Self Switch: A =ON"

In the variable, check "Add" and change the contant to 1.


Now, about that "Change Screen Color Tone" action. . .

You need to set it to something that only slightly dims the area, (Unless you'd prefer otherwise.)

I prefer these settings:

Red =   -34
Green = -34
Blue =  -17
Gray =   17

Time:  10 Frames


These are MY prefered settings, keep in mind that this up to the user entirely.




Also, make sure you don't put ANYTHING under the "When [No] option.

Congratulations, the first page of this event is done.


Step 5
=======

In our event, make a new page.

Under conditions, check the self switch box, and make it so Self Switch A must be on.

While we're at it, uncheck the  Stop Animation box.  


Now on to the task at hand.

First off, let's change that graphic to something that reflects the dimmed area better.

I like to use the same graphic, but change the hue to a greenish color.  If you can come up with something
better, feel free to use it.

Now, let's insert some text, to allow the user to relight the lantern.

Here's what I used:

Text: The lantern has not been lit.
Text: Would you like to light the lantern?


Got that?  Now, once again, insert a choice box with the options Yes and No.


Step 6
=======

Under the Yes option, insert these commands.

-Change Screen Color Tone (Set it back to all zeroes, at however many frames you want.)

-Control Self Switch A =OFF

Once you have that, insert a Control Variable for the "Lights Out"

This time, however, check the Sub option, but leave the Constant at 1.


Make sure to leave NOTHING under the "When [No]" Option.

Now, that's it for your light.  Playtest it to make sure it works properly before moving on to Further steps.



Step 7
=======

Considering your playtest went smoothly, you've done pretty good so far!  

Now the next part, is adjusting where your player transfers between your two areas.  

Make a new event where you want your player to transfer.  If you alread have a player transfer event,
it would be best to delete it, and follow this process.


In the event, insert a Conditional Branch.

Make the condition, so that the "Light OUT" variable must equal 1.  


Now, under the Condition, go ahead and place all your transfer information.  Including any SEs or Player Transfers.

Got it?  Ok, now under your commands, insert another "Change Screen Color Tone" command.

Make it so that the tone goes back to default, (all zeroes.) and make it occur at zero frames.  


What this means, is that if you go downstairs, but the lantern is out, the lights will NOT be dimmed in the
next area.  

Now, in your Conditions, under the "Else" option, copy and paste your transfer info, but you can leave the
Change Screen Color Tone command out.  



Step 8
=======

Alright, you're almost done. Go to your second area, (the one that you transfer to) and set up a new event that
will transfer you back to the area we just got done with.

Once the event is there, just leave it blank.  

Now go back to the other map, and go the event that transfers you.

Copy the whole Conditional Branch that we put in.  

Once you have it, go back to the second map, and paste it in to the even we just made.



Step 9
=======

Now, for some minor tweaking.  

Go into your event, and edit your transfer info.  Remove any unwanted SEs, and edit your Player Transfer
to transfer you to the proper location. Make sure you do this for both he Condition branch, and the Else branch.

Once you have that, right click the "Change Screen Color Tone" command, and select edit.

Change the tone to mirror whatever the lantern's is when it is cut off.  Mine was:


Red =   -34
Green = -34
Blue =  -17
Gray =   17

Time:  10 Frames


Once this is changed properly, select apply, and Ok.



Step 10
========

Well, I suppose it's really more of a 10 step process.  

'Cause that's it!  All that's left to do now, is to playtest, and see to it that our process works.

Things to look for are as follows:

-Lantern can be turned on or off at players will
-Lantern dims the area
-Lantern icon changes
-If the lantern is off, it will not affect the tone of the next area
-Leaving the area, and coming back will result in the tone that the player left it in.  


If preformed properly, this process should work just fine.  

I don't require any credit unless the user wants to give me some, as it is a relativley simple use of eventing.  









Credits and Thanks




Author's Notes

I don't require any credit given to me, unless you simply feel the need to give it to me.  This is a very simple method, that requires just a little knowledge of eventing.  So there's no real need to require credit :P
Title: Re: [XP]Advanced Light System
Post by: LelandFoster on August 12, 2013, 02:05:56 am
Quote from: bboyd93 on June 26, 2010, 11:38:33 pm
Advanced Light System
Version: 1.0
Type: Eventing



Introduction

Alright, this is a fairly simple combination of events that, when preformed correctly, can create a nice lighting system controlled by the player.  


Features


  • Lights that can be turned on/off by the player.
  • Screen that will change tone based on whether the led lights (http://www.niceledlights.com) are on or off.
  • Changing tone in one area, won't affect other areas.
  • Coming back to an area will maintain the same tone the player left it in



Screenshots

The demo should cover anyone wondering how this works. . .


Demo
The demo can be found at the following link:

Mediafire
Spoiler: ShowHide
http://www.mediafire.com/?tgwnczgktqm (http://www.mediafire.com/?tgwnczgktqm)




Included in the demo, is an easy to read, 10 step process on how to use this system yourself.  

Don't want to see the demo, and simply want to use this yourself?

You can view the 10 step process in the instructions below.


Instructions

I've included instructions in the Demo, but for anyone who wants to just use this themselves, and don't want a demonstration, here are my detailed instructions, in an easily readable 10 step process.

Instructions
Spoiler: ShowHide

========================================================================

Step 1
=======

First, you need two areas that you will be using to implement this system properly.

Once you have that it's time to really get started, so go to Step 2 once you have

your two areas.



Step 2
=======

OK, find the spot where you want your light source.  

Make a new event on that spot, name it "light" or "lantern" or something similar.

Now, find the proper icon graphic.  I chose the one that looks like a lantern.

But, before setting up the eventing, let's set up the event itself.  

You need to checkmark:
      -Move animation
      -Stop animation
  and -Direction Fix

This will stop the icon from changing during gameplay.  

It's also preferable that the event be set to activate with the action button.




Step 3
========
Now for some eventing.

First, place insert some text to ask the player if he wants to turn out the lantern.  

Here's what I used. . .


Text: A lantern supplying light for the room.
Text: Would you like to put the lantern out?


Now, insert a choice box with the options Yes and No.  


Step 4
=======

Under "When [Yes]" insert these commands.  

-Change Screen Color Tone (Don't set the tone yet yet)

-Control Self Switch: A =ON


Got that? OK, now make a new variable, call it "Lights OUT"

Now insert that variable under "Contol Self Switch: A =ON"

In the variable, check "Add" and change the contant to 1.


Now, about that "Change Screen Color Tone" action. . .

You need to set it to something that only slightly dims the area, (Unless you'd prefer otherwise.)

I prefer these settings:

Red =   -34
Green = -34
Blue =  -17
Gray =   17

Time:  10 Frames


These are MY prefered settings, keep in mind that this up to the user entirely.




Also, make sure you don't put ANYTHING under the "When [No] option.

Congratulations, the first page of this event is done.


Step 5
=======

In our event, make a new page.

Under conditions, check the self switch box, and make it so Self Switch A must be on.

While we're at it, uncheck the  Stop Animation box.  


Now on to the task at hand.

First off, let's change that graphic to something that reflects the dimmed area better.

I like to use the same graphic, but change the hue to a greenish color.  If you can come up with something
better, feel free to use it.

Now, let's insert some text, to allow the user to relight the lantern.

Here's what I used:

Text: The lantern has not been lit.
Text: Would you like to light the lantern?


Got that?  Now, once again, insert a choice box with the options Yes and No.


Step 6
=======

Under the Yes option, insert these commands.

-Change Screen Color Tone (Set it back to all zeroes, at however many frames you want.)

-Control Self Switch A =OFF

Once you have that, insert a Control Variable for the "Lights Out"

This time, however, check the Sub option, but leave the Constant at 1.


Make sure to leave NOTHING under the "When [No]" Option.

Now, that's it for your light.  Playtest it to make sure it works properly before moving on to Further steps.



Step 7
=======

Considering your playtest went smoothly, you've done pretty good so far!  

Now the next part, is adjusting where your player transfers between your two areas.  

Make a new event where you want your player to transfer.  If you alread have a player transfer event,
it would be best to delete it, and follow this process.


In the event, insert a Conditional Branch.

Make the condition, so that the "Light OUT" variable must equal 1.  


Now, under the Condition, go ahead and place all your transfer information.  Including any SEs or Player Transfers.

Got it?  Ok, now under your commands, insert another "Change Screen Color Tone" command.

Make it so that the tone goes back to default, (all zeroes.) and make it occur at zero frames.  


What this means, is that if you go downstairs, but the lantern is out, the lights will NOT be dimmed in the
next area.  

Now, in your Conditions, under the "Else" option, copy and paste your transfer info, but you can leave the
Change Screen Color Tone command out.  



Step 8
=======

Alright, you're almost done. Go to your second area, (the one that you transfer to) and set up a new event that
will transfer you back to the area we just got done with.

Once the event is there, just leave it blank.  

Now go back to the other map, and go the event that transfers you.

Copy the whole Conditional Branch that we put in.  

Once you have it, go back to the second map, and paste it in to the even we just made.



Step 9
=======

Now, for some minor tweaking.  

Go into your event, and edit your transfer info.  Remove any unwanted SEs, and edit your Player Transfer
to transfer you to the proper location. Make sure you do this for both he Condition branch, and the Else branch.

Once you have that, right click the "Change Screen Color Tone" command, and select edit.

Change the tone to mirror whatever the lantern's is when it is cut off.  Mine was:


Red =   -34
Green = -34
Blue =  -17
Gray =   17

Time:  10 Frames


Once this is changed properly, select apply, and Ok.



Step 10
========

Well, I suppose it's really more of a 10 step process.  

'Cause that's it!  All that's left to do now, is to playtest, and see to it that our process works.

Things to look for are as follows:

-Lantern can be turned on or off at players will
-Lantern dims the area
-Lantern icon changes
-If the lantern is off, it will not affect the tone of the next area
-Leaving the area, and coming back will result in the tone that the player left it in.  


If preformed properly, this process should work just fine.  

I don't require any credit unless the user wants to give me some, as it is a relativley simple use of eventing.  









Credits and Thanks


  • Made the system myself :D



Author's Notes

I don't require any credit given to me, unless you simply feel the need to give it to me.  This is a very simple method, that requires just a little knowledge of eventing.  So there's no real need to require credit :P[/u]


Looks very impressive.. Is there any latest version available in the market?Please reply thanks in advance:)
Title: Re: [XP]Advanced Light System
Post by: WhiteRose on August 12, 2013, 02:52:33 pm
Quote from: LelandFoster on August 12, 2013, 02:05:56 am
Looks very impressive.. Is there any latest version available in the market?Please reply thanks in advance:)


Though Bboyd93 hasn't been online for some time, I'd be happy to help you. :) However, I'm not quite sure what you mean by "any latest version available in the market." Are you looking for a version of this script that does more than the system here on this page?
Title: Re: [XP]Advanced Light System
Post by: Blizzard on August 13, 2013, 09:34:41 am
Hm, if the demo is not available anymore, we might have to take down this script topic.
Title: Re: [XP]Advanced Light System
Post by: WhiteRose on August 26, 2013, 03:29:35 pm
Quote from: Blizzard on August 13, 2013, 09:34:41 am
Hm, if the demo is not available anymore, we might have to take down this script topic.


It does still have the instructions on how to set up the event system, so the topic isn't completely useless, but I do agree that it's more helpful with a demo so that people can see the system in action. If anyone is interested in using this event system, I'd be happy to put together a demo to replace the one that is missing. :)
Title: Re: [XP]Advanced Light System
Post by: Blizzard on August 26, 2013, 03:44:25 pm
Sure thing.
Title: Re: [XP]Advanced Light System
Post by: WhiteRose on August 26, 2013, 04:12:08 pm
Quote from: Blizzard on August 26, 2013, 03:44:25 pm
Sure thing.


Alright. :) I'll throw that together right now. It should only take a few minutes.

Here we go: http://www.mediafire.com/download/a3kgug55py1tzrd (http://www.mediafire.com/download/a3kgug55py1tzrd)
Title: Re: [XP]Advanced Light System
Post by: ForeverZer0 on August 26, 2013, 04:49:24 pm
Fixed the link in the OP.