The Creep Spawning and attacking system

Status
Not open for further replies.
Hi, as you can see i'm new here. I'm from Bosnia and I am one of the small group of Bosnians who makes TFT maps.
At my past I have a lot jobs (maps) that I have not finish. I decide that this one goes to the end.
My map called Hero Surival SMALL and it's beta test courently (sorry for my bad English).
For now 2 full finished heroes and 1 just started. But that we don't go to the detalies let me say my problem.
I'm not very good map maker, so I realy don't know many things about WE. I stoped at creep spawning and attacking. I use just unit creation and unit movement... I know that is not creep spawning and attacking system but I don't know better. So by this time I ask you for help, just in beta test 2 levels, and after that mybe i get it. You can explain by the words, pictures ...
 
I'm pretty sure there's a tutorial here that explains everything... Anyway, use these triggers for spawn and move/attack.
Make a variable and choose type Point. call it tempPOINT (thats what i like to call it). Make a timer variable if you use a timer in your map when the units spawn and use event timer expires.
  • Spawn
    • Events
      • Time - Timer expires
    • Conditions
      • (Owner of (Entering unit)) Equal to Player 12 (Brown)
    • Actions
      • Set tempPOINT = (Center of YourRegion <gen>)
      • Unit - Create 5 Your Unit for Player 12 (Brown) at tempPOINT facing Default building facing degrees
      • Custom script: call RemoveLocation(udg_tempPOINT)
and the move/attack trigger:
  • Move
    • Events
      • Unit - A unit enters YourRegion <gen>
    • Conditions
      • (Owner of (Entering unit)) Equal to Player 12 (Brown)
    • Actions
      • Set tempPOINT = (Center of YourRegion <gen>)
      • Unit - Order (Entering unit) to Attack-Move To tempPOINT
      • Custom script: call RemoveLocation(udg_tempPOINT)
Replace your region and your unit with the unit and regions you use.
 
Last edited:
Status
Not open for further replies.
Back
Top