I need Eggs/spiders to hatch/grow at 100 mana, however i have not found the proper method to do so, with triggers, my current method of doing so lags the game. so i was wondering if anyone could help me
Ice Egg Age
Events
Time - Every 20.00 seconds of game time
Conditions
Actions
Custom script: set bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units of type Ice Spider Egg) and do (Actions)
Loop - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Life of (Picked unit)) Not equal to (!=) 0.00
(Mana of (Picked unit)) Equal to (==) 100.00
Then - Actions
Unit - Replace (Picked unit) with a Ice Spider using The new unit's default life and mana
Else - Actions
Do nothing
Along the lines of that, however there can be alot of egg's/ spiders on the map so doing it all at the same time causes lag
@Kaerf: Those triggers work, but they are leaking events. The effects should not be huge though.
But here is an other suggestion:
- If there are always at least 2 spider eggs on the map then give them the ability "faerie fire", change the targets allowed to "friend", set the range to 999999 and the mana cost to the max mana of the spider egg unit.
Set the effects of the ability to 0 and the duration to 0.01.
The spider eggs will now try to auto-cast faerie fire on each other (but never on themselfs). You can detect the use of faerie fire to see if a spider egg has full mana.
I do know this - xenforo dropped the ball by not keeping the vbulletin reputation comments as a feature. The loss of the Reputation comments data when we switched to Xenforo really was the death knell for the site when it came to all the users that left. I know I missed it so much and I got way less interested in the site when that feature was gone and I run the site.
I'm on a page about incorrect corrections, and spent the better part of like two hours trying to get someone to understand that -5^2 = -25, not 25, and then that post had comments get reposted because that group is self sustaining, and that person was in turn trying to explain what I just explained to them. And I'm taking that as a victory