I haven't tried this but you can create an effect that does "Modify Unit" and this effect has an Experience field. I'm assuming you can put a negative or positive amount there to change the unit's experience. You might be able to add or subtract enough experience to modify the unit's level if the effect is applied to it. You can make an ability command that triggers the effect and order the unit to use the ability command.
To make the ability command you make an ability and modify the "Commands" field. Then add the ability to the unit that will have it's experience modified. Then in a trigger you can "Issue Order" to the unit to use the ability command. Hope this works/helps.
Quote from barakatx2:
I haven't tried this but you can create an effect that does "Modify Unit" and this effect has an Experience field. I'm assuming you can put a negative or positive amount there to change the unit's experience. You might be able to add or subtract enough experience to modify the unit's level if the effect is applied to it. You can make an ability command that triggers the effect and order the unit to use the ability command.
To make the ability command you make an ability and modify the "Commands" field. Then add the ability to the unit that will have it's experience modified. Then in a trigger you can "Issue Order" to the unit to use the ability command. Hope this works/helps.
----
or use the trigger add effect.
The problem with this is that you have to make this effect everytime you want to add different amount. This means this is actually not the true solution but a workaround.
We have to wait until the galaxy editor is updated, we are missing a lot of stuff especially hero and damage related.
How can we add/remove a hero's levels and exp using triggers?
Effects - Modify Unit - Experience - Whatever + or -
Trigger the "effect" you have created the above.
I haven't tried this but you can create an effect that does "Modify Unit" and this effect has an Experience field. I'm assuming you can put a negative or positive amount there to change the unit's experience. You might be able to add or subtract enough experience to modify the unit's level if the effect is applied to it. You can make an ability command that triggers the effect and order the unit to use the ability command.
To make the ability command you make an ability and modify the "Commands" field. Then add the ability to the unit that will have it's experience modified. Then in a trigger you can "Issue Order" to the unit to use the ability command. Hope this works/helps.
Quote from barakatx2:
I haven't tried this but you can create an effect that does "Modify Unit" and this effect has an Experience field. I'm assuming you can put a negative or positive amount there to change the unit's experience. You might be able to add or subtract enough experience to modify the unit's level if the effect is applied to it. You can make an ability command that triggers the effect and order the unit to use the ability command.
To make the ability command you make an ability and modify the "Commands" field. Then add the ability to the unit that will have it's experience modified. Then in a trigger you can "Issue Order" to the unit to use the ability command. Hope this works/helps.
----
or use the trigger add effect.
The problem with this is that you have to make this effect everytime you want to add different amount. This means this is actually not the true solution but a workaround.
We have to wait until the galaxy editor is updated, we are missing a lot of stuff especially hero and damage related.
Sorry I missed the add effect trigger @_@.