Name | Type | is_array | initial_value |
A_AoE | real | No | |
A_Bool | boolean | No | |
A_Bool2 | boolean | No | |
A_Damage | real | No | |
A_Duration | real | No | |
A_Int | integer | No | |
A_Real | real | No | |
A_Real2 | real | No | |
A_UType | unitcode | No | |
AI_Group | group | No | |
Amount | real | No | |
Aura_special | effect | Yes | |
BB | integervar | No | |
BB2 | integervar | No | |
BB_Angle | real | Yes | |
BB_Caster | unit | Yes | |
BB_CastNumber | integer | No | |
BB_Distance | real | Yes | |
BB_Height | real | Yes | |
BB_Missile | unit | Yes | |
BB_Off | boolean | Yes | |
BB_Point | location | Yes | |
BB_Speed | real | Yes | |
BB_Switch | integer | No | |
BB_Up | boolean | Yes | |
Berzerker_boolean | boolean | Yes | |
Caster | unit | No | |
CI_Caster | unit | No | |
CI_Player | player | No | |
CI_Point | location | No | |
CI_Point2 | location | No | |
CI_Target | unit | No | |
Creep_Count | integer | Yes | |
Creep_Count_Copy | integer | Yes | |
Creep_Count_Copy_10 | integer | Yes | |
Creep_Count_Copy_11 | integer | Yes | |
Creep_Count_Copy_2 | integer | Yes | |
Creep_Count_Copy_3 | integer | Yes | |
Creep_Count_Copy_4 | integer | Yes | |
Creep_Count_Copy_5 | integer | Yes | |
Creep_Count_Copy_6 | integer | Yes | |
Creep_Count_Copy_7 | integer | Yes | |
Creep_Count_Copy_8 | integer | Yes | |
Creep_Count_Copy_9 | integer | Yes | |
Death_Count | integer | Yes | |
Death_Count_Copy | integer | Yes | |
Death_Count_Copy_Copy | integer | Yes | |
Death_Count_Copy_Copy_Copy | integer | Yes | |
Death_Count_Copy_Copy_Copy_Copy | integer | Yes | |
Death_Count_Copy_Copy_Copy_Copy_Copy | integer | Yes | |
Death_Count_Copy_Copy_Copy_Copy_Copy_Copy | integer | Yes | |
Death_Count_Copy_Copy_Copy_Copy_Copy_Copy_Copy | integer | Yes | |
Death_Count_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy | integer | Yes | |
Death_Count_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy | integer | Yes | |
Death_Count_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy | integer | Yes | |
Death_Count_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy | integer | Yes | |
Earth_Fury_Ability_Level | integer | No | |
Earth_Fury_AoE_Bouns | real | No | |
Earth_Fury_Base_Area_of_Effect | real | No | |
Earth_Fury_Base_Damage | real | No | |
Earth_Fury_Bonus_Damage | real | No | |
Earth_Fury_Caster | unit | No | |
Earth_Fury_Chance | real | No | |
Earth_Fury_Damage_Group | group | No | |
Earth_Fury_Dummy_Ability | abilcode | No | |
Earth_Fury_Dummy_Ability_2 | abilcode | No | |
Earth_Fury_Location | location | No | |
Earth_Fury_Owner | player | No | |
Earth_Fury_Total_Area_of_Effec | real | No | |
Earth_Fury_Total_Damage | real | No | |
EarthArmour | group | No | |
EP | integervar | No | |
EP_Angle | real | Yes | |
EP_Caster | unit | Yes | |
EP_CastNumber | integer | No | |
EP_ConstDistance | real | Yes | |
EP_Distance | real | Yes | |
EP_Height | real | Yes | |
EP_Integer | integervar | No | |
EP_Missile | unit | Yes | |
EP_Off | boolean | Yes | |
EP_Point | location | Yes | |
EP_Speed | real | Yes | |
EP_Switch | integer | No | |
ES_Caster | unit | No | |
ES_Group | group | No | |
ES_Integer | integervar | No | |
ES_Point | location | Yes | |
ES_Target | unit | No | |
FB | integervar | No | |
FB_Angle | real | Yes | |
FB_Angle2 | real | Yes | |
FB_Caster | unit | Yes | |
FB_CastNumber | integer | No | |
FB_Distance | real | Yes | |
FB_Group | group | No | |
FB_Missile | unit | Yes | |
FB_Off | boolean | Yes | |
FB_Point | location | Yes | |
FB_Spam | integer | Yes | |
FB_Speed | real | Yes | |
FB_Switch | integer | No | |
Fire_Wall_Ability_Level | integer | No | |
Fire_Wall_Caster | unit | No | |
Fire_Wall_Distance | real | No | |
Fire_Wall_Dummy_Ability | abilcode | No | |
Fire_Wall_Duration | real | No | |
Fire_Wall_Location | location | No | |
Fire_Wall_Loop_Location | location | No | |
Fire_Wall_Loop_Location_2 | location | No | |
Fire_Wall_Owner | player | No | |
FirstBlood | boolean | No | |
FoV_Caster | unit | No | |
General_Integer | integer | Yes | |
group_blackrock10 | group | No | |
group_blackrock11 | group | No | |
group_blackrock12 | group | No | |
group_BurningBlade1 | group | No | |
group_BurningBlade2 | group | No | |
group_BurningBlade3 | group | No | |
group_stormreaver4 | group | No | |
group_stormreaver5 | group | No | |
group_stormreaver6 | group | No | |
group_warsong7 | group | No | |
group_warsong8 | group | No | |
group_warsong9 | group | No | |
GroupVar7 | group | No | |
Grunts_boolean | boolean | Yes | |
Hashtable | hashtable | No | |
Hero_Array | unitcode | Yes | |
Hero_Aura | unit | Yes | |
Herochosenbyplayer | boolean | Yes | |
I | integervar | No | |
I_Angle | real | Yes | |
I_Arc | real | Yes | |
I_Caster | unit | Yes | |
I_CastNumber | integer | No | |
I_ConstDistance | real | Yes | |
I_Damage | real | Yes | |
I_Distance | real | Yes | |
I_Dummie | unit | Yes | |
I_Group | group | No | |
I_Missile1 | unit | Yes | |
I_Missile2 | unit | Yes | |
I_Off | boolean | Yes | |
I_Offset | real | Yes | |
I_Point | location | Yes | |
I_Speed | real | Yes | |
I_Switch | integer | No | |
Ion_Canon_Ability_Level | integer | No | |
Ion_Canon_AoE | real | No | |
Ion_Canon_Base_Damage | real | No | |
Ion_Canon_Base_Mana_Burn | real | No | |
Ion_Canon_Caster | unit | No | |
Ion_Canon_Damage_Group | group | No | |
Ion_Canon_Distance | real | No | |
Ion_Canon_Location | location | No | |
Ion_Canon_Loop_Location | location | No | |
Ion_Canon_Loop_Number | integer | No | |
Ion_Canon_Total_Damage | real | No | |
Ion_Canon_Total_Mana_Burn | real | No | |
JB | integervar | No | |
JB_Angle | real | Yes | |
JB_AoE | real | Yes | |
JB_Colision | real | Yes | |
JB_Damage | real | Yes | |
JB_Distance | real | Yes | |
JB_Group | group | No | |
JB_Height | real | Yes | |
JB_Hero | unit | Yes | |
JB_Level | integer | Yes | |
JB_MaxDistance | real | Yes | |
JB_Missile | unit | Yes | |
JB_Off | boolean | Yes | |
JB_Parabola | real | Yes | |
JB_Point | location | Yes | |
JB_Skip | integer | No | |
JB_Speed | real | Yes | |
JB_Times | integer | No | |
KB | integervar | No | |
KB_Angle | real | Yes | |
KB_Distance | real | Yes | |
KB_Off | boolean | Yes | |
KB_Point | location | Yes | |
KB_Skip | integer | No | |
KB_Spam | integer | Yes | |
KB_Speed | real | Yes | |
KB_Target | unit | Yes | |
KB_Times | integer | No | |
Kill_Count | integer | Yes | |
Kill_Count_Copy | integer | Yes | |
Kill_Count_Copy_Copy | integer | Yes | |
Kill_Count_Copy_Copy_Copy | integer | Yes | |
Kill_Count_Copy_Copy_Copy_Copy | integer | Yes | |
Kill_Count_Copy_Copy_Copy_Copy_Copy | integer | Yes | |
Kill_Count_Copy_Copy_Copy_Copy_Copy_Copy | integer | Yes | |
Kill_Count_Copy_Copy_Copy_Copy_Copy_Copy_Copy | integer | Yes | |
Kill_Count_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy | integer | Yes | |
Kill_Count_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy | integer | Yes | |
Kill_Count_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy | integer | Yes | |
Kill_Count_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy_Copy | integer | Yes | |
kills | integer | Yes | |
KnockbackTable | hashtable | No | |
lvlnum | integer | No | |
Multi_Shot_Ability_Level | integer | No | |
Multi_Shot_Base_Arrow_Count | integer | No | |
Multi_Shot_Caster | unit | No | |
Multi_Shot_Dummy_Ability | abilcode | No | |
Multi_Shot_Facing | real | No | |
Multi_Shot_Location | location | No | |
Multi_Shot_Location_2 | location | No | |
Multi_Shot_Loop_Location | location | No | |
Multi_Shot_Loop_Location2 | location | No | |
Multi_Shot_Owner | player | No | |
Multi_Shot_Total_Arrow_Count | integer | No | |
Player_Colors | string | Yes | |
Player_Count | integer | No | |
PlayerColors | string | Yes | |
PlayerNames | string | Yes | |
PlayerRepicked | boolean | Yes | |
Players | force | No | |
point_blackrock | location | No | |
point_blackrock2 | location | No | |
point_blackrock3 | location | No | |
point_BurningBlade | location | No | |
point_BurningBlade2 | location | No | |
point_BurningBlade3 | location | No | |
point_stormreaver | location | No | |
point_stormreaver2 | location | No | |
point_stormreaver3 | location | No | |
point_warsong | location | No | |
point_warsong2 | location | No | |
point_warsong3 | location | No | |
Pointa | location | No | |
pointy | location | No | |
pointy_player1 | location | No | |
pointy_player10 | location | No | |
pointy_player11 | location | No | |
pointy_player12 | location | No | |
pointy_player2 | location | No | |
pointy_player3 | location | No | |
pointy_player4 | location | No | |
pointy_player5 | location | No | |
pointy_player6 | location | No | |
pointy_player7 | location | No | |
pointy_player8 | location | No | |
pointy_player9 | location | No | |
Power_Slam_Ability_Level | integer | No | |
Power_Slam_Base_Chance | real | No | |
Power_Slam_Caster | unit | No | |
Power_Slam_Damage | real | No | |
Power_Slam_Damage_Multiplier | real | No | |
Power_Slam_Dummy_Ability | abilcode | No | |
Power_Slam_Location | location | No | |
Power_Slam_Owner | player | No | |
Power_Slam_Strength | integer | No | |
Power_Slam_Target | unit | No | |
Power_Slam_Total_Chance | real | No | |
Rally_Group | group | No | |
Random_Count | integer | No | |
Random_Data | integer | Yes | |
Random_Hero | integer | No | |
Razor_Edge_Ability_Level | integer | No | |
Razor_Edge_Area_of_Effect | real | No | |
Razor_Edge_Base_Damage | real | No | |
Razor_Edge_Caster | unit | No | |
Razor_Edge_Damage_Group | group | No | |
Razor_Edge_Location | location | No | |
Razor_Edge_Location2 | location | No | |
Razor_Edge_Total_Damage | real | No | |
RE_Knock_Angle | real | No | |
RE_Knock_Distance | real | No | |
RE_Knock_Group | group | No | |
RE_Knock_Loc1 | location | No | |
RE_Knock_Loc2 | location | No | |
RE_Knock_Speed | real | No | |
RE_Knocktable | hashtable | No | |
SandStorm | group | No | |
SB | integervar | No | |
SB_Angle | real | Yes | |
SB_Colision | real | Yes | |
SB_Damage | real | Yes | |
SB_Distance | real | Yes | |
SB_Group | group | No | |
SB_Height | real | Yes | |
SB_Hero | unit | Yes | |
SB_Level | integer | Yes | |
SB_MaxDistance | real | Yes | |
SB_Missile | unit | Yes | |
SB_On | boolean | Yes | |
SB_Parabola | real | Yes | |
SB_Point | location | Yes | |
SB_Skip | integer | No | |
SB_Speed | real | Yes | |
SB_Sticked | boolean | Yes | |
SB_Target | unit | Yes | |
SB_Timer | real | Yes | |
SB_Times | integer | No | |
Shaman_boolean | boolean | Yes | |
SpellLevel | integer | No | |
Spree_Count | integer | Yes | |
Spree_Loopint1 | integer | No | |
Spree_Loopint2 | integer | No | |
Spree_Sounds | sound | Yes | |
Spree_Tempint | integer | No | |
Spree_Tempint2 | integer | No | |
Spree_TextC | integer | No | |
Spree_Texts | string | Yes | |
Spree_Time | real | Yes | |
Spree_TimedCount | integer | Yes | |
Spree_TimedSounds | sound | Yes | |
Spree_TimedText | string | Yes | |
Spree_TimedTextC | integer | No | |
SpreeEnd_Texts | string | Yes | |
Tavern1Heroes | unitcode | Yes | |
TDS | integervar | No | |
TDS_Damage | real | Yes | |
TDS_Hero | unit | Yes | |
TDS_On | boolean | Yes | |
TDS_Skip | integer | No | |
TDS_Target | unit | Yes | |
TDS_Time | real | Yes | |
TDS_Times | integer | No | |
Temp_Group | group | No | |
Temp_Point | location | No | |
TempGroup | group | No | |
TempHandle | handle | No | |
TempInteger | integer | No | |
TempLoc | location | No | |
TempPoint | location | No | |
TempPoint2 | location | No | |
TempPoint3 | location | No | |
TempUnit | unit | No | |
TempUnit2 | unit | No | |
TempUnitGroup | group | No | |
TempUnitGroup_Copy | group | No | |
Termal_Eruption_Ability_Level | integer | No | |
Termal_Eruption_Area_of_Effect | real | No | |
Termal_Eruption_Base_Damage | real | No | |
Termal_Eruption_Caster | unit | No | |
Termal_Eruption_Damage_Group | group | No | |
Termal_Eruption_Dummy_Ability | abilcode | No | |
Termal_Eruption_DummyAbility2 | abilcode | No | |
Termal_Eruption_Location | location | No | |
Termal_Eruption_Loop_Location | location | No | |
Termal_Eruption_Loop_Number | integer | No | |
Termal_Eruption_Owner | player | No | |
Termal_Eruption_Total_Damage | real | No | |
Thunder_Rage_Caster | unit | No | |
Total_Heroes | integer | No | |
unit_amount | integer | Yes | |
Unit_GroupDestroy | group | No | |
unit_type | unitcode | Yes | |
unit_type_var_three | unitcode | Yes | |
unit_type_var_two | unitcode | Yes | |
UnitGroup | group | No | |
UnitGroup2 | group | No | |
WhirlPools | group | No | |
Witchdoctor_boolean | boolean | Yes |
function Trig_DestroyFX_Actions takes nothing returns nothing
local effect f=bj_lastCreatedEffect
call TriggerSleepAction( 1.00 )
call DestroyEffect(f)
set f=null
endfunction
//===========================================================================
function InitTrig_Destroy_FX takes nothing returns nothing
set gg_trg_Destroy_FX = CreateTrigger( )
call TriggerAddAction( gg_trg_Destroy_FX, function Trig_DestroyFX_Actions )
endfunction
function Trig_Combine_Items_Conditions takes nothing returns boolean
if ( not ( GetItemCharges(GetManipulatedItem()) > 0 ) ) then
return false
endif
return true
endfunction
function Trig_Combine_Items_Actions takes nothing returns nothing
local integer ITEMCOUNT
local integer ITEMLOOP
local integer CHARGES
local integer MAXIMUM
local item NEWITEM
local unit OURUNIT
set MAXIMUM = 10
set ITEMCOUNT = 0
set ITEMLOOP = 0
set CHARGES = 0
set NEWITEM = GetManipulatedItem()
set OURUNIT = GetManipulatingUnit()
loop
exitwhen ITEMLOOP > 6
if ((GetItemTypeId(NEWITEM)) == (GetItemTypeId(UnitItemInSlotBJ(OURUNIT, ITEMLOOP)))) then
if ((GetItemCharges(UnitItemInSlotBJ(OURUNIT, ITEMLOOP)) + GetItemCharges(NEWITEM)) <= MAXIMUM) then
if not ( (UnitItemInSlotBJ(OURUNIT, ITEMLOOP)) == (NEWITEM)) then
set CHARGES = (GetItemCharges(UnitItemInSlotBJ(OURUNIT, ITEMLOOP))) + GetItemCharges(NEWITEM)
call SetItemCharges( UnitItemInSlotBJ(OURUNIT, ITEMLOOP), CHARGES )
call RemoveItem( NEWITEM )
set ITEMLOOP=7
endif
endif
endif
if ( ITEMLOOP < 7 ) then
set ITEMLOOP = ITEMLOOP + 1
endif
endloop
endfunction
//===========================================================================
function InitTrig_Combine_Items takes nothing returns nothing
set gg_trg_Combine_Items = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Combine_Items, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Combine_Items, Condition( function Trig_Combine_Items_Conditions ) )
call TriggerAddAction( gg_trg_Combine_Items, function Trig_Combine_Items_Actions )
endfunction