spawning creeps

D

Dingman

Guest
im try to make a area in the middle of the map where there will be creep spawns every 1 minute of the game

but once the creeps spawn every minute it will comeout

i want to make it as though when there is a unit in the region already then the creep stop spawning


also

how do i 'lock' the tavern?
i placed my trigger as Player- limit training of heroes to 1
but i click my tavern it still allows me to train more of the same kind?
need help thanks
 
K

Kerberos

Guest
Variables needed: I like to assign variables to all my regions to keep things clear. The area that the creeps spawn in is called RegionVariable. You also need a unit variable, called UnitVariable.

Code:
Creep spawns
    Events
        Every 60.00 seconds of game time
    Conditions
    Actions
        Unit - Create 1 <unit> for <player> at Center of region RegionVariable
        Set UnitVariable equal to (Last created unit)
        Trigger - Turn off (This trigger)

Code:
Turn on Creep Spawns
    Events
        UnitVariable dies
    Conditions
    Actions
        Trigger - Turn on Creep spawns <gen>
You may be unable to say "UnitVariable dies" as an event. I might remember being frustrated by that. Have no fear, though, because you can have "A unit dies" as a variable, and "(Triggering unit) is Equal to UnitVariable" as a condition.
 

Vulcansurge

Ultra Cool Member
Reaction score
27
With the tavern thing... Have you every played DotA? (or something similar?) Basically, make a trigger that destroys your wisp when food is increased. That way, when you get the hero and the amount of food you have is more than 0, your wisp is destroyed... Does that make sense??
 
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