• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Spell] Creep respawn system

Status
Not open for further replies.

Kusanagi Kuro

Hosted Project: SC
Level 10
Joined
Mar 11, 2012
Messages
708
I've read the tutorial about this but unfortunately, my system doesnt work. I dont know why, really.
I'm just changing 1 thing is the custom value (since I'm using Unit Indexer)
  • Creep Location Memorize
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set tempGroup = (Units owned by Player 12 (Brown) matching ((((Matching unit) is A structure) Equal to False) and (((Matching unit) is A Hero) Equal to False)))
      • Unit Group - Pick every unit in tempGroup and do (Actions)
        • Loop - Actions
          • Set CV = (Custom value of (Picked unit))
          • Set CreepRespawnPoint[CV] = (Position of (Picked unit))
      • Custom script: call DestroyGroup(udg_tempGroup)
  • Creep Point
    • Events
      • Unit - A unit enters (Playable map area)
    • Conditions
      • (Owner of (Triggering unit)) Equal to Player 12 (Brown)
    • Actions
      • Set CV = (Custom value of (Triggering unit))
      • Set CreepRespawnPoint[CV] = (Position of (Triggering unit))
  • Creep Respawn
    • Events
      • Unit - A unit owned by Player 12 (Brown) Dies
    • Conditions
      • ((Triggering unit) is A Hero) Equal to False
      • (Unit-type of (Dying unit)) Not equal to Sapphiron (undead)
      • (Unit-type of (Dying unit)) Not equal to Lich King (Evil)
      • (Unit-type of (Dying unit)) Not equal to Ghost
      • (Unit-type of (Dying unit)) Not equal to Horn of Cenarius Pedestal
      • (Unit-type of (Dying unit)) Not equal to Maiev
      • (Unit-type of (Dying unit)) Not equal to Maiev
    • Actions
      • Wait 45.00 seconds
      • Set CV = (Custom value of (Dying unit))
      • Unit - Create 1 (Unit-type of (Dying unit)) for Player 12 (Brown) at CreepRespawnPoint[CV] facing (Random angle) degrees
      • Custom script: call DestroyGroup(udg_tempGroup)
      • Custom script: call RemoveLocation(udg_CreepRespawnPoint[udg_CV])
 
Status
Not open for further replies.
Top