• 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.

Need more help...

Status
Not open for further replies.
Level 7
Joined
Aug 30, 2008
Messages
347
I have a problem with a few triggers on world editor, i was wondering if anyone
could tell me how to make a trigger so that units (neutral hostile)cannot surpass a certain amount 30 to avoid lag and hanging...

i also have another question, how do i make a condition to check all heroes in the playable map area are at max level (50.)
 
"certain amount 30" of what? -.- apples? :p



  • every 1.00 second of game
  • Actions
    • Set Point = (Center of (Playable map area))
    • Set Map_Group = (Units within 5000.00 of Point matching ((((Matching unit) is A Hero) Equal to True) and ((Hero level of (Matching unit)) Equal to 50)))
    • Unit Group - Pick every unit in Map_Group and do (Actions)
      • Loop - Actions
        • Do stuff
    • Custom script: call RemoveLocation(udg_Point)
    • Custom script: call DestroyGroup(udg_Map_Group)
 
Status
Not open for further replies.
Top