In my map, im using offset points in a region to create a whole room filled with objects/trees and such.
its come to my attention i might need to learn a little jass.
this was taken from my starting room and is created on start of map.
i was woundering in jass, can u have a varible equal a region? like
''Current Region=gg_rct_Red_Left_Square''
this could save alot of time, but i was seeing if its possible.
its come to my attention i might need to learn a little jass.
JASS:
function Trig_Setting_Varibles_Copy_Actions takes nothing returns nothing
call CreateDestructableLoc( 'B000', OffsetLocation(GetRectCenter(gg_rct_Blues_Left_Square), 448.00, -480.00), GetRandomDirectionDeg(), 1.00, 0 )
call CreateDestructableLoc( 'B000', OffsetLocation(GetRectCenter(gg_rct_Blues_Left_Square), 416.00, -480.00), GetRandomDirectionDeg(), 1.00, 0 )
call CreateDestructableLoc( 'B000', OffsetLocation(GetRectCenter(gg_rct_Blues_Left_Square), 352.00, -480.00), GetRandomDirectionDeg(), 1.00, 0 )
call CreateDestructableLoc( 'B000', OffsetLocation(GetRectCenter(gg_rct_Blues_Left_Square), 288.00, -480.00), GetRandomDirectionDeg(), 1.00, 0 )
call CreateDestructableLoc( 'B000', OffsetLocation(GetRectCenter(gg_rct_Blues_Left_Square), 224.00, -480.00), GetRandomDirectionDeg(), 1.00, 0 )
call CreateDestructableLoc( 'B000', OffsetLocation(GetRectCenter(gg_rct_Blues_Left_Square), 160.00, -480.00), GetRandomDirectionDeg(), 1.00, 0 )
call CreateDestructableLoc( 'B000', OffsetLocation(GetRectCenter(gg_rct_Blues_Left_Square), 96.00, -480.00), GetRandomDirectionDeg(), 1.00, 0 )
call CreateDestructableLoc( 'B000', OffsetLocation(GetRectCenter(gg_rct_Blues_Left_Square), 32.00, -480.00), GetRandomDirectionDeg(), 1.00, 0 )
call CreateDestructableLoc( 'B000', OffsetLocation(GetRectCenter(gg_rct_Blues_Left_Square), -32.00, -480.00), GetRandomDirectionDeg(), 1.00, 0 )
call CreateDestructableLoc( 'B000', OffsetLocation(GetRectCenter(gg_rct_Blues_Left_Square), -96.00, -480.00), GetRandomDirectionDeg(), 1.00, 0 )
call CreateDestructableLoc( 'B000', OffsetLocation(GetRectCenter(gg_rct_Blues_Left_Square), -160.00, -480.00), GetRandomDirectionDeg(), 1.00, 0 )
call CreateDestructableLoc( 'B000', OffsetLocation(GetRectCenter(gg_rct_Blues_Left_Square), -224.00, -480.00), GetRandomDirectionDeg(), 1.00, 0 )
call CreateDestructableLoc( 'B000', OffsetLocation(GetRectCenter(gg_rct_Blues_Left_Square), -288.00, -480.00), GetRandomDirectionDeg(), 1.00, 0 )
call CreateDestructableLoc( 'B000', OffsetLocation(GetRectCenter(gg_rct_Blues_Left_Square), -352.00, -480.00), GetRandomDirectionDeg(), 1.00, 0 )
call CreateDestructableLoc( 'B000', OffsetLocation(GetRectCenter(gg_rct_Blues_Left_Square), -384.00, -480.00), GetRandomDirectionDeg(), 1.00, 0 )
call CreateDestructableLoc( 'B000', OffsetLocation(GetRectCenter(gg_rct_Blues_Left_Square), -416.00, -480.00), GetRandomDirectionDeg(), 1.00, 0 )
call CreateDestructableLoc( 'B000', OffsetLocation(GetRectCenter(gg_rct_Blues_Left_Square), -480.00, -480.00), GetRandomDirectionDeg(), 1.00, 0 )
call CreateDestructableLoc( 'B000', OffsetLocation(GetRectCenter(gg_rct_Blues_Left_Square), -480.00, -416.00), GetRandomDirectionDeg(), 1.00, 0 )
call CreateDestructableLoc( 'B000', OffsetLocation(GetRectCenter(gg_rct_Blues_Left_Square), -480.00, -352.00), GetRandomDirectionDeg(), 1.00, 0 )
call CreateDestructableLoc( 'B000', OffsetLocation(GetRectCenter(gg_rct_Blues_Left_Square), -480.00, -288.00), GetRandomDirectionDeg(), 1.00, 0 )
call CreateDestructableLoc( 'B000', OffsetLocation(GetRectCenter(gg_rct_Blues_Left_Square), -480.00, -224.00), GetRandomDirectionDeg(), 1.00, 0 )
call CreateDestructableLoc( 'B000', OffsetLocation(GetRectCenter(gg_rct_Blues_Left_Square), -480.00, -160.00), GetRandomDirectionDeg(), 1.00, 0 )
call CreateDestructableLoc( 'B000', OffsetLocation(GetRectCenter(gg_rct_Blues_Left_Square), -480.00, -96.00), GetRandomDirectionDeg(), 1.00, 0 )
call CreateDestructableLoc( 'B000', OffsetLocation(GetRectCenter(gg_rct_Blues_Left_Square), -480.00, -32.00), GetRandomDirectionDeg(), 1.00, 0 )
call CreateDestructableLoc( 'B000', OffsetLocation(GetRectCenter(gg_rct_Blues_Left_Square), -480.00, 32.00), GetRandomDirectionDeg(), 1.00, 0 )
call CreateDestructableLoc( 'B000', OffsetLocation(GetRectCenter(gg_rct_Blues_Left_Square), -480.00, 96.00), GetRandomDirectionDeg(), 1.00, 0 )
call CreateDestructableLoc( 'B000', OffsetLocation(GetRectCenter(gg_rct_Blues_Left_Square), -480.00, 160.00), GetRandomDirectionDeg(), 1.00, 0 )
call CreateDestructableLoc( 'B000', OffsetLocation(GetRectCenter(gg_rct_Blues_Left_Square), -480.00, 224.00), GetRandomDirectionDeg(), 1.00, 0 )
call CreateDestructableLoc( 'B000', OffsetLocation(GetRectCenter(gg_rct_Blues_Left_Square), -480.00, 288.00), GetRandomDirectionDeg(), 1.00, 0 )
call CreateDestructableLoc( 'B000', OffsetLocation(GetRectCenter(gg_rct_Blues_Left_Square), -480.00, 352.00), GetRandomDirectionDeg(), 1.00, 0 )
call CreateDestructableLoc( 'B000', OffsetLocation(GetRectCenter(gg_rct_Blues_Left_Square), -480.00, 416.00), GetRandomDirectionDeg(), 1.00, 0 )
call CreateDestructableLoc( 'B000', OffsetLocation(GetRectCenter(gg_rct_Blues_Left_Square), -480.00, 480.00), GetRandomDirectionDeg(), 1.00, 0 )
endfunction
//===========================================================================
function InitTrig_Setting_Varibles_Copy takes nothing returns nothing
set gg_trg_Setting_Varibles_Copy = CreateTrigger( )
call TriggerAddAction( gg_trg_Setting_Varibles_Copy, function Trig_Setting_Varibles_Copy_Actions )
endfunction
this was taken from my starting room and is created on start of map.
i was woundering in jass, can u have a varible equal a region? like
''Current Region=gg_rct_Red_Left_Square''
this could save alot of time, but i was seeing if its possible.