I'm trying to figure out how to to change lightning from day to night with triggers but its not going all that well at all :(
Is there some good tutorial how to do this or some sample map i can use? The thanson02 campaign map is very difficult to find what i search. Look at the picture i added, its from that map and i know that this is the trigger that make it day but wtf..
Environment - Set lighting to (No Value), blending over 40.0 seconds
Make no sense what so ever to me. Please help me, would be awesome if you could make a very easy sample map for me or point to some good existing one.
You need to create a lighting object in data for both night and day. That's what fills the (No Value).
In order to determine which you should transition to, use a global boolean variable. As an example, say your boolean variable started at false, and your game started in day lighting. Then you would have a transition trigger firing every x seconds. The trigger would check the value of the boolean variable. If false, set it to true and transition to night. If true, set it to false and transition to day.
Sorry mate, was way to confusing for me, tested your map and all it does is changing from day to night in a few seconds and the back again and almost like its flashing. Your example is even more confusing and does not even work when i run your map, would even say its broken :(
Hmmm well it was supposed to work, I'll take a look soon.
To help you, keep in mind that day and night in starcraft are 3 things : validator, time and lighting. I recommand you to start with the lighting, which is the most complicated part. You could export the lightings in my map to help you. Once it is done, set all of your lighting with triggers like 'set time of day lighting' and 'set day length'. Finally, to make your units interact with the cycle, they are some validators who work depending on the time of the day.
There's nothing really to hard about it but use a single loop with the setday lighting, a wait as long as your blend timing, set your night lighting, and the wait again; easy as that. If you really wanted to you could instead use a variable to keep track of the lighting cycle, use a switch or if-then,and a single wait instead. Personally I think running 4 lightings provides a smoother transition. Either way youll have to spending some time in the lighting editor to setup the colors, brightness, visuals, etc.
Mugen245s a bit busy, Stole his quote though xD , I PMed him earlier through Skype, he said something about using Custom Scripts after building the Triggers' and that he had his Starcraft II uninstalled in his Desktop.
Also' heres the trick I discovered from him' He told me that to create a Loop like JQuery, $(document).ready stuff like that if you know Java, or a function which invokes upon start, set Global Variable[0] array of up to how many Day/Night season you want to occur say for example thanson02 campaign, that would be Global Variable[1] or Global Variable[0] since mostly starts with 0.
Set Global Var[0] = false upon Trigger Start, then follow the steps below.
Run the Loop' there should be a function there that states Run Loop Forever.
Wait 15 seconds.
and create an IF ELSE statement, IF Global Variable[0] = false/
Set Lightning to thanson02 campaign, then set Global Variable[0] = true so that it wont fire again until the next final loop.
Set Global Variable[1] = true;
IF Global Variable[1] == true{
Do stuff as said earlier, Set Lighting to your choice.
Set Global Variable[1] = false.
Set Global Variable[0] = false.
} and so on..
You all got nice feedback, thank you! but lets say I'm talking about 1+1=2 and maybe even 2+2=4 then you are talking about (z2-z3)^2 = 4(z3-z1)(z1-z2) sin^2 alpha/2, we simply are not at the same level of knowledge how to even just change from day to night.
Written text have never been my strong side, i learn fastest by just looking at a good example, anybody who wanna make me such a map? Or is it to complicated to even make the most basic map example?
Mugen245s logic was simple it was even written without Calculations :) well based on him he said. Up to you' the basics are triggers, Anyways nice analyzation, he did however made the formula using Algebra :)
if only Mugen is back from the days he started learning SC2' well I knew him as a friend personally. Hes my boss's youngest son, Maybe I could ask him regarding about his Projects friend :)
24th Project he made was, Growing Trees along with a Binary IF ELSE Boolean Weather System, you could however find his Map in the DLs section.
Also, don't forget that before you change to night, you need to pause all unit, and send a text message to all players saying "What a horrible night to have a curse." Fade out, change your lighting, then fade in and unpause all units.
Sorry for asking this but where is the DL section? i checked "maps" if that's what you meant but i only found 2 uploads by him but they don't look like they are "it".
Just change lighting to like MeinhoffNight over x amount of seconds, and back to MeinhoffDay. It's super easy. Or just use other lighting (find one you like, copy it and make it darker, and you have day and night).
I'm trying to figure out how to to change lightning from day to night with triggers but its not going all that well at all :(
Is there some good tutorial how to do this or some sample map i can use? The thanson02 campaign map is very difficult to find what i search. Look at the picture i added, its from that map and i know that this is the trigger that make it day but wtf..
Environment - Set lighting to (No Value), blending over 40.0 seconds
Make no sense what so ever to me. Please help me, would be awesome if you could make a very easy sample map for me or point to some good existing one.
@Sherlia: Go
Mugen245 got the formula using Boolean, lagless ask him.
@Reul123: Go
Thanks, asked him, now i just hope he will reply :)
@Sherlia: Go
You need to create a lighting object in data for both night and day. That's what fills the (No Value).
In order to determine which you should transition to, use a global boolean variable. As an example, say your boolean variable started at false, and your game started in day lighting. Then you would have a transition trigger firing every x seconds. The trigger would check the value of the boolean variable. If false, set it to true and transition to night. If true, set it to false and transition to day.
Man I got the perfect thing for you! I done this a long time ago...
I used the principe of day and night with season changes, so I think that it will help you a lot.
http://www.sc2mapster.com/forums/resources/trigger-libraries/47097-season-cycle/
@tatatatate: Go
Sorry mate, was way to confusing for me, tested your map and all it does is changing from day to night in a few seconds and the back again and almost like its flashing. Your example is even more confusing and does not even work when i run your map, would even say its broken :(
Hmmm well it was supposed to work, I'll take a look soon.
To help you, keep in mind that day and night in starcraft are 3 things : validator, time and lighting. I recommand you to start with the lighting, which is the most complicated part. You could export the lightings in my map to help you. Once it is done, set all of your lighting with triggers like 'set time of day lighting' and 'set day length'. Finally, to make your units interact with the cycle, they are some validators who work depending on the time of the day.
There's nothing really to hard about it but use a single loop with the setday lighting, a wait as long as your blend timing, set your night lighting, and the wait again; easy as that. If you really wanted to you could instead use a variable to keep track of the lighting cycle, use a switch or if-then,and a single wait instead. Personally I think running 4 lightings provides a smoother transition. Either way youll have to spending some time in the lighting editor to setup the colors, brightness, visuals, etc.
@Sherlia: Go
Mugen245s a bit busy, Stole his quote though xD , I PMed him earlier through Skype, he said something about using Custom Scripts after building the Triggers' and that he had his Starcraft II uninstalled in his Desktop.
Also' heres the trick I discovered from him' He told me that to create a Loop like JQuery, $(document).ready stuff like that if you know Java, or a function which invokes upon start, set Global Variable[0] array of up to how many Day/Night season you want to occur say for example thanson02 campaign, that would be Global Variable[1] or Global Variable[0] since mostly starts with 0.
Set Global Var[0] = false upon Trigger Start, then follow the steps below.
Run the Loop' there should be a function there that states Run Loop Forever.
Wait 15 seconds.
and create an IF ELSE statement, IF Global Variable[0] = false/ Set Lightning to thanson02 campaign, then set Global Variable[0] = true so that it wont fire again until the next final loop. Set Global Variable[1] = true;
IF Global Variable[1] == true{ Do stuff as said earlier, Set Lighting to your choice. Set Global Variable[1] = false. Set Global Variable[0] = false. } and so on..
Goodluck, Best regards from Mugen and Me.
You all got nice feedback, thank you! but lets say I'm talking about 1+1=2 and maybe even 2+2=4 then you are talking about (z2-z3)^2 = 4(z3-z1)(z1-z2) sin^2 alpha/2, we simply are not at the same level of knowledge how to even just change from day to night.
Written text have never been my strong side, i learn fastest by just looking at a good example, anybody who wanna make me such a map? Or is it to complicated to even make the most basic map example?
@Sherlia: Go
Mugen245s logic was simple it was even written without Calculations :) well based on him he said. Up to you' the basics are triggers, Anyways nice analyzation, he did however made the formula using Algebra :)
if only Mugen is back from the days he started learning SC2' well I knew him as a friend personally. Hes my boss's youngest son, Maybe I could ask him regarding about his Projects friend :)
24th Project he made was, Growing Trees along with a Binary IF ELSE Boolean Weather System, you could however find his Map in the DLs section.
Also, don't forget that before you change to night, you need to pause all unit, and send a text message to all players saying "What a horrible night to have a curse." Fade out, change your lighting, then fade in and unpause all units.
Sorry for asking this but where is the DL section? i checked "maps" if that's what you meant but i only found 2 uploads by him but they don't look like they are "it".
Just change lighting to like MeinhoffNight over x amount of seconds, and back to MeinhoffDay. It's super easy. Or just use other lighting (find one you like, copy it and make it darker, and you have day and night).
Thanks, i just found out that :D, i'm curious tho, whats the time of day thing? Is it meant to be used for validators and such?
I have no idea. I have never used it.
@Sherlia: Go
You'll have to create many trigger sections for that.