• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[JASS] Can ne1 tell me what this says?

Status
Not open for further replies.
Level 4
Joined
Jan 9, 2006
Messages
54
Sum1 emailed me this and says its a bunch of triggers. I took a look at it and have no idea wat it means. It lookes like jass and i was wondering if sum1 can help me read it and put it in the trigger editor. Its long and well, here it goes:

globals
timer O16448=null
timerdialog O16606=null
leaderboard O16644=null
force O14024=null
force O14135=null
force O14224=null
force O14263=null
force O14345=null
force O14380=null
force O14445=null
force O14533=null
force O14557=null
force O14574=null
force O14690=null
force O14731=null
rect O16464=null
trigger O14815=null
trigger O14837=null
trigger O14940=null
trigger O15020=null
trigger O15108=null
trigger O15141=null
trigger O15229=null
trigger O15272=null
trigger O15282=null
trigger O15363=null
trigger O15436=null
trigger O15526=null
trigger O15621=null
trigger O15625=null
trigger O15661=null
trigger O15754=null
trigger O15838=null
trigger O15844=null
trigger O15957=null
trigger O15968=null
trigger O16056=null
trigger O16159=null
endglobals
function O17033 takes nothing returns nothing
set O16448=CreateTimer()
set O14024=CreateForce()
set O14135=CreateForce()
set O14224=CreateForce()
set O14263=CreateForce()
set O14345=CreateForce()
set O14380=CreateForce()
set O14445=CreateForce()
set O14533=CreateForce()
set O14557=CreateForce()
set O14574=CreateForce()
set O14690=CreateForce()
set O14731=CreateForce()
endfunction
function O17069 takes nothing returns nothing
local player O13795=Player(PLAYER_NEUTRAL_AGGRESSIVE)
local unit O13910
local integer O16785
local trigger O16334
local real O16926
set O13910=CreateUnit(O13795,'h00G',256.0,-1920.0,270.000)
endfunction
function O17193 takes nothing returns nothing
local player O13795=Player(PLAYER_NEUTRAL_AGGRESSIVE)
local unit O13910
local integer O16785
local trigger O16334
local real O16926
set O13910=CreateUnit(O13795,'h00F',480.2,-2072.2,100.704)
set O13910=CreateUnit(O13795,'h00F',401.6,-2104.3,0.560)
set O13910=CreateUnit(O13795,'h00F',79.1,-1738.4,179.072)
set O13910=CreateUnit(O13795,'z003',301.8,-1640.9,91.640)
set O13910=CreateUnit(O13795,'z003',86.7,-2111.4,86.520)
set O13910=CreateUnit(O13795,'z003',39.3,-1947.3,209.010)
set O13910=CreateUnit(O13795,'z005',348.7,-2175.7,53.670)
set O13910=CreateUnit(O13795,'z005',460.9,-1817.9,266.613)
set O13910=CreateUnit(O13795,'z005',171.1,-1660.0,204.506)
endfunction
function O17287 takes nothing returns nothing
endfunction
function O17381 takes nothing returns nothing
endfunction
function O17498 takes nothing returns nothing
call O17069()
call O17287()
call O17193()
call O17381()
endfunction
function O17514 takes nothing returns nothing
local weathereffect O16583
set O16464=Rect(-32.0,-2272.0,416.0,-1920.0)
endfunction
function O17634 takes nothing returns nothing
call SetPlayerStateBJ(GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD,15)
call SetPlayerStateBJ(GetEnumPlayer(),PLAYER_STATE_RESOURCE_LUMBER,5)
endfunction
function O17692 takes nothing returns nothing
call ForForce(GetPlayersAll(),function O17634)
endfunction
function O17777 takes nothing returns nothing
set O14815=CreateTrigger()
call TriggerRegisterTimerEventSingle(O14815,1.00)
call TriggerAddAction(O14815,function O17692)
endfunction
function O17835 takes nothing returns nothing
call SetPlayerTechMaxAllowed(GetEnumPlayer(),'h000',1)
endfunction
function O17864 takes nothing returns nothing
call SetPlayerTechMaxAllowed(GetEnumPlayer(),'h001',1)
endfunction
function O17950 takes nothing returns nothing
call SetPlayerTechMaxAllowed(GetEnumPlayer(),'h004',1)
endfunction
function O17958 takes nothing returns nothing
call SetPlayerTechMaxAllowed(GetEnumPlayer(),'h002',1)
endfunction
function O17983 takes nothing returns nothing
call SetPlayerTechMaxAllowed(GetEnumPlayer(),'h003',1)
endfunction
function O18102 takes nothing returns nothing
call SetPlayerTechMaxAllowed(GetEnumPlayer(),'h00B',0)
call SetPlayerTechMaxAllowed(GetEnumPlayer(),'h00F',0)
call SetPlayerTechMaxAllowed(GetEnumPlayer(),'h00C',0)
call SetPlayerTechMaxAllowed(GetEnumPlayer(),'z004',0)
call SetPlayerTechMaxAllowed(GetEnumPlayer(),'z005',0)
call SetPlayerTechMaxAllowed(GetEnumPlayer(),'z002',0)
call SetPlayerTechMaxAllowed(GetEnumPlayer(),'z003',0)
endfunction
function O18197 takes nothing returns nothing
call SetPlayerTechMaxAllowed(GetEnumPlayer(),'h00E',0)
call SetPlayerTechMaxAllowed(GetEnumPlayer(),'h00D',0)
endfunction
function O18263 takes nothing returns nothing
call ForForce(GetPlayersAll(),function O17835)
call ForForce(GetPlayersAll(),function O17864)
call ForForce(GetPlayersAll(),function O17950)
call ForForce(GetPlayersAll(),function O17958)
call ForForce(GetPlayersAll(),function O17983)
call ForForce(GetPlayersAll(),function O18102)
call ForForce(GetPlayersAll(),function O18197)
endfunction
function O18297 takes nothing returns nothing
set O14837=CreateTrigger()
call TriggerRegisterTimerEventSingle(O14837,1.00)
call TriggerAddAction(O14837,function O18263)
endfunction
function O18331 takes nothing returns nothing
call CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED,"TRIGSTR_001","TRIGSTR_002","ReplaceableTextures\\CommandButtons\\BTNAmbush.blp")
call CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED,"TRIGSTR_003","TRIGSTR_004","ReplaceableTextures\\CommandButtons\\BTNAmbush.blp")
call CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED,"TRIGSTR_292","TRIGSTR_293","ReplaceableTextures\\CommandButtons\\BTNAmbush.blp")
call CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED,"TRIGSTR_314","TRIGSTR_315","ReplaceableTextures\\CommandButtons\\BTNAmbush.blp")
call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"TRIGSTR_210","TRIGSTR_211","ReplaceableTextures\\CommandButtons\\BTNAmbush.blp")
call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"TRIGSTR_321","TRIGSTR_322","ReplaceableTextures\\CommandButtons\\BTNAmbush.blp")
call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"TRIGSTR_306","TRIGSTR_307","ReplaceableTextures\\CommandButtons\\BTNAmbush.blp")
endfunction
function O18400 takes nothing returns nothing
set O14940=CreateTrigger()
call TriggerRegisterTimerEventSingle(O14940,1.00)
call TriggerAddAction(O14940,function O18331)
endfunction
function O18440 takes nothing returns nothing
call CreateNUnitsAtLoc(1,'e000',GetEnumPlayer(),GetRandomLocInRect(GetPlayableMapRect()),bj_UNIT_FACING)
endfunction
function O18499 takes nothing returns nothing
call ForForce(GetPlayersAll(),function O18440)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_179")
call TriggerSleepAction(180.00)
endfunction
function O18556 takes nothing returns nothing
set O15020=CreateTrigger()
call TriggerRegisterTimerEventSingle(O15020,1.00)
call TriggerAddAction(O15020,function O18499)
endfunction
function O18587 takes nothing returns nothing
set O14024=GetPlayersAllies(Player(0))
set O14135=GetPlayersAllies(Player(1))
set O14445=GetPlayersAllies(Player(2))
set O14557=GetPlayersAllies(Player(3))
set O14380=GetPlayersAllies(Player(4))
set O14533=GetPlayersAllies(Player(5))
set O14263=GetPlayersAllies(Player(6))
set O14345=GetPlayersAllies(Player(7))
set O14731=GetPlayersAllies(Player(8))
set O14224=GetPlayersAllies(Player(9))
set O14690=GetPlayersAllies(Player(10))
set O14574=GetPlayersAllies(Player(11))
endfunction
function O18589 takes nothing returns nothing
set O15108=CreateTrigger()
call TriggerRegisterTimerEventSingle(O15108,1.00)
call TriggerAddAction(O15108,function O18587)
endfunction
function O18631 takes nothing returns boolean
if(not(GetUnitTypeId(GetConstructedStructure())=='h000'))then
return false
endif
return true
endfunction
function O18700 takes nothing returns nothing
call UnitRemoveAbilityBJ('Avul',GetConstructedStructure())
endfunction
function O18806 takes nothing returns nothing
set O15141=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(O15141,EVENT_PLAYER_UNIT_CONSTRUCT_FINISH)
call TriggerAddCondition(O15141,Condition(function O18631))
call TriggerAddAction(O15141,function O18700)
endfunction
function O18878 takes nothing returns nothing
call FogEnableOff()
call FogMaskEnableOff()
call TriggerSleepAction(0.09)
call FogEnableOn()
call FogMaskEnableOn()
endfunction
function O18883 takes nothing returns nothing
set O15229=CreateTrigger()
call TriggerRegisterTimerEventSingle(O15229,0.01)
call TriggerAddAction(O15229,function O18878)
endfunction
function O18969 takes nothing returns nothing
call StartTimerBJ(O16448,true,20.00)
call CreateTimerDialogBJ(O16448,"TRIGSTR_143")
call TimerDialogDisplayBJ(true,O16606)
endfunction
function O19062 takes nothing returns nothing
set O15272=CreateTrigger()
call TriggerRegisterTimerEventSingle(O15272,0.01)
call TriggerAddAction(O15272,function O18969)
endfunction
function O19170 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function O19265 takes nothing returns nothing
call DisplayTimedTextToForce(GetPlayersAll(),20.00,(GetPlayerName(GetTriggerPlayer())+" Has Left The Game."))
call SetPlayerName(GetTriggerPlayer(),(("|cff363636"+GetPlayerName(GetTriggerPlayer()))+"(Left)|r"))
call ForGroupBJ(GetUnitsOfPlayerAll(GetTriggerPlayer()),function O19170)
endfunction
function O19317 takes nothing returns nothing
set O15282=CreateTrigger()
call TriggerRegisterPlayerEventLeave(O15282,Player(0))
call TriggerRegisterPlayerEventLeave(O15282,Player(1))
call TriggerRegisterPlayerEventLeave(O15282,Player(2))
call TriggerRegisterPlayerEventLeave(O15282,Player(3))
call TriggerRegisterPlayerEventLeave(O15282,Player(4))
call TriggerRegisterPlayerEventLeave(O15282,Player(5))
call TriggerRegisterPlayerEventLeave(O15282,Player(6))
call TriggerRegisterPlayerEventLeave(O15282,Player(7))
call TriggerRegisterPlayerEventLeave(O15282,Player(8))
call TriggerRegisterPlayerEventLeave(O15282,Player(9))
call TriggerRegisterPlayerEventLeave(O15282,Player(10))
call TriggerRegisterPlayerEventLeave(O15282,Player(11))
call TriggerAddAction(O15282,function O19265)
endfunction
function O19398 takes nothing returns nothing
call SetPlayerAllianceStateBJ(GetEnumPlayer(),GetEnumPlayer(),bj_ALLIANCE_ALLIED_VISION)
endfunction
function O19404 takes nothing returns nothing
call SetPlayerAllianceStateBJ(GetEnumPlayer(),GetEnumPlayer(),bj_ALLIANCE_ALLIED_VISION)
endfunction
function O19490 takes nothing returns nothing
call SetPlayerAllianceStateBJ(GetEnumPlayer(),GetEnumPlayer(),bj_ALLIANCE_ALLIED_VISION)
endfunction
function O19502 takes nothing returns nothing
call SetPlayerAllianceStateBJ(GetEnumPlayer(),GetEnumPlayer(),bj_ALLIANCE_ALLIED_VISION)
endfunction
function O19593 takes nothing returns nothing
call SetPlayerAllianceStateBJ(GetEnumPlayer(),GetEnumPlayer(),bj_ALLIANCE_ALLIED_VISION)
endfunction
function O19661 takes nothing returns nothing
call SetPlayerAllianceStateBJ(GetEnumPlayer(),GetEnumPlayer(),bj_ALLIANCE_ALLIED_VISION)
endfunction
function O19748 takes nothing returns nothing
call SetPlayerAllianceStateBJ(GetEnumPlayer(),GetEnumPlayer(),bj_ALLIANCE_ALLIED_VISION)
endfunction
function O19749 takes nothing returns nothing
call SetPlayerAllianceStateBJ(GetEnumPlayer(),GetEnumPlayer(),bj_ALLIANCE_ALLIED_VISION)
endfunction
function O19782 takes nothing returns nothing
call SetPlayerAllianceStateBJ(GetEnumPlayer(),GetEnumPlayer(),bj_ALLIANCE_ALLIED_VISION)
endfunction
function O19847 takes nothing returns nothing
call SetPlayerAllianceStateBJ(GetEnumPlayer(),GetEnumPlayer(),bj_ALLIANCE_ALLIED_VISION)
endfunction
function O19875 takes nothing returns nothing
call SetPlayerAllianceStateBJ(GetEnumPlayer(),GetEnumPlayer(),bj_ALLIANCE_ALLIED_VISION)
endfunction
function O19994 takes nothing returns nothing
call SetPlayerAllianceStateBJ(GetEnumPlayer(),GetEnumPlayer(),bj_ALLIANCE_ALLIED_VISION)
endfunction
function O20013 takes nothing returns nothing
call ForForce(O14024,function O19398)
call ForForce(O14135,function O19404)
call ForForce(O14445,function O19490)
call ForForce(O14557,function O19502)
call ForForce(O14380,function O19593)
call ForForce(O14533,function O19661)
call ForForce(O14263,function O19748)
call ForForce(O14345,function O19749)
call ForForce(O14731,function O19782)
call ForForce(O14224,function O19847)
call ForForce(O14690,function O19875)
call ForForce(O14574,function O19994)
endfunction
function O20064 takes nothing returns nothing
set O15363=CreateTrigger()
call TriggerRegisterTimerExpireEventBJ(O15363,O16448)
call TriggerAddAction(O15363,function O20013)
endfunction
function O20133 takes nothing returns boolean
if((GetUnitTypeId(GetAttackedUnitBJ())=='h000'))then
return true
endif
return false
endfunction
function O20144 takes nothing returns boolean
if(not(GetUnitLifePercent(GetAttackedUnitBJ())<=30.00))then
return false
endif
if(not O20133())then
return false
endif
return true
endfunction
function O20266 takes nothing returns nothing
call SetPlayerAllianceStateBJ(GetEnumPlayer(),GetTriggerPlayer(),bj_ALLIANCE_UNALLIED)
endfunction
function O20389 takes nothing returns nothing
call SetPlayerAllianceStateBJ(GetTriggerPlayer(),GetEnumPlayer(),bj_ALLIANCE_ALLIED_VISION)
call SetPlayerAllianceStateBJ(GetEnumPlayer(),GetTriggerPlayer(),bj_ALLIANCE_ALLIED_VISION)
call ForceAddPlayerSimple(GetTriggerPlayer(),O14024)
endfunction
function O20428 takes nothing returns boolean
if(not(GetOwningPlayer(GetAttacker())==Player(0)))then
return false
endif
return true
endfunction
function O20451 takes nothing returns nothing
call SetPlayerAllianceStateBJ(GetTriggerPlayer(),GetEnumPlayer(),bj_ALLIANCE_ALLIED_VISION)
call SetPlayerAllianceStateBJ(GetEnumPlayer(),GetTriggerPlayer(),bj_ALLIANCE_ALLIED_VISION)
call ForceAddPlayerSimple(GetTriggerPlayer(),O14135)
endfunction
function O20481 takes nothing returns boolean
if(not(GetOwningPlayer(GetAttacker())==Player(1)))then
return false
endif
return true
endfunction
function O20505 takes nothing returns nothing
call SetPlayerAllianceStateBJ(GetTriggerPlayer(),GetEnumPlayer(),bj_ALLIANCE_ALLIED_VISION)
call SetPlayerAllianceStateBJ(GetEnumPlayer(),GetTriggerPlayer(),bj_ALLIANCE_ALLIED_VISION)
call ForceAddPlayerSimple(GetTriggerPlayer(),O14445)
endfunction
function O20517 takes nothing returns boolean
if(not(GetOwningPlayer(GetAttacker())==Player(2)))then
return false
endif
return true
endfunction
function O20554 takes nothing returns nothing
call SetPlayerAllianceStateBJ(GetTriggerPlayer(),GetEnumPlayer(),bj_ALLIANCE_ALLIED_VISION)
call SetPlayerAllianceStateBJ(GetEnumPlayer(),GetTriggerPlayer(),bj_ALLIANCE_ALLIED_VISION)
call ForceAddPlayerSimple(GetTriggerPlayer(),O14557)
endfunction
function O20654 takes nothing returns boolean
if(not(GetOwningPlayer(GetAttacker())==Player(3)))then
return false
endif
return true
endfunction
function O20668 takes nothing returns nothing
call SetPlayerAllianceStateBJ(GetTriggerPlayer(),GetEnumPlayer(),bj_ALLIANCE_ALLIED_VISION)
call SetPlayerAllianceStateBJ(GetEnumPlayer(),GetTriggerPlayer(),bj_ALLIANCE_ALLIED_VISION)
call ForceAddPlayerSimple(GetTriggerPlayer(),O14380)
endfunction
function O20685 takes nothing returns boolean
if(not(GetOwningPlayer(GetAttacker())==Player(4)))then
return false
endif
return true
endfunction
function O20730 takes nothing returns nothing
call SetPlayerAllianceStateBJ(GetTriggerPlayer(),GetEnumPlayer(),bj_ALLIANCE_ALLIED_VISION)
call SetPlayerAllianceStateBJ(GetEnumPlayer(),GetTriggerPlayer(),bj_ALLIANCE_ALLIED_VISION)
call ForceAddPlayerSimple(GetTriggerPlayer(),O14533)
endfunction
function O20773 takes nothing returns boolean
if(not(GetOwningPlayer(GetAttacker())==Player(5)))then
return false
endif
return true
endfunction
function O20809 takes nothing returns nothing
call SetPlayerAllianceStateBJ(GetTriggerPlayer(),GetEnumPlayer(),bj_ALLIANCE_ALLIED_VISION)
call SetPlayerAllianceStateBJ(GetEnumPlayer(),GetTriggerPlayer(),bj_ALLIANCE_ALLIED_VISION)
call ForceAddPlayerSimple(GetTriggerPlayer(),O14263)
endfunction
function O20917 takes nothing returns boolean
if(not(GetOwningPlayer(GetAttacker())==Player(6)))then
return false
endif
return true
endfunction
function O20945 takes nothing returns nothing
call SetPlayerAllianceStateBJ(GetTriggerPlayer(),GetEnumPlayer(),bj_ALLIANCE_ALLIED_VISION)
call SetPlayerAllianceStateBJ(GetEnumPlayer(),GetTriggerPlayer(),bj_ALLIANCE_ALLIED_VISION)
call ForceAddPlayerSimple(GetTriggerPlayer(),O14345)
endfunction
function O21022 takes nothing returns boolean
if(not(GetOwningPlayer(GetAttacker())==Player(7)))then
return false
endif
return true
endfunction
function O21072 takes nothing returns nothing
call SetPlayerAllianceStateBJ(GetTriggerPlayer(),GetEnumPlayer(),bj_ALLIANCE_ALLIED_VISION)
call SetPlayerAllianceStateBJ(GetEnumPlayer(),GetTriggerPlayer(),bj_ALLIANCE_ALLIED_VISION)
call ForceAddPlayerSimple(GetTriggerPlayer(),O14731)
endfunction
function O21113 takes nothing returns boolean
if(not(GetOwningPlayer(GetAttacker())==Player(8)))then
return false
endif
return true
endfunction
function O21208 takes nothing returns nothing
call SetPlayerAllianceStateBJ(GetTriggerPlayer(),GetEnumPlayer(),bj_ALLIANCE_ALLIED_VISION)
call SetPlayerAllianceStateBJ(GetEnumPlayer(),GetTriggerPlayer(),bj_ALLIANCE_ALLIED_VISION)
call ForceAddPlayerSimple(GetTriggerPlayer(),O14224)
endfunction
function O21211 takes nothing returns boolean
if(not(GetOwningPlayer(GetAttacker())==Player(9)))then
return false
endif
return true
endfunction
function O21279 takes nothing returns nothing
call SetPlayerAllianceStateBJ(GetTriggerPlayer(),GetEnumPlayer(),bj_ALLIANCE_ALLIED_VISION)
call SetPlayerAllianceStateBJ(GetEnumPlayer(),GetTriggerPlayer(),bj_ALLIANCE_ALLIED_VISION)
call ForceAddPlayerSimple(GetTriggerPlayer(),O14690)
endfunction
function O21341 takes nothing returns boolean
if(not(GetOwningPlayer(GetAttacker())==Player(10)))then
return false
endif
return true
endfunction
function O21347 takes nothing returns nothing
call SetPlayerAllianceStateBJ(GetTriggerPlayer(),GetEnumPlayer(),bj_ALLIANCE_ALLIED_VISION)
call SetPlayerAllianceStateBJ(GetEnumPlayer(),GetTriggerPlayer(),bj_ALLIANCE_ALLIED_VISION)
call ForceAddPlayerSimple(GetTriggerPlayer(),O14574)
endfunction
function O21371 takes nothing returns boolean
if(not(GetOwningPlayer(GetAttacker())==Player(11)))then
return false
endif
return true
endfunction
function O21454 takes nothing returns boolean
if(not(IsPlayerEnemy(GetOwningPlayer(GetAttacker()),GetOwningPlayer(GetAttackedUnitBJ()))==true))then
return false
endif
return true
endfunction
function O21577 takes nothing returns nothing
call SetPlayerColorBJ(GetOwningPlayer(GetAttackedUnitBJ()),GetPlayerColor(GetOwningPlayer(GetAttacker())),true)
call SetUnitLifePercentBJ(GetAttackedUnitBJ(),100)
if(O21454())then
call ForForce(GetPlayersAll(),function O20266)
call ForceRemovePlayerSimple(GetTriggerPlayer(),O14024)
call SetPlayerAllianceStateBJ(GetTriggerPlayer(),Player(0),bj_ALLIANCE_UNALLIED)
call ForceRemovePlayerSimple(GetTriggerPlayer(),O14135)
call SetPlayerAllianceStateBJ(GetTriggerPlayer(),Player(1),bj_ALLIANCE_UNALLIED)
call ForceRemovePlayerSimple(GetTriggerPlayer(),O14445)
call SetPlayerAllianceStateBJ(GetTriggerPlayer(),Player(2),bj_ALLIANCE_UNALLIED)
call ForceRemovePlayerSimple(GetTriggerPlayer(),O14557)
call SetPlayerAllianceStateBJ(GetTriggerPlayer(),Player(3),bj_ALLIANCE_UNALLIED)
call ForceRemovePlayerSimple(GetTriggerPlayer(),O14380)
call SetPlayerAllianceStateBJ(GetTriggerPlayer(),Player(4),bj_ALLIANCE_UNALLIED)
call ForceRemovePlayerSimple(GetTriggerPlayer(),O14533)
call SetPlayerAllianceStateBJ(GetTriggerPlayer(),Player(5),bj_ALLIANCE_UNALLIED)
call ForceRemovePlayerSimple(GetTriggerPlayer(),O14263)
call SetPlayerAllianceStateBJ(GetTriggerPlayer(),Player(6),bj_ALLIANCE_UNALLIED)
call ForceRemovePlayerSimple(GetTriggerPlayer(),O14345)
call SetPlayerAllianceStateBJ(GetTriggerPlayer(),Player(7),bj_ALLIANCE_UNALLIED)
call ForceRemovePlayerSimple(GetTriggerPlayer(),O14731)
call SetPlayerAllianceStateBJ(GetTriggerPlayer(),Player(8),bj_ALLIANCE_UNALLIED)
call ForceRemovePlayerSimple(GetTriggerPlayer(),O14224)
call SetPlayerAllianceStateBJ(GetTriggerPlayer(),Player(9),bj_ALLIANCE_UNALLIED)
call ForceRemovePlayerSimple(GetTriggerPlayer(),O14690)
call SetPlayerAllianceStateBJ(GetTriggerPlayer(),Player(10),bj_ALLIANCE_UNALLIED)
call ForceRemovePlayerSimple(GetTriggerPlayer(),O14574)
call SetPlayerAllianceStateBJ(GetTriggerPlayer(),Player(11),bj_ALLIANCE_UNALLIED)
call AdjustPlayerStateBJ(5,GetOwningPlayer(GetAttacker()),PLAYER_STATE_RESOURCE_LUMBER)
call DisplayTextToForce(GetForceOfPlayer(GetOwningPlayer(GetAttackedUnitBJ())),("You have been conquered by "+(GetPlayerName(GetOwningPlayer(GetAttacker()))+" You are both now part of the same empire. Work together and bring more people to your empire or you both shall miserably fall.")))
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" has been conquered by "+GetPlayerName(GetOwningPlayer(GetAttacker())))))
set O14024=GetPlayersAllies(Player(0))
set O14135=GetPlayersAllies(Player(1))
set O14445=GetPlayersAllies(Player(2))
set O14557=GetPlayersAllies(Player(3))
set O14380=GetPlayersAllies(Player(4))
set O14533=GetPlayersAllies(Player(5))
set O14263=GetPlayersAllies(Player(6))
set O14345=GetPlayersAllies(Player(7))
set O14731=GetPlayersAllies(Player(8))
set O14224=GetPlayersAllies(Player(9))
set O14690=GetPlayersAllies(Player(10))
set O14574=GetPlayersAllies(Player(11))
if(O20428())then
call ForForce(O14024,function O20389)
else
call DoNothing()
endif
if(O20481())then
call ForForce(O14135,function O20451)
else
call DoNothing()
endif
if(O20517())then
call ForForce(O14445,function O20505)
else
call DoNothing()
endif
if(O20654())then
call ForForce(O14557,function O20554)
else
call DoNothing()
endif
if(O20685())then
call ForForce(O14380,function O20668)
else
call DoNothing()
endif
if(O20773())then
call ForForce(O14533,function O20730)
else
call DoNothing()
endif
if(O20917())then
call ForForce(O14263,function O20809)
else
call DoNothing()
endif
if(O21022())then
call ForForce(O14345,function O20945)
else
call DoNothing()
endif
if(O21113())then
call ForForce(O14731,function O21072)
else
call DoNothing()
endif
if(O21211())then
call ForForce(O14224,function O21208)
else
call DoNothing()
endif
if(O21341())then
call ForForce(O14690,function O21279)
else
call DoNothing()
endif
if(O21371())then
call ForForce(O14574,function O21347)
else
call DoNothing()
endif
else
call DoNothing()
endif
endfunction
function O21627 takes nothing returns nothing
set O15436=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(O15436,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(O15436,Condition(function O20144))
call TriggerAddAction(O15436,function O21577)
endfunction
function O21662 takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='h00G'))then
return false
endif
if(not(GetUnitLifePercent(GetAttackedUnitBJ())<=30.00))then
return false
endif
return true
endfunction
function O21758 takes nothing returns nothing
call SetUnitOwner(GetTriggerUnit(),GetOwningPlayer(GetAttacker()),true)
call SetUnitLifePercentBJ(GetTriggerUnit(),100)
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetOwningPlayer(GetAttacker()))+(" Has liberated Hawke Island from "+GetPlayerName(GetTriggerPlayer()))))
endfunction
function O21817 takes nothing returns nothing
set O15526=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(O15526,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(O15526,Condition(function O21662))
call TriggerAddAction(O15526,function O21758)
endfunction
function O21914 takes nothing returns nothing
call CreateTextTagLocBJ("TRIGSTR_328",GetRectCenter(O16464),0,10,100,100,100,0)
endfunction
function O21973 takes nothing returns nothing
set O15621=CreateTrigger()
call TriggerRegisterTimerEventSingle(O15621,2.00)
call TriggerAddAction(O15621,function O21914)
endfunction
function O22019 takes nothing returns boolean
if(not(GetUnitTypeId(GetTrainedUnit())=='e000'))then
return false
endif
return true
endfunction
function O22112 takes nothing returns nothing
call RemoveUnit(GetTrainedUnit())
call AdjustPlayerStateBJ(1,GetTriggerPlayer(),PLAYER_STATE_RESOURCE_LUMBER)
endfunction
function O22195 takes nothing returns nothing
set O15625=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(O15625,EVENT_PLAYER_UNIT_TRAIN_FINISH)
call TriggerAddCondition(O15625,Condition(function O22019))
call TriggerAddAction(O15625,function O22112)
endfunction
function O22289 takes nothing returns nothing
call AdjustPlayerStateBJ(GetPlayerState(GetEnumPlayer(),PLAYER_STATE_RESOURCE_LUMBER),GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function O22390 takes nothing returns nothing
call ForForce(GetPlayersAll(),function O22289)
endfunction
function O22482 takes nothing returns nothing
set O15754=CreateTrigger()
call TriggerRegisterTimerExpireEventBJ(O15754,O16448)
call TriggerAddAction(O15754,function O22390)
endfunction
function O22491 takes nothing returns boolean
if(not(IsPlayerEnemy(GetOwningPlayer(GetAttacker()),GetOwningPlayer(GetAttackedUnitBJ()))==false))then
return false
endif
return true
endfunction
function O22602 takes nothing returns nothing
call IssueImmediateOrderBJ(GetAttacker(),"stop")
endfunction
function O22683 takes nothing returns nothing
set O15838=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(O15838,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(O15838,Condition(function O22491))
call TriggerAddAction(O15838,function O22602)
endfunction
function O22709 takes nothing returns nothing
call SetPlayerTechMaxAllowed(GetEnumPlayer(),'h00B',999999)
call SetPlayerTechMaxAllowed(GetEnumPlayer(),'z004',999999)
call SetPlayerTechMaxAllowed(GetEnumPlayer(),'z002',999999)
endfunction
function O22757 takes nothing returns nothing
call SetPlayerTechMaxAllowed(GetEnumPlayer(),'h00E',3)
endfunction
function O22780 takes nothing returns nothing
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_277")
call ForForce(GetPlayersAll(),function O22709)
call ForForce(GetPlayersAll(),function O22757)
endfunction
function O22816 takes nothing returns nothing
set O15844=CreateTrigger()
call TriggerRegisterTimerEventSingle(O15844,600.00)
call TriggerRegisterPlayerChatEvent(O15844,Player(10),"-meowaha",true)
call TriggerAddAction(O15844,function O22780)
endfunction
function O22877 takes nothing returns nothing
call SetPlayerTechMaxAllowed(GetEnumPlayer(),'z005',999999)
call SetPlayerTechMaxAllowed(GetEnumPlayer(),'h00C',999999)
call SetPlayerTechMaxAllowed(GetEnumPlayer(),'h00F',999999)
call SetPlayerTechMaxAllowed(GetEnumPlayer(),'z003',999999)
endfunction
function O22989 takes nothing returns nothing
call SetPlayerTechMaxAllowed(GetEnumPlayer(),'h00D',1)
endfunction
function O23095 takes nothing returns nothing
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_278")
call ForForce(GetPlayersAll(),function O22877)
call ForForce(GetPlayersAll(),function O22989)
endfunction
function O23178 takes nothing returns nothing
set O15957=CreateTrigger()
call TriggerRegisterTimerEventSingle(O15957,1200.00)
call TriggerRegisterPlayerChatEvent(O15957,Player(10),"-meowaha2",true)
call TriggerAddAction(O15957,function O23095)
endfunction
function O23205 takes nothing returns boolean
if(not(GetSpellAbilityId()=='A000'))then
return false
endif
return true
endfunction
function O23302 takes nothing returns nothing
call RemoveUnit(GetTriggerUnit())
endfunction
function O23310 takes nothing returns nothing
set O15968=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(O15968,EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddCondition(O15968,Condition(function O23205))
call TriggerAddAction(O15968,function O23302)
endfunction
function O23435 takes nothing returns boolean
if(not(GetSpellAbilityId()=='A002'))then
return false
endif
return true
endfunction
function O23466 takes nothing returns nothing
call TriggerSleepAction(2)
call RemoveUnit(GetTriggerUnit())
endfunction
function O23520 takes nothing returns nothing
set O16056=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(O16056,EVENT_PLAYER_UNIT_SPELL_FINISH)
call TriggerAddCondition(O16056,Condition(function O23435))
call TriggerAddAction(O16056,function O23466)
endfunction
function O23572 takes nothing returns nothing
call SetPlayerName(GetTriggerPlayer(),SubStringBJ(GetEventPlayerChatString(),7,StringLength(GetEventPlayerChatString())))
endfunction
function O23688 takes nothing returns nothing
set O16159=CreateTrigger()
call TriggerRegisterPlayerChatEvent(O16159,Player(0),"-name",false)
call TriggerRegisterPlayerChatEvent(O16159,Player(1),"-name",false)
call TriggerRegisterPlayerChatEvent(O16159,Player(2),"-name",false)
call TriggerRegisterPlayerChatEvent(O16159,Player(3),"-name",false)
call TriggerRegisterPlayerChatEvent(O16159,Player(4),"-name",false)
call TriggerRegisterPlayerChatEvent(O16159,Player(5),"-name",false)
call TriggerRegisterPlayerChatEvent(O16159,Player(6),"-name",false)
call TriggerRegisterPlayerChatEvent(O16159,Player(7),"-name",false)
call TriggerRegisterPlayerChatEvent(O16159,Player(8),"-name",false)
call TriggerRegisterPlayerChatEvent(O16159,Player(9),"-name",false)
call TriggerRegisterPlayerChatEvent(O16159,Player(10),"-name",false)
call TriggerRegisterPlayerChatEvent(O16159,Player(11),"-name",false)
call TriggerAddAction(O16159,function O23572)
endfunction
function O23735 takes nothing returns nothing
call O17777()
call O18297()
call O18400()
call O18556()
call O18589()
call O18806()
call O18883()
call O19062()
call O19317()
call O20064()
call O21627()
call O21817()
call O21973()
call O22195()
call O22482()
call O22683()
call O22816()
call O23178()
call O23310()
call O23520()
call O23688()
endfunction
function O23827 takes nothing returns nothing
call SetPlayerStartLocation(Player(0),0)
call SetPlayerColor(Player(0),ConvertPlayerColor(0))
call SetPlayerRacePreference(Player(0),RACE_PREF_HUMAN)
call SetPlayerRaceSelectable(Player(0),false)
call SetPlayerController(Player(0),MAP_CONTROL_USER)
call SetPlayerStartLocation(Player(1),1)
call SetPlayerColor(Player(1),ConvertPlayerColor(1))
call SetPlayerRacePreference(Player(1),RACE_PREF_ORC)
call SetPlayerRaceSelectable(Player(1),false)
call SetPlayerController(Player(1),MAP_CONTROL_USER)
call SetPlayerStartLocation(Player(2),2)
call SetPlayerColor(Player(2),ConvertPlayerColor(2))
call SetPlayerRacePreference(Player(2),RACE_PREF_UNDEAD)
call SetPlayerRaceSelectable(Player(2),false)
call SetPlayerController(Player(2),MAP_CONTROL_USER)
call SetPlayerStartLocation(Player(3),3)
call SetPlayerColor(Player(3),ConvertPlayerColor(3))
call SetPlayerRacePreference(Player(3),RACE_PREF_NIGHTELF)
call SetPlayerRaceSelectable(Player(3),false)
call SetPlayerController(Player(3),MAP_CONTROL_USER)
call SetPlayerStartLocation(Player(4),4)
call SetPlayerColor(Player(4),ConvertPlayerColor(4))
call SetPlayerRacePreference(Player(4),RACE_PREF_HUMAN)
call SetPlayerRaceSelectable(Player(4),false)
call SetPlayerController(Player(4),MAP_CONTROL_USER)
call SetPlayerStartLocation(Player(5),5)
call SetPlayerColor(Player(5),ConvertPlayerColor(5))
call SetPlayerRacePreference(Player(5),RACE_PREF_ORC)
call SetPlayerRaceSelectable(Player(5),false)
call SetPlayerController(Player(5),MAP_CONTROL_USER)
call SetPlayerStartLocation(Player(6),6)
call SetPlayerColor(Player(6),ConvertPlayerColor(6))
call SetPlayerRacePreference(Player(6),RACE_PREF_UNDEAD)
call SetPlayerRaceSelectable(Player(6),false)
call SetPlayerController(Player(6),MAP_CONTROL_USER)
call SetPlayerStartLocation(Player(7),7)
call SetPlayerColor(Player(7),ConvertPlayerColor(7))
call SetPlayerRacePreference(Player(7),RACE_PREF_NIGHTELF)
call SetPlayerRaceSelectable(Player(7),false)
call SetPlayerController(Player(7),MAP_CONTROL_USER)
call SetPlayerStartLocation(Player(8),8)
call SetPlayerColor(Player(8),ConvertPlayerColor(8))
call SetPlayerRacePreference(Player(8),RACE_PREF_HUMAN)
call SetPlayerRaceSelectable(Player(8),false)
call SetPlayerController(Player(8),MAP_CONTROL_USER)
call SetPlayerStartLocation(Player(9),9)
call SetPlayerColor(Player(9),ConvertPlayerColor(9))
call SetPlayerRacePreference(Player(9),RACE_PREF_ORC)
call SetPlayerRaceSelectable(Player(9),false)
call SetPlayerController(Player(9),MAP_CONTROL_USER)
call SetPlayerStartLocation(Player(10),10)
call SetPlayerColor(Player(10),ConvertPlayerColor(10))
call SetPlayerRacePreference(Player(10),RACE_PREF_UNDEAD)
call SetPlayerRaceSelectable(Player(10),false)
call SetPlayerController(Player(10),MAP_CONTROL_USER)
call SetPlayerStartLocation(Player(11),11)
call SetPlayerColor(Player(11),ConvertPlayerColor(11))
call SetPlayerRacePreference(Player(11),RACE_PREF_NIGHTELF)
call SetPlayerRaceSelectable(Player(11),false)
call SetPlayerController(Player(11),MAP_CONTROL_USER)
endfunction
function O23847 takes nothing returns nothing
call SetPlayerTeam(Player(0),0)
call SetPlayerTeam(Player(1),1)
call SetPlayerTeam(Player(2),1)
call SetPlayerTeam(Player(3),1)
call SetPlayerTeam(Player(4),1)
call SetPlayerTeam(Player(5),1)
call SetPlayerTeam(Player(6),1)
call SetPlayerTeam(Player(7),1)
call SetPlayerTeam(Player(8),1)
call SetPlayerTeam(Player(9),1)
call SetPlayerTeam(Player(10),1)
call SetPlayerTeam(Player(11),1)
endfunction
function O23939 takes nothing returns nothing
call SetStartLocPrioCount(0,1)
call SetStartLocPrio(0,0,10,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(1,1)
call SetStartLocPrio(1,0,11,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(2,1)
call SetStartLocPrio(2,0,6,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(3,3)
call SetStartLocPrio(3,0,5,MAP_LOC_PRIO_LOW)
call SetStartLocPrio(3,1,7,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(3,2,9,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(4,1)
call SetStartLocPrio(4,0,8,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(5,1)
call SetStartLocPrio(5,0,7,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(6,1)
call SetStartLocPrio(6,0,2,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(7,1)
call SetStartLocPrio(7,0,5,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(8,1)
call SetStartLocPrio(8,0,4,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(9,1)
call SetStartLocPrio(9,0,3,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(10,3)
call SetStartLocPrio(10,0,0,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(10,1,4,MAP_LOC_PRIO_LOW)
call SetStartLocPrio(10,2,8,MAP_LOC_PRIO_LOW)
call SetStartLocPrioCount(11,2)
call SetStartLocPrio(11,0,1,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(11,1,6,MAP_LOC_PRIO_HIGH)
endfunction
function main takes nothing returns nothing
call SetCameraBounds(-11520.0+GetCameraMargin(CAMERA_MARGIN_LEFT),-11776.0+GetCameraMargin(CAMERA_MARGIN_BOTTOM),11520.0-GetCameraMargin(CAMERA_MARGIN_RIGHT),11264.0-GetCameraMargin(CAMERA_MARGIN_TOP),-11520.0+GetCameraMargin(CAMERA_MARGIN_LEFT),11264.0-GetCameraMargin(CAMERA_MARGIN_TOP),11520.0-GetCameraMargin(CAMERA_MARGIN_RIGHT),-11776.0+GetCameraMargin(CAMERA_MARGIN_BOTTOM))
call SetDayNightModels("Environment\\DNC\\DNCLordaeron\\DNCLordaeronTerrain\\DNCLordaeronTerrain.mdl","Environment\\DNC\\DNCLordaeron\\DNCLordaeronUnit\\DNCLordaeronUnit.mdl")
call NewSoundEnvironment("Default")
call SetAmbientDaySound("SunkenRuinsDay")
call SetAmbientNightSound("SunkenRuinsNight")
call SetMapMusic("Music",true,0)
call O17514()
call O17498()
call InitBlizzard()
call O17033()
call O23735()
endfunction
function config takes nothing returns nothing
call SetMapName("TRIGSTR_136")
call SetMapDescription("TRIGSTR_138")
call SetPlayers(12)
call SetTeams(12)
call SetGamePlacement(MAP_PLACEMENT_TEAMS_TOGETHER)
call DefineStartLocation(0,7744.0,-960.0)
call DefineStartLocation(1,-5504.0,4736.0)
call DefineStartLocation(2,-9024.0,4288.0)
call DefineStartLocation(3,1216.0,7040.0)
call DefineStartLocation(4,2880.0,-7360.0)
call DefineStartLocation(5,4864.0,8512.0)
call DefineStartLocation(6,-8512.0,3328.0)
call DefineStartLocation(7,3328.0,9344.0)
call DefineStartLocation(8,3968.0,-8832.0)
call DefineStartLocation(9,64.0,4544.0)
call DefineStartLocation(10,7872.0,-5056.0)
call DefineStartLocation(11,-6336.0,3008.0)
call O23827()
call O23847()
call O23939()
endfunction
 
Status
Not open for further replies.
Top