Is this confirmed? info seems scattered, but when I try to use triggers in my mod file nothing actually works or is editable. To be fair though, I haven't used triggers before so I could just be missing something simple? =/
As far as I know, there is no way to scale or add the amount of experience a unit gives depending on their number of levels through data.
Of course as FunkyUserName pointed out, it can be achieved through triggers. In order to use triggers as a mod you have to create a trigger library (right click -> Library -> New Library). Add all your triggers to this library, and export it (right click on library -> Export Library). This exported trigger library can now be used in any map.
I looked at how this might be achieved through triggers, and what you might be able to do is the following:
Create an effect of type modify unit that adds a certain number of experience points to the unit on which it is applied.
Set a trigger to fire whenever a unit is killed, and in the events, apply the above modify effect to the killing unit for as many experience levels the killed unit had.
I've provided a picture of how the trigger looks like. However, I am not completely sure if this works, although it's worth a try.
Wait, to be clear, what I'm looking for is a playable "Extension Mod" - not just something I can apply when making a map, but something that players can apply to melee maps in battle.net. Seems like I can manipulate triggers though after adding my own library, so this might work? ^_^
not a bad idea. why didn't i think of it.
use a behavior with damage response effect on deadly dmg. this effect will apply a behavior which sets the xp-multiplier to a certain value for the killer. similiar to the critical strike solution. (could even work with stacks, so if you add 3x xp-multiplier with 1.05 should be 15% more xp)
Yes, I understood what you meant; trigger libraries are the only way to actually allow other players to use the triggers that you create. If you notice, there is an "Import Library" option when you right click on the trigger pane. However, as to how other players would be able to access your trigger library I do not know. I haven't done it before but perhaps there it is the same or similar as mods?
Just to resolve this, I was able to achieve what I was looking for with the triggers suggested above. Basically, I set a trigger that fired when a unit had a level-change, and the action then Set Unit Property [Bounty (XP)] to the initial XP value + the added XP value.
Thanks for the help!
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Basically, as the title says... ^_^
I want higher level (veterancy) units to be worth more experience when they're killed - is this doable in any way? =/
@Yoni54: Go
ofc you can change their xp value per player with catalog triggers.
@FunkyUserName: Go
Aah; any way to do this in the data? This'd be for a mod... =/
@Yoni54: Go
you can use triggers in a mod, at least other sc2mapster ppl claim so
@FunkyUserName: Go
Is this confirmed? info seems scattered, but when I try to use triggers in my mod file nothing actually works or is editable. To be fair though, I haven't used triggers before so I could just be missing something simple? =/
As far as I know, there is no way to scale or add the amount of experience a unit gives depending on their number of levels through data.
Of course as FunkyUserName pointed out, it can be achieved through triggers. In order to use triggers as a mod you have to create a trigger library (right click -> Library -> New Library). Add all your triggers to this library, and export it (right click on library -> Export Library). This exported trigger library can now be used in any map.
I looked at how this might be achieved through triggers, and what you might be able to do is the following:
Create an effect of type modify unit that adds a certain number of experience points to the unit on which it is applied. Set a trigger to fire whenever a unit is killed, and in the events, apply the above modify effect to the killing unit for as many experience levels the killed unit had.
I've provided a picture of how the trigger looks like. However, I am not completely sure if this works, although it's worth a try.
@AlphaTiberius: Go
Wait, to be clear, what I'm looking for is a playable "Extension Mod" - not just something I can apply when making a map, but something that players can apply to melee maps in battle.net. Seems like I can manipulate triggers though after adding my own library, so this might work? ^_^
@AlphaTiberius: Go
not a bad idea. why didn't i think of it.
use a behavior with damage response effect on deadly dmg. this effect will apply a behavior which sets the xp-multiplier to a certain value for the killer. similiar to the critical strike solution. (could even work with stacks, so if you add 3x xp-multiplier with 1.05 should be 15% more xp)
@Yoni54: Go
Yes, I understood what you meant; trigger libraries are the only way to actually allow other players to use the triggers that you create. If you notice, there is an "Import Library" option when you right click on the trigger pane. However, as to how other players would be able to access your trigger library I do not know. I haven't done it before but perhaps there it is the same or similar as mods?
@FunkyUserName: Go
That's actually a brilliant solution. Up until now I never actually knew that a behaviour can apply an effect based on damage or deadly damage.
Just to resolve this, I was able to achieve what I was looking for with the triggers suggested above. Basically, I set a trigger that fired when a unit had a level-change, and the action then Set Unit Property [Bounty (XP)] to the initial XP value + the added XP value.
Thanks for the help!