Name | Type | is_array | initial_value |
ActivePlayers | force | No | |
blabla1 | button | No | |
blabla2 | button | No | |
blabla3 | button | No | |
blabla4 | button | No | |
Boss | unit | No | |
boss | unit | No | |
cage | boolean | Yes | |
cam | camerasetup | No | |
chain | boolean | No | |
CurrentPlace | rect | No | |
Currunt_Camera | camerasetup | No | |
dec | button | No | |
dec_Copier | button | No | |
Dialogue | dialog | Yes | |
Dialogue2 | dialog | No | |
Dialogue3 | dialog | No | |
distance | real | No | |
emplacement | location | No | |
eug1 | button | No | |
eug2 | button | No | |
eug3 | button | No | |
event_num | integer | No | |
Evil | location | No | |
foot_step | sound | No | |
GameOver | boolean | No | |
ImDead | boolean | Yes | |
IntroSkipped | boolean | Yes | |
Lock | boolean | Yes | |
Lock_00 | boolean | No | true |
mob | unit | No | |
music | timer | No | |
next_unit | unit | No | |
NumOfAIs | integer | No | |
paint | boolean | No | |
Pass_word | boolean | No | |
PlayersLeftAlive | integer | No | |
Pont1 | dialog | No | |
pont1 | button | No | |
pont1_Copier | button | No | |
pont2 | button | No | |
Pont2 | dialog | No | |
pont2_Copier | button | No | |
pont3 | button | No | |
Pont3 | dialog | No | |
pont3_Copier | button | No | |
reponse1 | button | Yes | |
selected_unit | unit | No | |
sound | rect | No | |
tomb_item | boolean | Yes | |
Twisted | integer | No | |
unit_point | integer | No | |
verrou | boolean | No | |
verrou_Copier | boolean | No | |
vire | integer | No | |
wenddy | unit | No |
function getItemN takes nothing returns integer
local integer j = 0
local integer i = 1
local integer i_End = 6
loop
exitwhen i > i_End
if ( GetItemTypeId(UnitItemInSlotBJ(GetManipulatingUnit(), i )) == GetItemTypeId(GetManipulatedItem()) ) then
set j = j + 1
else
endif
set i = i + 1
endloop
return j
endfunction
function Trig_charge_Adder_Conditions takes nothing returns boolean
if ( not ( GetItemCharges(GetManipulatedItem()) > 0 ) ) then
return false
else
endif
if( not( getItemN() > 1 ) ) then
return false
endif
return true
endfunction
function Trig_charge_Adder_Func001C takes nothing returns boolean
return true
endfunction
function Trig_charge_Adder_Actions takes nothing returns nothing
local integer x = GetItemCharges(GetManipulatedItem())
local integer y = GetItemTypeId(GetManipulatedItem())
local integer i = 1
local integer i_End = 6
local item temp
call RemoveItem( GetManipulatedItem() )
loop
exitwhen i > i_End
set temp = UnitItemInSlotBJ(GetManipulatingUnit(), i)
if ( GetItemTypeId(temp) == y ) then
call SetItemCharges( temp, ( GetItemCharges(temp) + x ) )
else
endif
set i = i + 1
endloop
endfunction
//===========================================================================
function InitTrig_charge_Adder takes nothing returns nothing
set gg_trg_charge_Adder = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_charge_Adder, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_charge_Adder, Condition( function Trig_charge_Adder_Conditions ) )
call TriggerAddAction( gg_trg_charge_Adder, function Trig_charge_Adder_Actions )
endfunction
function Trig_set_names_Actions takes nothing returns nothing
call SetPlayerName( Player(11), ( " " ) )
endfunction
//===========================================================================
function InitTrig_set_names takes nothing returns nothing
set gg_trg_set_names = CreateTrigger( )
call TriggerAddAction( gg_trg_set_names, function Trig_set_names_Actions )
endfunction
function Trig_At_0s_Actions takes nothing returns nothing
call BlzLoadTOCFile( "war3mapimported\\myconsoleUI.toc" )
call BlzCreateSimpleFrame( "MyConsoleUIHuman", BlzGetFrameByName("ConsoleUI", 0), 0 )
call BlzCreateSimpleFrame( "MyConsoleUIOrc", BlzGetFrameByName("ConsoleUI", 0), 0 )
call BlzCreateSimpleFrame( "MyConsoleUIUndead", BlzGetFrameByName("ConsoleUI", 0), 0 )
call BlzCreateSimpleFrame( "MyConsoleUINightelf", BlzGetFrameByName("ConsoleUI", 0), 0 )
call BlzFrameSetVisible( BlzGetFrameByName("MyConsoleUIUndead", 0), false )
call BlzFrameSetVisible( BlzGetFrameByName("MyConsoleUINightelf", 0), false )
call BlzFrameSetVisible( BlzGetFrameByName("MyConsoleUIOrc", 0), false )
call BlzFrameSetVisible( BlzGetFrameByName("MyConsoleUIHuman", 0), false )
call BlzFrameSetLevel( BlzGetFrameByName("ResourceBarFrame", 0), 3 )
endfunction
//===========================================================================
function InitTrig_At_0s takes nothing returns nothing
set gg_trg_At_0s = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_At_0s, 0.00 )
call TriggerAddAction( gg_trg_At_0s, function Trig_At_0s_Actions )
endfunction