Monster Respawning

Happy

Well-Known Member
Reaction score
71
yes it does....if you want to change it you have to make a timer array and do this :

Trigger:
  • your trigger
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 38, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • 'IF'-Conditions
              • And - All (Conditions) are true
                • Conditions
                  • (Owner of (Triggering unit)) equal to Player 12 (Brown)
                  • (Number of units in (Units in (area(Integer A))) equal to 0
            • 'THEN'-Actions
              • Countdown-Timer - Start your_timer[(Integer A)] as a nonrecurring timer that will expire in 5.00 seconds
              • Trigger - Add to (your trigger 2) the event (Time - your_timer[(Integer A)] expires)
            • 'ELSE'-Actions
              • Do nothing


Trigger:
  • * your trigger 2
    • o Events
    • o Conditions
    • o Actions
      • * If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • o 'IF'-Conditions
          • + (Number of units in (Units in (area(Integer A)) matching ((Unit-type of (Matching unit)) equal to Spider))) equal to 0
        • o 'THEN'-Actions
          • + Unit - Create 1 Spider for Player 12 (Brown) at (Center of (area (Integer A))) facing ....
        • o 'ELSE'-Actions
          • + Do nothing


this should work....

greetz happy
 

hagefade

New Member
Reaction score
1
I have this now and still doesn't work:

Trigger:
  • Big Spider 1
    • Events
      • Unit - A unit owned by Player 12 (Brown) Dies
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 30, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Spider[(Integer A)] Equal to (Dying unit)
            • Then - Actions
              • Countdown Timer - Start Timer[(Integer A)] as a One-shot timer that will expire in 5.00 seconds
              • Trigger - Add to Big Spider 2 <gen> the event (Time - Timer[(Integer A)] expires)
            • Else - Actions


Trigger:
  • Big Spider 2
    • Events
    • Conditions
    • Actions
      • Unit - Create 1 Big Spider for Player 12 (Brown) at (Center of Monster_Spawning[(Integer A)]) facing Default building facing degrees
 

jomik

New Member
Reaction score
17
Hmm, I think you'd have to remove that event at some time too :p and dont see why you add it there, why not just let it be there by default? The timer event for Big Spider 2.

Did you have a unit array or unit group array btw?
And there's a function that checks if the group of units is dead, maybe that can help in some way? I looked at it, I just can't concentrate about it now because it's too late :p I'll look again when I get time :D
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top