What I'm looking to do is compare the current time of day vs another time and use that to trigger some night vs day based behaviors of my map. So far I've found that you can't just compare with a greater or less then operator, ended up with random false positives of being greater and/or lesser when they weren't. I can though see possibly two solutions but I'm stuck on both attempts.
The first would be to convert the time into a string and then parse that string and manually add the hours/minutes/seconds up so I can get a proper comparison between the two totals, unfortunately I really don't know enough about the language beneath the editor to have any success with that. My other attempt was to create a validator (big thanks to Prancer's tutorial on the topic) that can compare the two time values but I can't figure out how I could then call that validator inside a trigger, that'd be the much more ideal solution if it'd work I think. I also realize I could stop trying to use the in-game time keeping and just make up my own time scale and hack it with the lighting and everything else but I have hope that there is a way to avoid that.
Been wracking my head for a few hours now and I'm starting to see why Blizzard didn't even take advantage of the ToD system with the one map that should have been a showcase for it (Outbreak). Any ideas anyone?
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
What I'm looking to do is compare the current time of day vs another time and use that to trigger some night vs day based behaviors of my map. So far I've found that you can't just compare with a greater or less then operator, ended up with random false positives of being greater and/or lesser when they weren't. I can though see possibly two solutions but I'm stuck on both attempts.
The first would be to convert the time into a string and then parse that string and manually add the hours/minutes/seconds up so I can get a proper comparison between the two totals, unfortunately I really don't know enough about the language beneath the editor to have any success with that. My other attempt was to create a validator (big thanks to Prancer's tutorial on the topic) that can compare the two time values but I can't figure out how I could then call that validator inside a trigger, that'd be the much more ideal solution if it'd work I think. I also realize I could stop trying to use the in-game time keeping and just make up my own time scale and hack it with the lighting and everything else but I have hope that there is a way to avoid that.
Been wracking my head for a few hours now and I'm starting to see why Blizzard didn't even take advantage of the ToD system with the one map that should have been a showcase for it (Outbreak). Any ideas anyone?