Name | Type | is_array | initial_value |
ActivePlayers | force | No | |
blabla | dialog | No | |
blabla1 | button | No | |
blabla2 | button | No | |
blabla3 | button | No | |
blabla4 | button | 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 | |
decision | dialog | No | |
Dialog | dialog | No | |
dialogue | dialog | No | |
dialogue_Copier | dialog | No | |
dialogue_Copier_Copier | dialog | No | |
dialogue_Copier_Copier_Copier | dialog | No | |
distance | real | No | |
eug1 | button | No | |
eug2 | button | No | |
eug3 | button | No | |
eugenie | dialog | No | |
event_num | integer | No | |
Evil | location | No | |
foot_step | sound | No | |
GameOver | boolean | No | |
ImDead | boolean | Yes | |
Lock | boolean | Yes | |
Lock_00 | boolean | No | true |
next_unit | unit | No | |
NumOfAIs | integer | No | |
paint | boolean | No | |
Pass_word | boolean | No | |
PlayersLeftAlive | integer | No | |
pont1 | button | No | |
pont1_Copier | button | No | |
pont2 | button | No | |
pont2_Copier | button | No | |
pont3 | button | No | |
pont3_Copier | button | No | |
reponse1 | button | No | |
reponse1_Copier | button | No | |
reponse1_Copier_Copier | button | No | |
selected_unit | unit | No | |
sound | rect | No | |
tomb_item | boolean | Yes | |
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