Hi im new to JASS and i wanna make 3 bloodmages in different locations(but for testing i just wanna use the same region) and at the same time create the regions they appear in inside JASS and lastly teach them a skill
what am i doing wrong?
variables in variable editor:
rect76
rect77
rect78
what am i doing wrong?
variables in variable editor:
rect76
rect77
rect78
JASS:
function Trig_Untitled_Trigger_001_Actions takes nothing returns nothing
set udg_rect76=Rect(0.,0.7,0.,-1024.)
call CreateNUnitsAtLoc( 1, 'Hblm', Player(0),GetRectCenter(udg_rect76),bj_UNIT_FACING)
call SelectHeroSkill( GetLastCreatedUnit(), 'AHfs' )
set udg_rect77=Rect(0.,0.6,0.,-1024.)
call CreateNUnitsAtLoc( 1, 'Hblm', Player(0),GetRectCenter(udg_rect77),bj_UNIT_FACING)
call SelectHeroSkill( GetLastCreatedUnit(), 'AHfs' )
set udg_rect78=Rect(0.,0.7,0.,-1024.)
call CreateNUnitsAtLoc( 1, 'Hblm', Player(0),GetRectCenter(udg_rect78),bj_UNIT_FACING)
call SelectHeroSkill( GetLastCreatedUnit(), 'AHfs' )
call ExecuteFunc("Trig_Untitled_Trigger_001_Actions")
endfunction
function InitTrig_Untitled_Trigger_001 takes nothing returns nothing
set gg_trg_Untitled_Trigger_001 = CreateTrigger( )
call TriggerAddAction( gg_trg_Untitled_Trigger_001, function Trig_Untitled_Trigger_001_Actions)
endfunction
Last edited by a moderator: