Creep Spawn Help

thomas9999

New Member
Reaction score
0
Hey, im making a w3 map and i am trying to get my creep spawn working
i thought i had i worked out but i hadnt
i have about 14 creep spots in my map but when i do kill one it respawns in every creep region

this is wat i have

Event
A unit dies

Condition(unit-type of (dying unit) Equal to (Unit-type of Giant Polar Bear 0299 <gen>)

Action
Wait - 15.00 seconds
Unit - Create 1 (unit-type of Giant Polar bear 0299 <gen> ) for neutral hostile at (Centre of Region 025 Creep Bot Left Polar Bear <gen> ) facing default building facing degrees

i dont know what is wrong but can some1 please help me out
 

perkeyone

something clever
Reaction score
71
you have that same trigger for each of the 14 regions right?
well for each region you could make a unit group
you could call the groups spawn1 spawn2 spawn3 etc...
then when your trigger creates units it will add the units to the unit group
when it makes units in the first region it will add them to the unit group spawn1 and the second region.. spawn2 etc
then when a unit dies the trigger will have a condition
if the dying unit belongs to the unit group spawn1 then it will wait and make a unit in the first region.
then you will have to repeat the if/then/else for each of the spawns. ill make the trigger if you need me to
 

thomas9999

New Member
Reaction score
0
yer im not very good at this cuz im new and all
was wondering if u cud show me a simple trigger of wat ur telling me
sorry if its to much
 

perkeyone

something clever
Reaction score
71
no
theres no need to do that
do you use any triggers to spawn the original creeps or are they placed on the map already?
if you use a trigger you will need to have the trigger add the units to the unit group after they are created
other wise youll need a trigger to pick all the units in each region and add then to groups

here is an example code
Code:
Untitled Trigger 001
    Events
        Unit - A unit Dies
    Conditions
        (Unit-type of (Dying unit)) Equal to your_custom_unit
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                ((Dying unit) is in spawn1) Equal to True
            Then - Actions
                Wait - 15.00 seconds
                Unit - Create 1 your_custom_unit for Neutral Hostile at (Center of first_spawn) facing Default building facing degrees
                Unit Group - Add (Last created unit) to spawn1
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                ((Dying unit) is in spawn2) Equal to True
            Then - Actions
                Wait - 15.00 seconds
                Unit - Create 1 your_custom_unit for Neutral Hostile at (Center of second_spawn) facing Default building facing degrees
                Unit Group - Add (Last created unit) to spawn2
            Else - Actions
 

perkeyone

something clever
Reaction score
71
Code:
Untitled Trigger 002
    Events
        Map initialization
    Conditions
    Actions
        Unit Group - Pick every unit in (Units in first_spawn) and do (Unit Group - Add (Picked unit) to spawn1)
        Unit Group - Pick every unit in (Units in second_spawn) and do (Unit Group - Add (Picked unit) to spawn2)
its called code tags...
click the button that looks like "#" when you make a post
and it will put "[code.][/code.]" in your post
you just paste the code between those
 

perkeyone

something clever
Reaction score
71
haha no worries we were all new once
and this is a place to give and receive help
tell me if it works good luck =]
 

perkeyone

something clever
Reaction score
71
you click condition
select the category "boolean comparison"
then select "unit in unit group"
then you should be able to figure it out from there i think
just ask if you need further help
 

perkeyone

something clever
Reaction score
71
you can just put that in a new trigger...
or any trigger that runs at the very beginning
you might have to change the event to "time elapsed is .5 seconds"
but dont worry about that until after you test it
 

perkeyone

something clever
Reaction score
71
you will need to make a line for each of the spawns

Code:
Unit Group - Pick every unit in (Units in first_spawn) and do (Unit Group - Add (Picked unit) to spawn1)
if you just right click that in your trigger editor and copy it then paste it a few times until you have one for each spawn region
then just change the unit group and the region for each

you will also need a couple more of these
Code:
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                ((Dying unit) is in spawn1) Equal to True
            Then - Actions
                Wait - 15.00 seconds
                Unit - Create 1 your_custom_unit for Neutral Hostile at (Center of first_spawn) facing Default building facing degrees
                Unit Group - Add (Last created unit) to spawn1
            Else - Actions
one for each region
same things need to be changed, the region and the unit group
you get it?
 

thomas9999

New Member
Reaction score
0
im sorry im really annoying u cud u like start again?

Code:
Events
Unit Group - Pick every unit in (Units in first_spawn) and do (Unit Group - Add (Picked unit) to spawn1)

Conditions
Unit Group - Pick every unit in (Units in first_spawn) and do (Unit Group - Add (Picked unit) to spawn1)

Actions
Unit Group - Pick every unit in (Units in first_spawn) and do (Unit Group - Add (Picked unit) to spawn1)


is that it?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top