Name | Type | is_array | initial_value |
agility | button | No | |
agilityc | unit | No | |
Aragorn | unit | No | |
aragornvideo | unit | No | |
BleedingOrk | unit | No | |
Borom | unit | No | |
Boromir | unit | No | |
boromirendvideo | unit | No | |
Bruchtal | button | No | |
CaradrasLegolas | unit | No | |
cellebron | unit | No | |
controvert | player | No | |
Darklightniung1 | lightning | No | |
Darklightniung1_Kopieren | lightning | No | |
Darklightniung1_Kopieren_2 | lightning | No | |
Darklightniung1_Kopieren_3 | lightning | No | |
Darklightniung1_Kopieren_4 | lightning | No | |
Darklightniung1_Kopieren_5 | lightning | No | |
Darklightniung1_Kopieren_6 | lightning | No | |
Darklightniung1_Kopieren_7 | lightning | No | |
Darklightniung1_Kopieren_8 | lightning | No | |
Darkstone | unit | No | |
difficulty | dialog | No | |
Doorgandalf | unit | No | |
dummycaster | unit | No | |
easy | button | No | |
EntranceArchers | group | No | |
fellowallies | force | No | |
fellows | group | No | |
Fellowship | group | No | |
fellowshipkar | group | No | |
fellowshplay | force | No | |
felows | gamecache | No | |
firstaragorn | unit | No | |
firstgandalf | unit | No | |
footofC | button | No | |
Frodo | unit | No | |
FrodoandSam | group | No | |
gandalfaragorn | boolean | No | |
Gandalfowner | player | No | |
Ghosts | group | No | |
Gimlivideo | unit | No | |
goonplaying | button | No | |
greatla | button | No | |
hard | button | No | |
heallightning | lightning | No | |
hobbitsmp | group | No | |
Insane | button | No | |
Kriiiiiiiii | group | No | |
lastminion | unit | No | |
lastur | unit | No | |
legolasvideo | unit | No | |
ligh1 | lightning | No | |
Ligh2 | lightning | No | |
Ligh3 | lightning | No | |
Ligh4 | lightning | No | |
Lordoftheunderworld | unit | No | |
LothlorienWay | button | No | |
lutz | unit | No | |
meteorunit | unit | No | |
METORTARGETS | group | No | |
mirror | boolean | No | |
moonlighttarget | unit | No | |
Moonlightunits | group | No | |
Moria | button | No | |
movie1 | boolean | No | |
movie1skipp | boolean | No | |
normal | button | No | |
Orks | group | No | |
pent | effect | No | |
Playernu | integer | No | |
portetunit | unit | No | |
power | button | No | |
Powertarg | group | No | |
QopAnim | effect | No | |
respawn | dialog | No | |
respawnoff | button | No | |
respawnon | button | No | |
Roar | sound | No | |
Sam | unit | No | |
schlussstunn | effect | No | |
Soul | unit | No | |
Soul2 | unit | No | |
stoneop | unit | No | |
takesomerest | boolean | No | |
teachstone | dialog | No | |
teleporterfromtown | unit | No | |
teleunit | unit | No | |
Thebanditescamp | button | No | |
timer | unit | No | |
timerowner | player | No | |
TP | effect | No | |
TPcaster | unit | No | |
TPtown | effect | No | |
twinloser | unit | No | |
urukhaiII | unit | No | |
veryhard | button | No | |
Vulcano | destructable | No | |
waypoints | multiboard | No | |
Waypoints | dialog | No | |
whatsimportantcreature | unit | No | |
widomc | unit | No | |
wingame | button | No | |
winingplayer | player | No | |
winoptions | dialog | No | |
wisdom | button | No | |
wkcontr | player | No |
function Trig_revive_Func001Func007C takes nothing returns boolean
if ( ( GetOwningPlayer(GetDyingUnit()) == Player(7) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetDyingUnit()) == Player(8) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetDyingUnit()) == Player(10) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetDyingUnit()) == Player(11) ) ) then
return true
endif
if ( ( GetOwningPlayer(GetDyingUnit()) == Player(PLAYER_NEUTRAL_AGGRESSIVE) ) ) then
return true
endif
return false
endfunction
function Trig_revive_Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) != 'O00A' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetDyingUnit()) != 'O007' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetDyingUnit()) != 'O008' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetDyingUnit()) != 'Obla' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetDyingUnit()) != 'Oshd' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetDyingUnit()) != 'E009' ) ) then
return false
endif
if ( not Trig_revive_Func001Func007C() ) then
return false
endif
return true
endfunction
function Trig_revive_Conditions takes nothing returns boolean
if ( not Trig_revive_Func001C() ) then
return false
endif
return true
endfunction
function Trig_revive_Actions takes nothing returns nothing
local location position
local integer unitcode
local player owner
set position = GetUnitLoc(GetDyingUnit())
set unitcode = GetUnitTypeId(GetDyingUnit())
set owner = GetOwningPlayer(GetDyingUnit())
call TriggerSleepAction(1200.00)
call CreateNUnitsAtLoc( 1, unitcode, owner, position, bj_UNIT_FACING )
endfunction
//===========================================================================
function InitTrig_revive takes nothing returns nothing
set gg_trg_revive = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_revive, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_revive, Condition( function Trig_revive_Conditions ) )
call TriggerAddAction( gg_trg_revive, function Trig_revive_Actions )
endfunction