albertibay 0 Report post Posted October 10, 2012 Ok so i made my day-night system into one CE the problem is when i enter a new area the conditional branch part resets E.G. Its in the middle of the common event The hud pic is in D15 Went inside Conditional branch reset The hud pic went back to D11 Here is the CE sorry if the images are a bit off i'm using a net book 1024x700 but changed it to a higher no to run rmxp Share this post Link to post Share on other sites
0 Polraudio 122 Report post Posted October 10, 2012 Please dont double post. I would use variables and wait commands to track the time. with a variable you can track time instead of having the common event start over all the time. EX: wait 100 frames Variable1 + 1 [conditional branch]if variable == 1 [insert tone change or pic/whatever] dawn = false dusk = true end [conditional branch]if variable == 2 [insert tone change or pic/whatever] dusk = false dawn = true end Note: theres no elses After the wait is over the variable will be increased by 1 then check what time of day it is with the conditional branches. once its checked it will start over and do the increase variable and check time automatically. The variables will track what time of day it is and the conditional branches are used to set the lighting/pics to whatever time of day it is. Have as many conditional branches as you want. More you use the more accurate your time will be kept. Play with it and if you dont get it just ask and i will make a little tutorial. Share this post Link to post Share on other sites
0 albertibay 0 Report post Posted October 12, 2012 If you have time, can you make it into a tutorial thx oh and sorry for double posting Share this post Link to post Share on other sites
0 dolarmak 23 Report post Posted October 12, 2012 (edited) EDIT: I realized a few things to help with this so I edited it. It's a bit more complicated than before. Like I said before you need to get away from the switches. This kinda of thing is a bit too complicated for them to be used easily.. ----------- Common Event "Day/Night Timer" Trigger= "Parallel" Condition Switch= "0001:Timer Active" Comment: ---Day/Night Control Timer--- This timer will be the day night cycle Control Variables: [0001: Day/Night Timer] += 1 Wait: 10 Frames Comment:----Day Reset---- This will Reset the timer to '0' when a 24 hour cycle has passed Conditional Branch: Variable [0001: Day/Night Timer] == 60 (or how ever long you want the say to be) - - Contrle Variable: [0001: Day/Night Timer] == 0 : Branch End Comment: ----Inside Building----- This is for if character is inside a building, the timer is still on, but the screen tones don't change Conditional Branch: Switch [0002: Inside, Time ON] ==Off - - Comment:------Time of Day (ex Midnight)----- Add more for each time of Day - - Conditional Branch: Variable [0001: Day/Night Timer] == 0 - - - -Change Screen Color Tone: (-100,-100,0,125), @20 - - : Branch End : Branch End Comment: ------Day/Night Hud-------- Add more for each time of Day Conditional Branch: Variable [0001: Day/Night Timer] == 0 - - Show Picture: 1, 'Day/night Picture' Upper Left (0,0), (100%,100%), 255, Normal - - Control Switch: [0004:Midnight] = ON : Branch End Make a new Common Event for this Common Event "Find the Time of Day" Trigger= "Parallel" Condition Switch= "0003:Find the Time of Day" Comment: -----Find Time of Day----- If character exits a building where the Screen Tone was disabled Conditional Branch: Switch [0004: Midnight]= On - - Change Screen Color Tone: (-100,-100,0,125), @20 : Branch End Control Switch: [0003:Find Time of Day] = Off ------------------------------ Repeat the 'Time of Day' section for each time you need, just change the screen tone to fit your time, And the Hud section for each picture you have. The picture for your Day/Night Hud should show up on the map transfers, and the hue/color tone changes should stick too. And if you want to stop the timer for like entering a town to keep the time of day, simply turn off the 'Timer Active' switch in the same event that transfers the player to the next map. Then on exiting the town simply turn it back on. Also this will effectly turn all maps to the tone you set. So if you want the tone to return to normal for a house with lights on for example you need to stop the timer and manually set the screen tone when they enter the room. If you want the timer to keep running but the screen tone to stay the same while inside a building, Set the "Inside Timer ON" switch on, and the timer will keep rolling, but the screen tones wont change. I also set your Hud outside this branch so that if they are inside, the timer is still running and they will still notice the time change on the Hud. When exiting a building that disabled the screen tones, turn on the switch 'Find time of Day' and the script will set the screen tone to the right tone. It will turn the switch off automatically. Let me know if you need more help. Edited October 12, 2012 by dolarmak Share this post Link to post Share on other sites
Ok so i made my day-night system into one CE the problem is when i enter a new area the conditional branch part resets
E.G.
Its in the middle of the common event The hud pic is in D15
Went inside Conditional branch reset The hud pic went back to D11
Here is the CE
sorry if the images are a bit off i'm using a net book 1024x700 but changed it to a higher no to run rmxp
Share this post
Link to post
Share on other sites