Hi,
I would like to ask for little help guys.
I'm struggle with creating a trigger which should add xp into variable (real). I've done it with killing but I can't create same trigger for building construction. Help!
Example:
My question is: How to make exactly the same trigger but not for kill xp, just for building structures. I'll add in advance event construction progress doesn't work. I spend already a week trying to find correct event. Nothing work. Help:)
Your example is nice man, but it is not very optimized in your script because it will fire a lot of time in the game. You should have instead a behavior that becomes active when the building if completed and then you start a trigger with that buff
I've just changed condition to owner of killing unit = 1 to be sure xp goes to correct player, not to all of them.
Trigger must be fired every time you kill, build or train unit and result is showed in a dialog. I'm not really know how to use a buff instead.
If you are going to have it work for more than 1 player you don't need the = 1 check instead just add xp to the player of the owner of triggering unit.
This way you don't need a trigger for each player.
Rollback Post to RevisionRollBack
-Dev of Mineralz Evolution
-Dev of Poker Defense
-Dev of Poker Defense 2.0
-Dev of GridFall (RTC Map)
-Dev of Battlegrounds (RTC Map)
To post a comment, please login or register a new account.
Hi, I would like to ask for little help guys. I'm struggle with creating a trigger which should add xp into variable (real). I've done it with killing but I can't create same trigger for building construction. Help! Example:
My question is: How to make exactly the same trigger but not for kill xp, just for building structures. I'll add in advance event construction progress doesn't work. I spend already a week trying to find correct event. Nothing work. Help:)
This is one way to do it.
@SyCoAttack: Go
Thanks, you are awesome :)
Your example is nice man, but it is not very optimized in your script because it will fire a lot of time in the game. You should have instead a behavior that becomes active when the building if completed and then you start a trigger with that buff
I've just changed condition to owner of killing unit = 1 to be sure xp goes to correct player, not to all of them. Trigger must be fired every time you kill, build or train unit and result is showed in a dialog. I'm not really know how to use a buff instead.
If you are going to have it work for more than 1 player you don't need the = 1 check instead just add xp to the player of the owner of triggering unit.
This way you don't need a trigger for each player.