Hey, I am on my way to finishing my map, and was wondering if I could run some triggers by to see if they leak or if there is a better way to implement them. The map is "Huge", has 8200 doodads, and is nearly 8 mb. It is very laggy at times, and then goes through phases where it seems to be playing at a hyper fast speed. Is this just my computer acting slow or is it due to leaks? I have posted represenative triggers that would fire most often during the game. There are about 12 of the spawn triggers and maybe 35 command triggers. (Note also that I did not make the creep respawn trigger). Any help would be greatly appreciated. Thanks.
-
CrepRe
-
Events
- Unit - A unit Dies
-
Conditions
- (Custom value of (Triggering unit)) Greater than 0
- (Owner of (Triggering unit)) Equal to Neutral Hostile
-
Actions
- Wait 180.00 game-time seconds
- Unit - Create 1 (Unit-type of (Triggering unit)) for Neutral Hostile at creepLocation[(Custom value of (Triggering unit))] facing 90.00 degrees
- Unit - Set the custom value of (Last created unit) to (Custom value of (Triggering unit))
-
Events
-
CreepLocation
-
Events
- Map initialization
- Conditions
-
Actions
- Set creepGroup = (Units in (Playable map area) owned by Neutral Hostile)
-
Unit Group - Pick every unit in creepGroup and do (Actions)
-
Loop - Actions
- Set i = (i + 1)
- Set creepLocation[i] = (Position of (Picked unit))
- Unit - Set the custom value of (Picked unit) to i
-
Loop - Actions
- Custom script: call DestroyGroup( udg_creepGroup )
-
Events
-
Spawn Tauren
-
Events
- Time - Every 80.00 seconds of game time
- Conditions
-
Actions
- Set Point2 = (Center of Hunters Hall <gen>)
- If ((Night Elf Fortress 0274 <gen> is alive) Equal to True) then do (Unit - Create 2 Tauren for Player 5 (Yellow) at Point2 facing 90.00 degrees) else do (Do nothing)
- If ((Night Elf Fortress 0274 <gen> is alive) Equal to True) then do (Unit - Create 1 Spirit Walker for Player 5 (Yellow) at Point2 facing 90.00 degrees) else do
- Custom script: call RemoveLocation (udg_Point2)
-
Events
-
Studded Leather Armor
-
Events
- Unit - A unit Acquires an item
-
Conditions
- ((Triggering unit) has an item of type Leather Armor) Equal to True
- ((Triggering unit) has an item of type Glyph) Equal to True
-
Actions
- Item - Remove (Item carried by (Triggering unit) of type Leather Armor)
- Item - Remove (Item carried by (Triggering unit) of type Glyph)
- Hero - Create Studded Leather Armor and give it to (Triggering unit)
-
Events
-
Command 1
-
Events
- Unit - A unit enters Ancient Spawn Zone <gen>
-
Conditions
- (Owner of (Entering unit)) Equal to Player 5 (Yellow)
-
Actions
- Unit - Order (Entering unit) to Attack-Move To (Center of South 1 <gen>)
-
Events
-
Summoner Spell
-
Events
- Time - Every 1.00 seconds of game time
- Conditions
-
Actions
- Unit - Order Summoner 0975 <gen> to Special Archimonde - Finger Of Death Demon Gate 0409 <gen>
- Unit - Order Summoner 0974 <gen> to Special Archimonde - Finger Of Death Demon Gate 0409 <gen>
- Unit - Order Summoner 0977 <gen> to Special Archimonde - Finger Of Death Demon Gate 0409 <gen>
-
Events
-
Crypt Teleport
-
Events
- Unit - A unit enters Crypt <gen>
-
Conditions
- ((Owner of (Entering unit)) is an ally of Player 12 (Brown)) Equal to True
-
Actions
- Set Point = (Center of Inside Crypt <gen>)
- Unit - Move (Entering unit) instantly to Point
- Custom script: call RemoveLocation (udg_Point)
- Custom script: set udg_Point = null
-
Events
Last edited: