Lady MufflaN
New Member
- Reaction score
- 4
Righto, some of you might remember my tries to create a spell that adds stats to units the more units are in range of the unit with the ability, ( http://www.thehelper.net/forums/showthread.php?t=88232&page=2 )
Now thing is, it ain't working and I've decided to retry this spell, because it will actually be quite awesome for my map if I get it to work, and I'm not happy with the spell I made to replace it as it got no real synergy with the rest of the spells the hero got.
So to start of where we left, we had a spell that didn't increase in levels depending on the amount of units in range of it, and I was wondering, can WC3 really convert the amount of units in a unit group to an integer? Because as far as I know scripting, this should work and well, it ain't.
Now thing is, it ain't working and I've decided to retry this spell, because it will actually be quite awesome for my map if I get it to work, and I'm not happy with the spell I made to replace it as it got no real synergy with the rest of the spells the hero got.
So to start of where we left, we had a spell that didn't increase in levels depending on the amount of units in range of it, and I was wondering, can WC3 really convert the amount of units in a unit group to an integer? Because as far as I know scripting, this should work and well, it ain't.
Code:
Alone is Weak
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Set David = <insert witty bisexual joke> 0103 <gen>
Set DavidFinalBondGroupFriendly = (Units in (Playable map area) matching (((Matching unit) is A Hero) Equal to True))
Unit Group - Pick every unit in DavidFinalBondGroupFriendly and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) has buff Brilliance Aura) Equal to True
Then - Actions
Set DavidFinalBondGroup = (Units within 400.00 of (Position of David) matching ((((Matching unit) has buff Brilliance Aura) Equal to True) and (((Matching unit) belongs to an ally of (Owner of David)) Equal to True)))
Set UnitsWithinDFB = (Number of units in DavidFinalBondGroup)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Ensam är svag ability bonus (+5 All Stats) for (Picked unit)) Not equal to UnitsWithinDFB
Then - Actions
Unit - Add Ensam är svag ability bonus (+5 All Stats) to (Picked unit)
Unit - Set level of Ensam är svag ability bonus (+5 All Stats) for (Picked unit) to UnitsWithinDFB
Else - Actions
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) has buff Brilliance Aura) Equal to False
(Level of Ensam är svag ability bonus (+5 All Stats) for (Picked unit)) Not equal to 0
Then - Actions
Unit - Remove Ensam är svag ability bonus (+5 All Stats) from (Picked unit)
Else - Actions