| 06-23-2007, 05:25 AM | #1 |
I'm looking to make a custom rule in game limiting hero levels via Trigger. I couldn't find a way to set the max level; however I did find this one. "SuspendHeroXP" It should work fine, but has anyone tested to see if it continues to split the experience to that hero? Also, in doing this, I need to remove an ability completely, basically not be able to choose it. I couldn't find a method to do so, and I'm not sure if it exists. Then if possible, also need to change a max ability level from 4 to 3. None if this seems possible from what I can see, but I'm hoping to be wrong. |
| 06-23-2007, 05:33 AM | #2 |
Well you can do this: When a hero levels up to your selected level use Hero - Disable experience gain for (Triggering unit) that sloves the porblem about exp gain. -Av3n |
| 06-23-2007, 05:37 AM | #3 |
I said that I already solved that problem "SuspendHeroXP" I don't use GUI, but thanks. Edit: I did come up with a way to stop one ability from being learned by using some techtree requirements if no other way is possible. Same with the 4th level of others, but I just want to make sure it is the best method. Edit edit: Well, throw out the techtree idea, it affects the whole spell not just level 4. |
| 06-23-2007, 06:58 AM | #4 |
You're going to want to fool around with Engineering Upgrade. |
| 06-23-2007, 09:01 AM | #5 | ||
Quote:
Erm, remove the ability from the unit? That does what you say you want there. Quote:
|
| 06-23-2007, 07:55 PM | #6 | ||
Quote:
I was worried that I might have to do it that way, but ok. Quote:
You're saying that call UnitRemoveAbility will remove the skill completely? I need to remove it from being learned. |
| 06-23-2007, 08:46 PM | #7 |
If you want to remove it from that whole player, you could just use Player - Disable <Ability> |
| 06-27-2007, 03:28 AM | #8 |
Well no matter, I solved the problems mostly, but one more thing. SuspendHeroXP still seems to be splitting it up. Any ideas of how to stop exp split on certain heros? |
| 06-27-2007, 06:50 AM | #9 |
For the ability issue, have 2 abilities, one which is going to be learned and the other is a unit ability, when the skill is learned you set the ability up a level. Then when you want to stop the ability being learned, remove the dummy ability which is just for display and it cant go up anymore. |
| 06-27-2007, 07:10 PM | #10 |
That's a good idea, but it requires me to make a double of every spell which I just want to avoid. I just went with a method of setting the level back to 3 and adding the skill point back with a message. Still need to solve the experience problem. Looks like I may just have to add HandicapXP to player everytime a hero levels to 10. |
