Name | Type | is_array | initial_value |
Ally_is_Number | boolean | No | |
Ally_length | integer | No | |
Ally_Name | string | No | |
Ally_Number | string | No | |
Blue | real | No | |
Colony_Limit | integer | Yes | 2 |
Color | string | No | |
Color_length | integer | No | |
Color_Player | string | No | |
Coloreds | force | No | |
Game_Modes | dialog | No | |
General | integer | No | |
Green | real | No | |
Income | timer | No | |
Income_Limit | integer | Yes | 25 |
Jump | location | Yes | |
Jump_End | location | Yes | |
Jump_land | effect | Yes | |
Jump_length | real | Yes | |
Jump_Speed | real | No | |
Jump_Start | location | Yes | |
Jump_unit | unit | Yes | |
Jumper | integer | Yes | |
Jumpers | group | No | |
JumpExecCount | integer | No | |
Jumping_Play | player | Yes | |
Life | real | Yes | |
Master | player | No | |
Modes_Buttons | button | Yes | |
Multiboards | multiboard | Yes | |
Name | string | No | |
Name_Length | integer | No | |
Night_fog | boolean | No | |
Player_Number | integer | No | |
Players | force | No | |
Rain | weathereffect | No | |
Red | real | No | |
Snow | weathereffect | No | |
Spectra | playercolor | Yes | |
Surr_Master | player | No | |
Surr_Player | player | No | |
Surrender | boolean | Yes | |
Surrendered | force | Yes | |
Team_1 | force | No | |
Team_2 | force | No | |
Teams_make | boolean | No | |
Tower_Limit | integer | Yes | |
Vote_Button | button | Yes | |
Vote_Kick | dialog | No | |
Vote_No | integer | No | |
Vote_Player | player | No | |
Vote_Yes | integer | No | |
Wall_Limit | integer | Yes | 15 |
Wind | weathereffect | No |
function Trig_Jump_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00E' ) ) then
return false
endif
return true
endfunction
function Trig_Jump_2_Func010C takes nothing returns boolean
if ( not ( udg_Jump_length[udg_Jumper[udg_JumpExecCount]] > ( 400.00 + ( 200.00 * I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(), GetSpellAbilityUnit())) ) ) ) ) then
return false
endif
return true
endfunction
function Trig_Jump_2_Func028Func001C takes nothing returns boolean
if ( not ( IsUnitEnemy(GetEnumUnit(), GetOwningPlayer(udg_Jump_unit[udg_Jumper[udg_JumpExecCount]])) == true ) ) then
return false
endif
return true
endfunction
function Trig_Jump_2_Func028A takes nothing returns nothing
if ( Trig_Jump_2_Func028Func001C() ) then
call UnitDamageTargetBJ( GetEnumUnit(), GetEnumUnit(), ( 0.00 + ( 100.00 * I2R(GetUnitAbilityLevelSwapped('A00E', udg_Jump_unit[udg_Jumper[udg_JumpExecCount]])) ) ), ATTACK_TYPE_SIEGE, DAMAGE_TYPE_NORMAL )
else
endif
endfunction
function Trig_Jump_2_Actions takes nothing returns nothing
local integer locExecCount = GetTriggerExecCount(GetTriggeringTrigger())
if locExecCount == 1000 then
call ResetTrigger(GetTriggeringTrigger())
endif
set udg_JumpExecCount = locExecCount
set udg_Jumper[locExecCount] = udg_JumpExecCount
set udg_Jump_unit[udg_Jumper[locExecCount]] = GetSpellAbilityUnit()
set udg_Jump[udg_Jumper[locExecCount]] = GetSpellTargetLoc()
set udg_Jumping_Play[locExecCount] = GetOwningPlayer(udg_Jump_unit[udg_Jumper[locExecCount]])
set udg_Jump_length[udg_Jumper[locExecCount]] = DistanceBetweenPoints(GetUnitLoc(udg_Jump_unit[udg_Jumper[locExecCount]]), udg_Jump[udg_Jumper[locExecCount]])
//if ( Trig_Jump_2_Func010C() ) then
//set udg_Jump_length[udg_Jumper[locExecCount]] = ( 400.00 + ( 200.00 * I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(), GetSpellAbilityUnit())) ) )
//else
//endif
call SetUnitOwner( udg_Jump_unit[udg_Jumper[locExecCount]], Player(PLAYER_NEUTRAL_PASSIVE), false )
call UnitShareVisionBJ( true, udg_Jump_unit[udg_Jumper[locExecCount]], udg_Jumping_Play[udg_Jumper[locExecCount]] )
call IssueImmediateOrderBJ( udg_Jump_unit[udg_Jumper[locExecCount]], "stop" )
call UnitAddAbilityBJ( 'Amrf', udg_Jump_unit[udg_Jumper[locExecCount]] )
call UnitRemoveAbilityBJ( 'Amrf', udg_Jump_unit[udg_Jumper[locExecCount]] )
call SetUnitMoveSpeed( udg_Jump_unit[udg_Jumper[locExecCount]], 700.00 )
call IssuePointOrderLocBJ( udg_Jump_unit[udg_Jumper[locExecCount]], "move", udg_Jump[udg_Jumper[locExecCount]] )
call SetUnitPathing( udg_Jump_unit[udg_Jumper[locExecCount]], false )
call AddSpecialEffectLocBJ( udg_Jump[udg_Jumper[locExecCount]], "Abilities\\Spells\\Other\\Drain\\ManaDrainTarget.mdl" )
set udg_Jump_land[udg_Jumper[locExecCount]] = GetLastCreatedEffectBJ()
call SetUnitFlyHeightBJ( udg_Jump_unit[udg_Jumper[locExecCount]], udg_Jump_length[udg_Jumper[locExecCount]], 1000.00 )
call TriggerSleepAction( ( udg_Jump_length[udg_Jumper[locExecCount]] / 1000.00 ) )
call SetUnitFlyHeightBJ( udg_Jump_unit[udg_Jumper[locExecCount]], 0.00, 1000.00 )
call TriggerSleepAction( ( udg_Jump_length[udg_Jumper[locExecCount]] / 1000.00 ) )
call SetUnitOwner( udg_Jump_unit[udg_Jumper[locExecCount]], udg_Jumping_Play[locExecCount], false )
call SelectUnitForPlayerSingle( udg_Jump_unit[udg_Jumper[locExecCount]], udg_Jumping_Play[udg_Jumper[locExecCount]] )
call DestroyEffectBJ( udg_Jump_land[udg_Jumper[locExecCount]] )
call AddSpecialEffectLocBJ( udg_Jump[udg_Jumper[locExecCount]], "Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl" )
set udg_Jump_land[udg_Jumper[locExecCount]] = GetLastCreatedEffectBJ()
call DestroyEffectBJ( udg_Jump_land[udg_Jumper[locExecCount]] )
call ForGroupBJ( GetUnitsInRangeOfLocAll(200.00, udg_Jump[udg_Jumper[locExecCount]]), function Trig_Jump_2_Func028A )
call SetUnitMoveSpeed( udg_Jump_unit[udg_Jumper[locExecCount]], GetUnitDefaultMoveSpeed(udg_Jump_unit[udg_Jumper[locExecCount]]) )
call SetUnitPathing( udg_Jump_unit[udg_Jumper[locExecCount]], true )
call TriggerSleepAction( ( 20.00 - ( 5.00 * I2R(GetUnitAbilityLevelSwapped('A00E', udg_Jump_unit[udg_Jumper[locExecCount]])) ) ) )
endfunction
//===========================================================================
function InitTrig_Jump_2 takes nothing returns nothing
set gg_trg_Jump_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Jump_2, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Jump_2, Condition( function Trig_Jump_2_Conditions ) )
call TriggerAddAction( gg_trg_Jump_2, function Trig_Jump_2_Actions )
endfunction