how do you make a condition that targets a specific unit and only that unit...? the purpose of this is so that i can give the hero exp as time passes for every second that passes. in order to level up plasma shields in a different way then normal. edited:oh and i forgot one thing i already got the plasma shields set to veterancy level up from a certain amount of exp
@Nashadun: Go You have to create a Modify Unit Effect in data editor and add the experience amount you want in the Experience field.
Then create a trigger that does this:
Event: Periodic Event -> Timer - Every 1.0 seconds of game time
Actions: Create Effect on Unit (From Player) -> Environment - Execute "Your Experience Effect" on "Your Unit" from Owner of Unit("Your Unit")
this that you told me was good but i don't know where to go in the owner of unit "your unit" part. because i was looking for a unit to target directly.
how do you make a condition that targets a specific unit and only that unit...? the purpose of this is so that i can give the hero exp as time passes for every second that passes. in order to level up plasma shields in a different way then normal. edited:oh and i forgot one thing i already got the plasma shields set to veterancy level up from a certain amount of exp
You have to create a Modify Unit Effect in data editor and add the experience amount you want in the Experience field.
Then create a trigger that does this:
Event: Periodic Event -> Timer - Every 1.0 seconds of game time
Actions: Create Effect on Unit (From Player) -> Environment - Execute "Your Experience Effect" on "Your Unit" from Owner of Unit("Your Unit")
Or something similar.
It would be a good idea to store the unit in a Unit variable so you can refer to it easily in the trigger.
@Zomasworn
i'm not 100% but i don't think you need a condition.
create a global UNIT variable named Hero
if you created the hero with a trigger:
event
(some eventful event)
action
create 1 (hero unit) for player x at point
set Hero = last created unit
if you placed the hero in the editor:
event
map initialization
action
set Hero = hero you placed should be listed under value
and then:
event
every 1 seconds
action
add experience to Hero
depends on what your event is. can you post the trigger you're having trouble with?
@Nashadun: Go You have to create a Modify Unit Effect in data editor and add the experience amount you want in the Experience field.
Then create a trigger that does this:
Event: Periodic Event -> Timer - Every 1.0 seconds of game time
Actions: Create Effect on Unit (From Player) -> Environment - Execute "Your Experience Effect" on "Your Unit" from Owner of Unit("Your Unit")
this that you told me was good but i don't know where to go in the owner of unit "your unit" part. because i was looking for a unit to target directly.