Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Day/Night trigger to spawn waves
Day/Night trigger to spawn waves
May 17 2017, 9:16 pm
By: TristanOfVP  

May 17 2017, 9:16 pm TristanOfVP Post #1



I'm making a map where players explore the map during a "day" time and defend against waves of enemies attack during the "night" time.

I don't know how to execute this well. I've tried switches and then tried using units to label day and night and removing them after the count down but I can't get it to work well. Looking for ideas to make this system work.



None.

May 17 2017, 10:37 pm theskinsurf Post #2



plenty of ways, the simplest would probably be a timer.

if "day" is cleared
if "night" is set
if timer is at most 0 sec
--
set timer to 5:00
clear "night"
set "day"
preserve

if "day" is set
if "night" is cleared
if timer is at most 0 sec
--
set timer to 5:00
clear "day"
set "night"
preserve

etc etc.



Current project: Star Rogue
Other projects: Triumvirate Defense, Skirmish Islands

Jun 18 2017, 5:20 pm lucifirius Post #3



What you can do is have a unit travel from one point to another to signify day/night.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[05:02 pm]
jjf28 -- NudeRaider
NudeRaider shouted: jjf28 lol the safe browser of my anti virus program can display it. But if I'm not missing anything it's just an image. I ask again, why not use a common format for that?
NudeRaider
NudeRaider shouted: Don't have Chrome. :/ Doesn't seem to like other browsers. Why such a niche format?
for issues with the product please contact the manufacturer, I'm just the delivery man
[04:47 pm]
NudeRaider -- rockz
rockz shouted: Better question is why is webm an accepted standard and webp not?
maybe because picture formats are much more standardized than movie formats and there really is no need for another.
[04:37 pm]
m.0.n.3.y -- Is there a way to detect when a player brings a hallucinated unit to location X?
[04:25 pm]
DarkenedFantasies -- Mini Moose 2707
Mini Moose 2707 shouted: DarkenedFantasies So ... left to right and then by unit ID as a tiebreaker and not really top to bottom at all? :P
Technically, yea. I guess on second thought it really doesn't make sense to say top-to-bottom... so left to right, and newest to oldest (I don't know if it's by the unit ID or what, though).
[03:56 pm]
rockz -- Better question is why is webm an accepted standard and webp not?
[03:02 pm]
NudeRaider -- jjf28
jjf28 shouted: NudeRaider open in chrome?
lol the safe browser of my anti virus program can display it. But if I'm not missing anything it's just an image. I ask again, why not use a common format for that?
[02:49 pm]
NudeRaider -- Don't have Chrome. :/ Doesn't seem to like other browsers. Why such a niche format?
[02:43 pm]
jjf28 -- NudeRaider
NudeRaider shouted: jjf28 how do you watch that?
open in chrome?
[02:29 pm]
O)FaRTy1billion[MM] -- Mini Moose 2707
Mini Moose 2707 shouted: DarkenedFantasies So ... left to right and then by unit ID as a tiebreaker and not really top to bottom at all? :P
it's not by id, it'the order that unit entered that horizontal position
[02:25 pm]
NudeRaider -- jjf28 how do you watch that?
Please log in to shout.


Members Online: Roy, m.0.n.3.y, Suicidal Insanity, jjf28, Dem0n, KYSXD