| 03-19-2004, 06:17 PM | #1 |
Hi What would be best? I got three computer forces and three player's hero's helping them. I would that when any of the hero's would get xp from a nonhero when they are level 20-25 they don't get xp. I could make it like this: Code:
Unit owned by player 1 dies Unit owned by player 5 dies Unit owned by player 9 dies (They are my computer forces) Killing unit equal to hero Level of Killing Unit less than 20 Hero Diable Xp Killing Unit Wait 0.20 Hero Enable Xp Killing Unit but would it work and would it create a lot of lag? If it does create a lot of lag then I don't wanna use it in my map. It that the best or what other solotions are there? |
| 03-19-2004, 09:09 PM | #2 |
I dont know if your trigger will work, as the hero may have already gained experience from the unit by the time you pause/unpause xp gain. You could basically do the same trigger, except detect how much xp the hero gained from the unit, then subtract it from the heroes xp. |
| 03-20-2004, 06:41 AM | #3 | |
Quote:
I thought of that too and I could easliy do that but what if the hero gains a level from killing the unit. Then I would have to set his level down and then set his xp. I think that would be pretty confusing for the player |
