- Joined
- Aug 19, 2007
- Messages
- 294
Hello my current protjekt is a Footmen.
My problem is that every time i play it end up with lag.
I will ask about 2 of my main triggers lag or leak:
Okay, does these 2 triggers lag/leak?
EDIT: Sry for put it in the worng forum, i forgot it...
My problem is that every time i play it end up with lag.
I will ask about 2 of my main triggers lag or leak:
-
Training
-
Events
- Time - Every 25.00 seconds of game time
- Conditions
-
Actions
- Set MyUnitGroup = (Units in (Playable map area))
- -------- Human --------
- Unit Group - Order MyUnitGroup to train a Rifleman
- Unit Group - Order MyUnitGroup to train a Mortar Team
- Unit Group - Order MyUnitGroup to train a Medivh
- Unit Group - Order MyUnitGroup to train a Sorceress
- Unit Group - Order MyUnitGroup to train a Swordman
- Unit Group - Order MyUnitGroup to train a Spell Breaker
- Unit Group - Order MyUnitGroup to train a Dragonhawk Rider
- (50 more of them)
- Custom script: call DestroyGroup(udg_MyUnitGroup)
-
Events
-
A Spell
-
Events
- Unit - A unit Loses an item
-
Conditions
- (Item-type of (Item being manipulated)) Equal to Attribute Bonus
-
Actions
- Set PlayerGroup = (Player group((Owner of (Triggering unit))))
- Set Point = (Position of (Triggering unit))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Attribute Bonus for (Triggering unit)) Less than 10
-
Then - Actions
- Unit - Increase level of Attribute Bonus for (Triggering unit)
-
Else - Actions
- Cinematic - Clear the screen of text messages for PlayerGroup
- Game - Display to PlayerGroup the text: (|cFFFF0000 + ((Name of (Item being manipulated)) + is in max level, you can get your skill point back.|r))
- Player - Add 1 to (Owner of (Triggering unit)) Current lumber
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Attribute Bonus for (Triggering unit)) Equal to 0
-
Then - Actions
- Special Effect - Create a special effect at Point using Abilities\Spells\Items\AIem\AIemTarget.mdl
- Special Effect - Destroy (Last created special effect)
- Unit - Add Attribute Bonus to (Triggering unit)
- Else - Actions
-
If - Conditions
- Custom script: call RemoveLocation(udg_Point)
- Custom script: call DestroyForce(udg_PlayerGroup)
-
Events
Okay, does these 2 triggers lag/leak?
EDIT: Sry for put it in the worng forum, i forgot it...
Last edited: