This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
I have ability that launches trigger, witch creating units. I couldnt find where I can find supply needed to cast, so i made trigger:
-if player supply used < player supply made
-then create unit
-else give back energy
And I am in trouble here. My code looks like:
Unit - Set (Triggering unit) Energy to (((Triggering unit) Energy (Current)) + (Energy cost of skill))
And this returns error:
Trigger Error in 'gt_skill_Func': Catalog field 'Cost.Vital[Energy]' could not be read (Core: a required object could not be found)
I've set energy cost to 5 points and it works(not trigger - energy ingame system works). So what's wrong?
@ShadowDancer93: Go
Whats the event for the trigger?
Unit uses ability. Triggering unit refers to unit that used skill, so everything should be ok.
I am sure, that problem is in Cost of ability function.
Did you figure it out? As I have the same problem with leviathan spawning mutalisks -> don't want it to go over limit.
I have ability that launches trigger, witch creating units. I couldnt find where I can find supply needed to cast, so i made trigger:
-if player supply used < player supply made
-then create unit
-else give back energy
And I am in trouble here. My code looks like:
Unit - Set (Triggering unit) Energy to (((Triggering unit) Energy (Current)) + (Energy cost of skill))
And this returns error:
Trigger Error in 'gt_skill_Func': Catalog field 'Cost.Vital[Energy]' could not be read (Core: a required object could not be found)
I've set energy cost to 5 points and it works(not trigger - energy ingame system works). So what's wrong?
@ShadowDancer93: Go
Whats the event for the trigger?
Unit uses ability. Triggering unit refers to unit that used skill, so everything should be ok.
I am sure, that problem is in Cost of ability function.
Did you figure it out? As I have the same problem with leviathan spawning mutalisks -> don't want it to go over limit.