Started by bboyd93, June 26, 2010, 11:38:33 pm
Quote from: bboyd93 on June 26, 2010, 11:38:33 pmAdvanced Light SystemVersion: 1.0Type: EventingIntroductionAlright, this is a fairly simple combination of events that, when preformed correctly, can create a nice lighting system controlled by the player. FeaturesLights that can be turned on/off by the player.Screen that will change tone based on whether the led lights 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 inScreenshotsThe demo should cover anyone wondering how this works. . .DemoThe demo can be found at the following link:MediafireSpoiler: ShowHidehttp://www.mediafire.com/?tgwnczgktqmIncluded 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. InstructionsI'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. InstructionsSpoiler: 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 haveyour 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 FixThis 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 =ONGot 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 = -34Green = -34Blue = -17Gray = 17 Time: 10 FramesThese 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 somethingbetter, 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 =OFFOnce 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 Transferto 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 = -34Green = -34Blue = -17Gray = 17 Time: 10 FramesOnce 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 ThanksMade the system myself Author's NotesI 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 [/u]
Quote from: LelandFoster on August 12, 2013, 02:05:56 amLooks very impressive.. Is there any latest version available in the market?Please reply thanks in advance:)
Quote from: winkioI do not speak to bricks, either as individuals or in wall form.
Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.
Quote from: Blizzard on August 13, 2013, 09:34:41 amHm, if the demo is not available anymore, we might have to take down this script topic.
Quote from: Blizzard on August 26, 2013, 03:44:25 pmSure thing.