- Joined
- Jul 12, 2008
- Messages
- 3,137
I'm using a trigger which gives EXP based on the point value of the killed unit. It works for all units except for one, for whatever reason.
Whenever the barbarian chieftain is killed, the player recieves an odd amount of levels. It doesn't actually seem to give any particular set amount; sometimes a jump from level 3 to 13, sometimes a jump from level 5 to 9, but either way, it's not working properly with this unit. I've checked the unit's point value, and it is not even high enough to constitute 1/5 of a level. I've also checked and re-checked my trigger. Does anyone know what could possibly have gone wrong?
And as for the unit, I have triple-checked its point value, which is 60. The amount of EXP required for such jumps caused by some sort of error would require thousands of EXP.
What's even weirder is, it shows the correct amount in the floating text which I've put into the trigger, even when it gives the incorrect amount of EXP...
Whenever the barbarian chieftain is killed, the player recieves an odd amount of levels. It doesn't actually seem to give any particular set amount; sometimes a jump from level 3 to 13, sometimes a jump from level 5 to 9, but either way, it's not working properly with this unit. I've checked the unit's point value, and it is not even high enough to constitute 1/5 of a level. I've also checked and re-checked my trigger. Does anyone know what could possibly have gone wrong?
And as for the unit, I have triple-checked its point value, which is 60. The amount of EXP required for such jumps caused by some sort of error would require thousands of EXP.
What's even weirder is, it shows the correct amount in the floating text which I've put into the trigger, even when it gives the incorrect amount of EXP...
-
Kills
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
(Owner of (Triggering unit)) Equal to Player 12 (Brown)
-
-
Actions
-
Set tempPoint = (Position of (Triggering unit))
-
Set tempGroup = (Units within 1200.00 of tempPoint)
-
Unit Group - Pick every unit in tempGroup and do (Hero - Add (Point-value of (Unit-type of (Triggering unit))) experience to (Picked unit), Show level-up graphics)
-
Floating Text - Create floating text that reads (+ + (String((Point-value of (Unit-type of (Triggering unit)))))) at tempPoint with Z offset 0.00, using font size 8.00, color (100.00%, 0.00%, 100.00%), and 0.00% transparency
-
Floating Text - Change (Last created floating text): Disable permanence
-
Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds
-
Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
-
Custom script: call RemoveLocation(udg_tempPoint)
-
Custom script: call DestroyGroup(udg_tempGroup)
-
-
Last edited: