Name | Type | is_array | initial_value |
AA_PointLeak | location | Yes | |
AbsoluteCaster | unit | No | |
AbsolutePoint1 | location | No | |
Active | boolean | Yes | |
Angle | real | No | |
AngleIndex | real | Yes | |
AngleVar | real | No | |
AngleVar01 | real | No | |
AngleVar02 | real | No | |
AngleVar03 | real | No | |
AngleVar04 | real | No | |
AngleVar05 | real | No | |
Blade_Angle | real | Yes | |
Blade_Caster | unit | Yes | |
Blade_Dummy | unit | Yes | |
Blade_Dummy2 | unit | Yes | |
Blade_Fade | real | Yes | |
Blade_Group | group | Yes | |
Blade_Group2 | group | Yes | |
Blade_Inst | integervar | No | |
Blade_MuiCount | integer | No | |
Blade_Point | location | Yes | |
Blade_Timer | timer | No | |
BladeInst | integer | No | |
BlinkingStrikeCaster | unit | No | |
BP_Integer | integervar | Yes | |
BP_Unit | unit | Yes | |
brangle | real | No | |
brboolean | boolean | No | |
brcaster | unit | No | |
brcasterpoint | location | No | |
brdamage | real | No | |
brpoint | real | No | |
brtarget | unit | No | |
brtargetpoint | location | No | |
bscaster | unit | No | |
bsgroup | group | No | |
bsnovapoint2 | location | No | |
bsnovapoint3 | location | No | |
bspoint | location | No | |
Caster | unit | No | |
CastingPoint | location | No | |
CloneP | location | No | |
CountattackInt | integer | No | |
CounterAttack | unit | Yes | |
CurDistance | real | Yes | |
CV | integer | No | |
Damage | real | Yes | |
DamageLoop1 | integer | Yes | |
DamageLoop2 | integer | Yes | |
DeathMatch | integer | Yes | |
Distance | real | No | |
DistanceVar | real | No | |
DistanceVar01 | real | No | |
DistanceVar02 | real | No | |
DMS_b_AffectAllies | boolean | Yes | |
DMS_b_AffectFlyingUnits | boolean | Yes | |
DMS_b_AutoFacing | boolean | Yes | |
DMS_b_Collision | boolean | Yes | |
DMS_b_DestroyTrees | boolean | Yes | |
DMS_b_IsWorking | boolean | Yes | |
DMS_b_Missile | boolean | Yes | |
DMS_b_MissileMoveDamage | boolean | Yes | |
DMS_b_MoveDeath | boolean | Yes | |
DMS_i_Number | integer | No | |
DMS_pt_TempPoint | location | Yes | |
DMS_r_Angle | real | Yes | |
DMS_r_CollisionRadius | real | Yes | |
DMS_r_DestroyTreesRadius | real | Yes | |
DMS_r_Distance | real | Yes | |
DMS_r_MissileDamage | real | Yes | |
DMS_r_MissileMovingDamage | real | Yes | |
DMS_r_MissileRadius | real | Yes | |
DMS_r_MoveDamage | real | Yes | |
DMS_r_MoveDamageIncrease | real | Yes | |
DMS_r_Speed | real | Yes | |
DMS_r_StoppingSpeed | real | Yes | |
DMS_s_MissileEffect1 | string | Yes | |
DMS_s_MissileEffect2 | string | Yes | |
DMS_s_MovingEffect1 | string | Yes | |
DMS_s_MovingEffect2 | string | Yes | |
DMS_u_AffectedUnit | unit | Yes | |
DMS_u_SourceUnit | unit | Yes | |
DMS_ug_Group | group | No | |
DMS_ug_TempGroup | group | Yes | |
dsangle | real | No | |
dsangle2 | location | No | |
dscaster | unit | No | |
dscenter | location | No | |
dseffect | effect | No | |
dspoint | location | No | |
dspoint2 | location | No | |
dstarget | unit | No | |
dstargetpoint | location | No | |
Dummy | unit | No | |
DummyAngle | real | No | |
DummyPoint | location | No | |
EventTimer | timer | No | |
EventTimer2 | timer | No | |
EventTimerWindow | timerdialog | Yes | |
fecaster | unit | No | |
fedistance1 | real | No | |
fegroup | group | No | |
fepickedunit | location | No | |
fepickedunit2 | unit | No | |
fepoint | location | No | |
fepoint2 | location | No | |
fepoint3 | location | No | |
fereal | real | No | |
fetarget | unit | No | |
FloatingTextVar | texttag | No | |
FlySFX | string | No | |
Force_Angle | real | Yes | |
Force_Caster | unit | Yes | |
Force_Dummy | unit | Yes | |
Force_Group | group | Yes | |
Force_Group2 | group | Yes | |
Force_Inst | integervar | No | |
Force_MuiCount | integer | No | |
Force_Point | location | Yes | |
Force_Point2 | location | Yes | |
Force_Point3 | location | Yes | |
Force_Point4 | location | Yes | |
Force_Point5 | location | Yes | |
Force_Point6 | location | Yes | |
Force_Timer | timer | No | |
FrozenUnits | group | No | |
GameMode | integer | No | |
GetCastP | location | No | |
GetKnocked | group | No | |
GetsugaPoint | location | No | |
Group | group | No | |
GroupVar | group | No | |
GroupVar10 | group | No | |
GroupVar11 | group | No | |
GroupVar12 | group | No | |
GroupVar13 | group | No | |
GroupVar2 | group | No | |
GroupVar3 | group | No | |
GroupVar4 | group | No | |
GroupVar5 | group | No | |
GroupVar6 | group | No | |
GroupVar7 | group | No | |
GroupVar8 | group | No | |
GroupVar9 | group | No | |
HBC | unit | No | |
HBD | unit | No | |
HBI | integer | No | |
HBP | location | Yes | |
HBSFX | effect | No | |
HBT | unit | No | |
Hero_Revive_Time_Factor | real | No | |
Heroes_All | unitcode | Yes | |
Heroes_Scourge | unitcode | Yes | |
Heroes_Sentinel | unitcode | Yes | |
ImpactSFX | string | No | |
ImpactSFXIndex | string | Yes | |
IntegerA | integer | No | |
IntegerVar | integer | No | |
ItemDrop | integer | Yes | |
ItemDropCount | integer | No | |
Jumper | unit | No | |
JumperIndex | unit | Yes | |
JumpSFX | effect | Yes | |
JumpTimed | boolean | No | |
KB_Angle | real | Yes | |
KB_Casters | unit | Yes | |
KB_CountBuffs | integer | No | |
KB_DestroyTrees | boolean | Yes | |
KB_EffectCounter | integer | Yes | |
KB_EffectCounter2 | integer | Yes | |
KB_Effects_1 | string | Yes | |
KB_Effects_2 | string | Yes | |
KB_GeneralIntegers | integervar | Yes | |
KB_KnockbackedUnits | group | No | |
KB_Levels | integer | Yes | |
KB_MaxDistance | real | Yes | |
KB_ReachedDistance | real | Yes | |
KB_ReducedReal | real | No | |
KB_ReduceSpeedReal | real | Yes | |
KB_SpecificSpeed | real | Yes | |
KB_StartPositions | location | Yes | |
KB_TempPoint | location | Yes | |
KB_TempReal | real | No | |
KB_TotalKnockUnits | integer | No | |
KB_Units | unit | Yes | |
KBA_Caster | unit | No | |
KBA_DestroyTrees | boolean | No | |
KBA_DistancePerLevel | real | No | |
KBA_Level | integer | No | |
KBA_SpecialEffects | string | Yes | |
KBA_Speed | real | No | |
KBA_StartingPosition | location | No | |
KBA_TargetUnit | unit | No | |
Kill_Count | integer | Yes | |
KN_Caster | unit | Yes | |
KN_Clons | integer | Yes | |
KN_DummyUnit | unit | Yes | |
KN_FloatingText | texttag | Yes | |
KN_Integes | integer | Yes | |
KN_Player | player | No | |
KN_Text | string | Yes | |
List | integer | No | |
LoopIndex | integer | Yes | |
LoopRandom | integer | No | |
MaxDistance | real | Yes | |
MeteorCaster | unit | No | |
MeteorKBAngle | real | No | |
MeteorKBGroup | group | No | |
MeteorKBKnockBackGroup | group | No | |
MeteorKBReal | real | No | |
MeteorKBSpeed | real | No | |
MeteorKBTargetedUnit | unit | No | |
MeteorPoint1 | location | No | |
MeteorPoint2 | location | No | |
MODE_AllRandom_AllPick | integer | No | |
MODE_Normal | integer | No | |
MODE_Reverse | integer | No | |
MSCaster | integer | No | |
MSTarget | integer | No | |
MUI | integer | No | |
Multiboard_ShowDeaths | boolean | No | |
Multiboard_Spots | integer | Yes | |
Nova_Caster | unit | No | |
Nova_Dummy | unit | Yes | |
Nova_Group | group | No | |
Nova_Point | location | Yes | |
Odd_Man_Out | force | No | |
OS | unit | No | |
OSP | location | No | |
OSTexts | texttag | No | |
OSTime | integer | No | |
ParabolaHeight | real | No | |
ParabolaHeightIndex | real | Yes | |
playablemaparea | rect | No | |
Player | player | No | |
Player_Already_Picked | integer | Yes | |
Player_Colors | string | Yes | |
Player_Count | integer | No | |
Players | force | No | |
PlayersScourge | force | No | |
PlayersScourgeCount | integer | No | |
PlayersScourgeReverse | force | No | |
PlayersSentinel | force | No | |
PlayersSentinelCount | integer | No | |
PlayersSentinelReverse | force | No | |
Point1 | location | No | |
Point2 | location | No | |
PointLeak | location | No | |
Random_Hero | integer | No | |
RandomData_All | integer | Yes | |
RandomData_Scourge | integer | Yes | |
RandomData_Sentinel | integer | Yes | |
RandomTotal_All | integer | No | |
RandomTotal_Scourge | integer | No | |
RandomTotal_Sentinel | integer | No | |
Real1 | real | No | |
Real2 | real | No | |
Repick_Cost_Ammount | integer | No | |
RevivableHeroes | group | No | |
RevivableTimersWindows | timerdialog | Yes | |
ReviveTimers | timer | Yes | |
S_a_Ability | abilcode | Yes | |
S_i_Counter | integer | Yes | |
S_i_Number | integer | No | |
S_pt_TempPoint | location | Yes | |
S_r_Angle | real | Yes | |
S_r_Angle2 | real | Yes | |
S_r_Duration | real | Yes | |
S_r_Size | real | Yes | |
SBGC | unit | No | |
SBGP | location | No | |
SBS_i_TempNumber | integer | No | |
SBS_ug_Group | group | No | |
SD_a_Ability | abilcode | Yes | |
SD_i_Counter | integer | Yes | |
SD_i_Number | integer | No | |
SD_pt_TempPoint | location | Yes | |
SD_r_Angle | real | Yes | |
SD_r_Offset | real | Yes | |
SD_u_Caster | unit | Yes | |
SD_ug_Group | group | No | |
SD_ug_TempGroup | group | Yes | |
SE | effect | No | |
SEIndex | effect | Yes | |
Sfx | effect | Yes | |
Shadow_Raze_Count | integer | No | |
ShortMode_On | boolean | No | |
SpecialEffect | effect | No | |
SpecialEffect2 | effect | No | |
SpecialEffects | effect | No | |
SpeedIndex | real | Yes | |
SpeedOrTime | real | No | |
SS_b_ChargePart | boolean | Yes | |
SS_i_TempNumber | integer | No | |
SS_ug_Group | group | No | |
SSJ_a_Ability | abilcode | Yes | |
SSJ_i_Counter | integer | Yes | |
SSJ_i_Number | integer | No | |
SSJ_pt_TempPoint | location | Yes | |
SSJ_r_Duration | real | Yes | |
SSJ_r_Radius | real | Yes | |
SSJ_r_Size | real | Yes | |
SSJ_u_Caster | unit | Yes | |
SSJ_u_Dummy | unit | Yes | |
SSJ_ug_Group | group | No | |
SSJ_ug_TempGroup | group | Yes | |
StartCliffHeight | real | Yes | |
StringVar | string | No | |
Super_Creeps_On | boolean | No | |
Target | unit | Yes | |
TargetPoint | location | No | |
TargetPointIndex | location | Yes | |
TempAngle | real | Yes | |
TempDistance1 | real | Yes | |
TempDistance2 | real | Yes | |
TempGroup | group | Yes | |
TempInteger | integer | No | |
TempInteger1 | integer | No | |
TempInteger3 | integer | Yes | |
TempInteger4 | integer | Yes | |
TempLoc01 | location | No | |
TempLoc1 | location | No | |
TempLoc10 | location | No | |
TempLoc11 | location | No | |
TempLoc12 | location | No | |
TempLoc13 | location | No | |
TempLoc14 | location | No | |
TempLoc15 | location | No | |
TempLoc16 | location | No | |
TempLoc17 | location | No | |
TempLoc18 | location | No | |
TempLoc19 | location | No | |
TempLoc1_Cast | location | No | |
TempLoc2 | location | No | |
TempLoc20 | location | No | |
TempLoc21 | location | No | |
TempLoc22 | location | No | |
TempLoc23 | location | No | |
TempLoc24 | location | No | |
TempLoc25 | location | No | |
TempLoc26 | location | No | |
TempLoc27 | location | No | |
TempLoc28 | location | No | |
TempLoc29 | location | No | |
TempLoc3 | location | No | |
TempLoc30 | location | No | |
TempLoc31 | location | No | |
TempLoc32 | location | No | |
TempLoc33 | location | No | |
TempLoc34 | location | No | |
TempLoc35 | location | No | |
TempLoc36 | location | No | |
TempLoc37 | location | No | |
TempLoc38 | location | No | |
TempLoc39 | location | No | |
TempLoc3_Cast | location | No | |
TempLoc4 | location | No | |
TempLoc40 | location | No | |
TempLoc41 | location | No | |
TempLoc42 | location | No | |
TempLoc43 | location | No | |
TempLoc44 | location | No | |
TempLoc45 | location | No | |
TempLoc46 | location | No | |
TempLoc47 | location | No | |
TempLoc48 | location | No | |
TempLoc49 | location | No | |
TempLoc5 | location | No | |
TempLoc50 | location | No | |
TempLoc51 | location | No | |
TempLoc52 | location | No | |
TempLoc53 | location | No | |
TempLoc54 | location | No | |
TempLoc6 | location | No | |
TempLoc7 | location | No | |
TempLoc8 | location | No | |
TempLoc9 | location | No | |
TempLoc_Cast1 | location | No | |
TempLoc_Cast2 | location | No | |
TempPoint1 | location | Yes | |
TempPoint2 | location | Yes | |
TempPoint3 | location | Yes | |
TempPointValue | location | Yes | |
TempReal | real | No | |
TempReal2 | real | No | |
TempSE | effect | Yes | |
TextDamage | group | No | |
TG | group | Yes | |
Timer | timer | No | |
Timer_Gods_blessing | timer | No | |
Tornado_Angle | real | Yes | |
Tornado_Caster | unit | Yes | |
Tornado_Distance | real | Yes | |
Tornado_Effect | effect | Yes | |
Tornado_Group | group | Yes | |
Tornado_Group2 | group | Yes | |
Tornado_MuiCount | integer | No | |
Tornado_Point | location | Yes | |
Tornado_Timer | timer | No | |
TP | location | Yes | |
UberMode_On | boolean | No | |
UltraShortMode_On | boolean | No | |
UnitCaster | unit | No | |
UnitGroupVariable | group | No | |
UnitTarget | unit | No | |
UnitVarAttacked | unit | No | |
UnitVarAttacker | unit | No | |
UnitVarCaste11 | unit | No | |
UnitVarCaster | unit | No | |
UnitVarCaster1 | unit | No | |
UnitVarCaster10 | unit | No | |
UnitVarCaster11 | unit | No | |
UnitVarCaster12 | unit | No | |
UnitVarCaster2 | unit | No | |
UnitVarCaster3 | unit | No | |
UnitVarCaster4 | unit | No | |
UnitVarCaster5 | unit | No | |
UnitVarCaster6 | unit | No | |
UnitVarCaster7 | unit | No | |
UnitVarCaster8 | unit | No | |
UnitVarCaster9 | unit | No | |
UnitVarFatal | unit | No | |
UnitVarFatalArray | unit | Yes | |
UnitVarLast | unit | No | |
UnitVarLast01 | unit | Yes | |
UnitVarLastArray | unit | Yes | |
UnitVarLastUnit | unit | Yes | |
UnitVarMultiShot | unit | Yes | |
UnitVarPicked | unit | No | |
UnitVarPicked1 | unit | No | |
UnitVarPicked2 | unit | No | |
UnitVarPicked3 | unit | No | |
UnitVarTarget | unit | No | |
UnitVarTarget1 | unit | No | |
UnitVarTarget2 | unit | No | |
UnitVarTarget3 | unit | No | |
UnitVarTarget4 | unit | No | |
UnitVarTarget5 | unit | No | |
UnitVarTarget6 | unit | No | |
UnitVarTarget7 | unit | No | |
UnitVarTarget8 | unit | No | |
VarOrder | ordercode | No |
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 = 15
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