3 Questions

Max

New Member
Reaction score
1
First Quesation:
In my Hero Defense map I've made this 2 triggers:
Code:
Setup Bifrost
    Events
        Unit - A unit leaves BifrostTerritory <gen>
    Conditions
        And - All (Conditions) are true
            Conditions
                (Owner of (Triggering unit)) Not equal to Player 12 (Brown)
                (Owner of (Triggering unit)) Not equal to Neutral Passive
                ((Triggering unit) is A structure) Equal to False
                ((Triggering unit) is A Hero) Equal to True
    Actions
        Unit - Make Bifrost 0000 <gen> Vulnerable

Code:
Setup Bifrost2
    Events
        Unit - A unit enters BifrostTerritory <gen>
    Conditions
        And - All (Conditions) are true
            Conditions
                (Owner of (Triggering unit)) Not equal to Player 12 (Brown)
                (Owner of (Triggering unit)) Not equal to Neutral Passive
                ((Triggering unit) is A structure) Equal to False
                ((Triggering unit) is A Hero) Equal to True
    Actions
        Unit - Make Bifrost 0000 <gen> Invulnerable
With this code whenever the all heroes goes out of the region the main building becomes vulnerable and vice-versa (Just like MOO-MOO map)

The concept is when all the heroes dies, the enemy creew wave can attack the tower because no one is defending it.
But sadly it doesn't work... It works when all heroes leaves the region but not when all heroes dies.

When heroes died that counts as leaving the region right?

Second Question:
Where can I write the credits???

Third Question:
Is ther an alternate way to import?
Coz for some reason my Import Manager is no longer working, I can no longer import models and icons
 

R@i_no_Wyrm

New Member
Reaction score
43
First Question :
Second Question : Maybe you can put it in winning/losing cinematic, or simply in the quest.

Code:
Melee Initialization
    Events
        Time - Every 1.00 seconds of game time
    Conditions
    Actions
        Unit Group - Pick every unit in (Units in Region 000 <gen>) and do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        ((Picked unit) is A Hero) Equal to True
                        (Owner of (Picked unit)) Not equal to Player 12 (Brown)
                        (Owner of (Picked unit)) Not equal to Neutral Hostile
                    Then - Actions
                        Unit - Make Peasant 0000 <gen> Invulnerable
                    Else - Actions
                        Unit - Make Peasant 0000 <gen> Vulnerable
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top