Does it sell units? Don't think that will be updates on upgrade
If you own the building then you could maybe train units instead, that should update on upgrade, otherwise I guess you have to use triggers..
i.e.Untitled Trigger 001
Events
Unit - A unit Finishes an upgrade...
no, the function call
(Position of (Casting Unit))
returns a loc, if you don't store the pointer in a variable then it will be lost
btw
udg is an acronym for user-defined-global
as (Position of (Casting Unit)) will be GetUnitLoc(GetSpellAbilityUnit()) in jass
you could do:
call...
If you make a copy (/dummy) of each hero in the party and give 'em to each player, update hp and mana with triggers, and issue order targeting a unit -> reorder to target the hero (need jass), might work, probably will it not be very efficent though..
On newest newgen you have "Reinventing the Craft" in title menu, simply disable that and you can run newgen with AVG..
If you need it then find yourself another antivirus program :P
You need diffrent commands for diffrent types of orders,
A unit Is issued an order with no target:
Custom script: call IssueImmediateOrder( GetTriggerUnit(), udg_oLastOrder[udg_PN])
A unit Is issued an order targeting a point:
Custom script: call IssuePointOrderLoc( GetTriggerUnit()...
I'm not too good on optimization, but it does what I want.. (and maybe more :P)
scope ElectricField initializer Init
globals
private constant integer Electric_Field = 'AOwk' //Your ability code ex. Wind Walk
private constant string CASTER_EFFECT =...
If you say how much dmg you want it to do at say, range 100 and 500 on level 1, and at range 100 and 500 at level 4, and I'll make a formula from that..
i made a similar trigger in this thread..
function StormBoltConditions takes nothing returns boolean
return GetSpellAbilityId() == 'ACbf' //Still using Breath of Frost..
endfunction
function TargetConditions takes nothing returns boolean
if ( IsUnitType(GetFilterUnit()...
I can make more guesses.. free bumps at least :P
Give some numbers and I'll think someting up ;)
75*((level of ability)+1)-(distance travelled by dummy/5)
at100 ->130x2units=260dmg spell level 1
at300 ->90x1units=90dmg spell level 1
at500 ->50x1units=50dmg spell level 1
at100...