Ooh, shame on me... :thdown:
I had forgotten Combat - Targeted As... it works, thanks!
Now, I need to understand, how to replace one hero with another, leaving spells learned...
Huh, I said, I know how to do all of that, I just, mentioned reasons, why I need to change one hero to other...
I...
Ok, I am trying to make a new spell, but I have run into couple of problems:
How to make hero immune to melee (like flying units)?
AND
How to replace hero with other hero?
I know, there is Unit - Replace, but it resets all learned skills for hero... Only thing why I need to replace one hero with...
For example, tinting of unit CAN be changed, cause that is done in GEM TD, when game starts...
Maybe that is just a multiple units, each set to different tint and when timer comes, they are "replaced" and selected by trigger...
:(
I want to change user/item data with a trigger. Like changing unit tinting colour, unit tooltips or base armor etc... I know, there is some way to get theese raw data with <AHhb,DataA1> but I still havent understood, how to use them :D
I know difference between globals and locals, but I don't know difference between globally set trigger
set gg_trg_Auto_balance_AtOrange = CreateTrigger( )
and locally set trigger
local trigger trg_Auto_balance_AtOrange = CreateTrigger( )
In the end, I think, I need to modify spawning trigger...
I guess, I still need a help... I got errors from war3 parser:
set gg_trg_Auto_balance_AtGreen = CreateTrigger( ) //==== ERROR: EXPECTED A VARIABLE NAME
call TriggerRegisterEnterRectSimple( gg_trg_Auto_balance_AtGreen, gg_rct_100 ) //==== ERROR: EXPECTED A NAME
call...
I am trying to optimize my 4 triggers into 3 functions (war3 editor converted them making 8 functions for each trigger, making total of 32 functions)...
function Trig_Auto_balance_Conditions takes nothing returns boolean
if ( GetPlayerController(GetOwningPlayer(GetEnteringUnit())) ==...
Is there any chance to add any additional parameters when declaring trigger:
set gg_trg_Auto_balance_AtOrange = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Auto_balance_AtOrange, gg_rct_300 )
call TriggerAddCondition( gg_trg_Auto_balance_AtOrange, Condition( function...
There is variable type Order. Store Issued order into that variable before issuing an order, to stop that hero from moving.
Set OrderVariable = (Issued order)
Or maybe, I did not understood what do you want...