• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Help with tower combination

Status
Not open for further replies.
Level 4
Joined
Jun 1, 2009
Messages
87
hi i have done a tower combination trigger, just asking how i can make it better, because right now i am making it do, if 2 towers that can combine r on the field, ur unit gains a research option.

once u click the research it removes a random tower of the same type and places a new tower down. it works fine if there is only 1 type of each, but if there is 2, it gets a bit messy.

so anyone know wat i can do to make it better? i think i would need a new system all together, can u suggestion one for me? or link me to one thats already made.

  • DarkLight
    • Events
      • Unit - A unit Finishes research
    • Conditions
      • (Researched tech-type) Equal to Dark Light
    • Actions
      • Set tempgroup = (Units owned by (Owner of (Researching unit)) of type Dark Tower Level 3)
      • Unit - Remove (Random unit from tempgroup) from the game
      • Custom script: call DestroyGroup (udg_tempgroup)
      • Set tempgroup = (Units owned by (Owner of (Researching unit)) of type Light Tower Level 5)
      • Unit - Remove (Random unit from tempgroup) from the game
      • Custom script: call DestroyGroup (udg_tempgroup)
      • Set tempPoint = (Position of (Researching unit))
      • Unit - Create 1 Dark Light for (Owner of (Researching unit)) at tempPoint facing Default building facing degrees
      • Special Effect - Create a special effect at tempPoint using Abilities\Spells\Orc\WarStomp\WarStompCaster.mdl
      • Special Effect - Destroy (Last created special effect)
      • Custom script: call RemoveLocation (udg_tempPoint)
 
Status
Not open for further replies.
Top