Skip to content
Home
Post Code
Jass (Warcraft III)
Wurst
GUI (Warcraft III)
Galaxy (StarCraft II)
GUI (StarCraft II)
C++
Java
Delphi
Text
Search Code
Compare Code
Uploads
Draw
Create New Drawing
View Drawings
Graph
Log in
[code][color=7777FF][b]package[/b][/color] Movement [color=7777FF][b]function[/b][/color] noStuckCond[b]([/b][b])[/b][color=7777FF][b]returns[/b][/color] [color=AA77FF]boolean[/color] [color=7777FF][b]if[/b][/color] [b]([/b] [color=7777FF][b]not[/b][/color] [b]([/b] [url=http://starcraft-mapping.de/wiki/GetOwningPlayer]GetOwningPlayer[/url][b]([/b][url=http://starcraft-mapping.de/wiki/GetEnteringUnit]GetEnteringUnit[/url][b]([/b][b])[/b][b])[/b] [b]![/b][b]=[/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]0[/color][b])[/b] [b])[/b] [b])[/b] [color=7777FF][b]return[/b][/color] false [color=7777FF][b]if[/b][/color] [b]([/b] [color=7777FF][b]not[/b][/color] [b]([/b] [url=http://starcraft-mapping.de/wiki/GetOwningPlayer]GetOwningPlayer[/url][b]([/b][url=http://starcraft-mapping.de/wiki/GetEnteringUnit]GetEnteringUnit[/url][b]([/b][b])[/b][b])[/b] [b]![/b][b]=[/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]1[/color][b])[/b] [b])[/b] [b])[/b] [color=7777FF][b]return[/b][/color] false [color=7777FF][b]if[/b][/color] [b]([/b] [color=7777FF][b]not[/b][/color] [b]([/b] [url=http://starcraft-mapping.de/wiki/GetOwningPlayer]GetOwningPlayer[/url][b]([/b][url=http://starcraft-mapping.de/wiki/GetEnteringUnit]GetEnteringUnit[/url][b]([/b][b])[/b][b])[/b] [b]![/b][b]=[/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]2[/color][b])[/b] [b])[/b] [b])[/b] [color=7777FF][b]return[/b][/color] false [color=7777FF][b]if[/b][/color] [b]([/b] [color=7777FF][b]not[/b][/color] [b]([/b] [url=http://starcraft-mapping.de/wiki/GetOwningPlayer]GetOwningPlayer[/url][b]([/b][url=http://starcraft-mapping.de/wiki/GetEnteringUnit]GetEnteringUnit[/url][b]([/b][b])[/b][b])[/b] [b]![/b][b]=[/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]3[/color][b])[/b] [b])[/b] [b])[/b] [color=7777FF][b]return[/b][/color] false [color=7777FF][b]if[/b][/color] [b]([/b] [color=7777FF][b]not[/b][/color] [b]([/b] [url=http://starcraft-mapping.de/wiki/GetOwningPlayer]GetOwningPlayer[/url][b]([/b][url=http://starcraft-mapping.de/wiki/GetEnteringUnit]GetEnteringUnit[/url][b]([/b][b])[/b][b])[/b] [b]![/b][b]=[/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]4[/color][b])[/b] [b])[/b] [b])[/b] [color=7777FF][b]return[/b][/color] false [color=7777FF][b]if[/b][/color] [b]([/b] [color=7777FF][b]not[/b][/color] [b]([/b] [url=http://starcraft-mapping.de/wiki/GetOwningPlayer]GetOwningPlayer[/url][b]([/b][url=http://starcraft-mapping.de/wiki/GetEnteringUnit]GetEnteringUnit[/url][b]([/b][b])[/b][b])[/b] [b]![/b][b]=[/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]5[/color][b])[/b] [b])[/b] [b])[/b] [color=7777FF][b]return[/b][/color] false [color=7777FF][b]if[/b][/color] [b]([/b] [color=7777FF][b]not[/b][/color] [b]([/b] [url=http://starcraft-mapping.de/wiki/GetOwningPlayer]GetOwningPlayer[/url][b]([/b][url=http://starcraft-mapping.de/wiki/GetEnteringUnit]GetEnteringUnit[/url][b]([/b][b])[/b][b])[/b] [b]![/b][b]=[/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]6[/color][b])[/b] [b])[/b] [b])[/b] [color=7777FF][b]return[/b][/color] false [color=7777FF][b]if[/b][/color] [b]([/b] [color=7777FF][b]not[/b][/color] [b]([/b] [url=http://starcraft-mapping.de/wiki/GetOwningPlayer]GetOwningPlayer[/url][b]([/b][url=http://starcraft-mapping.de/wiki/GetEnteringUnit]GetEnteringUnit[/url][b]([/b][b])[/b][b])[/b] [b]![/b][b]=[/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]7[/color][b])[/b] [b])[/b] [b])[/b] [color=7777FF][b]return[/b][/color] false [color=7777FF][b]if[/b][/color] [b]([/b] [color=7777FF][b]not[/b][/color] [b]([/b] [url=http://starcraft-mapping.de/wiki/GetOwningPlayer]GetOwningPlayer[/url][b]([/b][url=http://starcraft-mapping.de/wiki/GetEnteringUnit]GetEnteringUnit[/url][b]([/b][b])[/b][b])[/b] [b]![/b][b]=[/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]8[/color][b])[/b] [b])[/b] [b])[/b] [color=7777FF][b]return[/b][/color] false [color=7777FF][b]if[/b][/color] [b]([/b] [color=7777FF][b]not[/b][/color] [b]([/b] [url=http://starcraft-mapping.de/wiki/GetOwningPlayer]GetOwningPlayer[/url][b]([/b][url=http://starcraft-mapping.de/wiki/GetEnteringUnit]GetEnteringUnit[/url][b]([/b][b])[/b][b])[/b] [b]![/b][b]=[/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]9[/color][b])[/b] [b])[/b] [b])[/b] [color=7777FF][b]return[/b][/color] false [color=7777FF][b]if[/b][/color] [b]([/b] [color=7777FF][b]not[/b][/color] [b]([/b] [url=http://starcraft-mapping.de/wiki/GetOwningPlayer]GetOwningPlayer[/url][b]([/b][url=http://starcraft-mapping.de/wiki/GetEnteringUnit]GetEnteringUnit[/url][b]([/b][b])[/b][b])[/b] [b]![/b][b]=[/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]10[/color][b])[/b] [b])[/b] [b])[/b] [color=7777FF][b]return[/b][/color] false [color=7777FF][b]if[/b][/color] [b]([/b] [color=7777FF][b]not[/b][/color] [b]([/b] [url=http://starcraft-mapping.de/wiki/GetOwningPlayer]GetOwningPlayer[/url][b]([/b][url=http://starcraft-mapping.de/wiki/GetEnteringUnit]GetEnteringUnit[/url][b]([/b][b])[/b][b])[/b] [b]![/b][b]=[/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]11[/color][b])[/b] [b])[/b] [b])[/b] [color=7777FF][b]return[/b][/color] false [color=7777FF][b]if[/b][/color] [b]([/b] [color=7777FF][b]not[/b][/color] [b]([/b] [url=http://starcraft-mapping.de/wiki/GetOwningPlayer]GetOwningPlayer[/url][b]([/b][url=http://starcraft-mapping.de/wiki/GetEnteringUnit]GetEnteringUnit[/url][b]([/b][b])[/b][b])[/b] [b]![/b][b]=[/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b]PLAYER_NEUTRAL_PASSIVE[b])[/b] [b])[/b] [b])[/b] [color=7777FF][b]return[/b][/color] false [color=7777FF][b]return[/b][/color] true [color=7777FF][b]function[/b][/color] noStuckAction[b]([/b][b])[/b] [color=7777FF][b]for[/b][/color] [color=AA77FF]unit[/color] enemy [color=7777FF][b]from[/b][/color] [url=http://starcraft-mapping.de/wiki/GetUnitsInRectOfPlayer]GetUnitsInRectOfPlayer[/url][b]([/b]gg_rct_Cop_Move_Spawn[b],[/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b]PLAYER_NEUTRAL_AGGRESSIVE[b])[/b][b])[/b] enemy.issuePointOrder[b]([/b][color=77FF77]"attack"[/color][b],[/b] gg_rct_Attack_Move_Hostile_Reinforcements_Arrive.randomPoint[b]([/b][b])[/b][b])[/b] [color=7777FF][b]init[/b][/color] [color=AA77FF]trigger[/color] t [b]=[/b] [url=http://starcraft-mapping.de/wiki/CreateTrigger]CreateTrigger[/url][b]([/b] [b])[/b] [url=http://starcraft-mapping.de/wiki/TriggerRegisterEnterRectSimple]TriggerRegisterEnterRectSimple[/url][b]([/b] t[b],[/b] gg_rct_Helicopter_Arrives [b])[/b] [url=http://starcraft-mapping.de/wiki/TriggerRegisterEnterRectSimple]TriggerRegisterEnterRectSimple[/url][b]([/b] t[b],[/b] gg_rct_Cop_Move_Spawn [b])[/b] [url=http://starcraft-mapping.de/wiki/TriggerAddCondition]TriggerAddCondition[/url][b]([/b] t[b],[/b] [url=http://starcraft-mapping.de/wiki/Condition]Condition[/url][b]([/b] [color=7777FF][b]function[/b][/color] noStuckCond [b])[/b] [b])[/b] [url=http://starcraft-mapping.de/wiki/TriggerAddAction]TriggerAddAction[/url][b]([/b] t[b],[/b] [color=7777FF][b]function[/b][/color] noStuckAction [b])[/b] [color=7777FF][b]package[/b][/color] Respawn [color=7777FF][b]import[/b][/color] HashMap [color=7777FF][b]import[/b][/color] ClosureTimers HashMap<[color=AA77FF]int[/color][b],[/b]int> idList [b]=[/b] [color=7777FF][b]new[/b][/color] HashMap<[color=AA77FF]int[/color][b],[/b]int>[b]([/b][b])[/b] [color=7777FF][b]function[/b][/color] respawn[b]([/b][b])[/b] [color=AA77FF]int[/color] id1 [b]=[/b] [url=http://starcraft-mapping.de/wiki/GetDyingUnit]GetDyingUnit[/url][b]([/b][b])[/b].getTypeId[b]([/b][b])[/b] [color=AA77FF]unit[/color] dead [b]=[/b] [url=http://starcraft-mapping.de/wiki/GetDyingUnit]GetDyingUnit[/url][b]([/b][b])[/b] [color=7777FF][b]if[/b][/color] idList.has[b]([/b]id1[b])[/b] doAfter[b]([/b][color=FFFF77]7[/color][b],[/b] [b]([/b][b])[/b] [b]-[/b]> [color=7777FF][b]begin[/b][/color] createUnit[b]([/b][url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]8[/color][b])[/b][b],[/b] idList.get[b]([/b]id1[b])[/b][b],[/b] dead.getPos[b]([/b][b])[/b][b],[/b] angle[b]([/b][color=FFFF77]0[/color][b])[/b][b])[/b] [color=7777FF][b]end[/b][/color][b])[/b] [color=7777FF][b]init[/b][/color] idList.put[b]([/b][color=FFFF77]'h00L'[/color][b],[/b] [color=FFFF77]'n002'[/color][b])[/b] idList.put[b]([/b][color=FFFF77]'h019'[/color][b],[/b] [color=FFFF77]'n00H'[/color][b])[/b] idList.put[b]([/b][color=FFFF77]'hhes'[/color][b],[/b] [color=FFFF77]'n00T'[/color][b])[/b] idList.put[b]([/b][color=FFFF77]'z002'[/color][b],[/b] [color=FFFF77]'n003'[/color][b])[/b] idList.put[b]([/b][color=FFFF77]'z005'[/color][b],[/b] [color=FFFF77]'n000'[/color][b])[/b] idList.put[b]([/b][color=FFFF77]'z000'[/color][b],[/b] [color=FFFF77]'n000'[/color][b])[/b] idList.put[b]([/b][color=FFFF77]'z001'[/color][b],[/b] [color=FFFF77]'u00A'[/color][b])[/b] idList.put[b]([/b][color=FFFF77]'hpea'[/color][b],[/b] [color=FFFF77]'n000'[/color][b])[/b] idList.put[b]([/b][color=FFFF77]'hrif'[/color][b],[/b] [color=FFFF77]'n003'[/color][b])[/b] idList.put[b]([/b][color=FFFF77]'hfoo'[/color][b],[/b] [color=FFFF77]'n002'[/color][b])[/b] [color=AA77FF]trigger[/color] t[b]=[/b] [url=http://starcraft-mapping.de/wiki/CreateTrigger]CreateTrigger[/url][b]([/b][b])[/b] t.registerAnyUnitEvent[b]([/b]EVENT_PLAYER_UNIT_DEATH[b])[/b] t.addAction[b]([/b][color=7777FF][b]function[/b][/color] respawn[b])[/b] [color=7777FF][b]package[/b][/color] Spawn [color=7777FF][b]import[/b][/color] ClosureTimers [color=AA77FF]boolean[/color] secondSpawn [b]=[/b] false [color=7777FF][b]function[/b][/color] startSpawn [b]([/b][b])[/b] [color=999999][i]//doAfter(200, ()-> begin[/i][/color] doPeriodically[b]([/b][color=FFFF77]10[/color][b],[/b] [b]([/b]CallbackPeriodic cb[b])[/b] [b]-[/b]> [color=7777FF][b]begin[/b][/color] [url=http://starcraft-mapping.de/wiki/DisplayTimedTextToForce]DisplayTimedTextToForce[/url][b]([/b] [url=http://starcraft-mapping.de/wiki/GetPlayersAll]GetPlayersAll[/url][b]([/b][b])[/b][b],[/b] [color=FFFF77]15[/color].[color=FFFF77]00[/color][b],[/b] [color=77FF77]"--Wave 1--"[/color] [b])[/b] [color=7777FF][b]for[/b][/color] [color=AA77FF]int[/color] i [b]=[/b] [color=FFFF77]0[/color] [color=7777FF][b]to[/b][/color] [color=FFFF77]10[/color] createUnit[b]([/b][url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]11[/color][b])[/b][b],[/b][color=FFFF77]'n002'[/color][b],[/b]gg_rct_Graveyard_Spawns_and_move.randomPoint[b]([/b][b])[/b][b],[/b] angle[b]([/b][color=FFFF77]0[/color][b])[/b][b])[/b] [color=7777FF][b]for[/b][/color] [color=AA77FF]int[/color] i [b]=[/b] [color=FFFF77]0[/color] [color=7777FF][b]to[/b][/color] [color=FFFF77]10[/color] createUnit[b]([/b][url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]10[/color][b])[/b][b],[/b][color=FFFF77]'u000'[/color][b],[/b]gg_rct_Graveyard_Spawns_and_move.randomPoint[b]([/b][b])[/b][b],[/b] angle[b]([/b][color=FFFF77]0[/color][b])[/b][b])[/b] [color=7777FF][b]for[/b][/color] [color=AA77FF]int[/color] i [b]=[/b] [color=FFFF77]0[/color] [color=7777FF][b]to[/b][/color] [color=FFFF77]10[/color] createUnit[b]([/b][url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]9[/color][b])[/b][b],[/b][color=FFFF77]'n003'[/color][b],[/b]gg_rct_Graveyard_Spawns_and_move.randomPoint[b]([/b][b])[/b][b],[/b] angle[b]([/b][color=FFFF77]0[/color][b])[/b][b])[/b] [color=7777FF][b]for[/b][/color] [color=AA77FF]int[/color] i [b]=[/b] [color=FFFF77]0[/color] [color=7777FF][b]to[/b][/color] [color=FFFF77]10[/color] createUnit[b]([/b][url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]8[/color][b])[/b][b],[/b][color=FFFF77]'u002'[/color][b],[/b]gg_rct_Graveyard_Spawns_and_move.randomPoint[b]([/b][b])[/b][b],[/b] angle[b]([/b][color=FFFF77]0[/color][b])[/b][b])[/b] createUnit[b]([/b][url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]8[/color][b])[/b][b],[/b][color=FFFF77]'u003'[/color][b],[/b]gg_rct_Graveyard_Spawns_and_move.randomPoint[b]([/b][b])[/b][b],[/b] angle[b]([/b][color=FFFF77]0[/color][b])[/b][b])[/b] [color=7777FF][b]for[/b][/color] [color=AA77FF]int[/color] i [b]=[/b] [color=FFFF77]0[/color] [color=7777FF][b]to[/b][/color] [color=FFFF77]10[/color] createUnit[b]([/b][url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]8[/color][b])[/b][b],[/b][color=FFFF77]'u004'[/color][b],[/b]gg_rct_Graveyard_Spawns_and_move.randomPoint[b]([/b][b])[/b][b],[/b] angle[b]([/b][color=FFFF77]0[/color][b])[/b][b])[/b] [color=7777FF][b]end[/b][/color][b])[/b] [color=7777FF][b]init[/b][/color] getTimer[b]([/b][b])[/b].start[b]([/b] [color=FFFF77]0[/color].[color=FFFF77]010[/color][b],[/b] [color=7777FF][b]function[/b][/color] startSpawn [b])[/b] [color=7777FF][b]package[/b][/color] AntiStuck [color=7777FF][b]import[/b][/color] ClosureTimers [color=7777FF][b]function[/b][/color] noStuckCond[b]([/b][b])[/b] [color=7777FF][b]returns[/b][/color] [color=AA77FF]boolean[/color] [color=7777FF][b]if[/b][/color] [b]([/b] [color=7777FF][b]not[/b][/color] [b]([/b] [url=http://starcraft-mapping.de/wiki/GetOwningPlayer]GetOwningPlayer[/url][b]([/b][url=http://starcraft-mapping.de/wiki/GetEnteringUnit]GetEnteringUnit[/url][b]([/b][b])[/b][b])[/b] [b]![/b][b]=[/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]0[/color][b])[/b] [b])[/b] [b])[/b] [color=7777FF][b]return[/b][/color] false [color=7777FF][b]if[/b][/color] [b]([/b] [color=7777FF][b]not[/b][/color] [b]([/b] [url=http://starcraft-mapping.de/wiki/GetOwningPlayer]GetOwningPlayer[/url][b]([/b][url=http://starcraft-mapping.de/wiki/GetEnteringUnit]GetEnteringUnit[/url][b]([/b][b])[/b][b])[/b] [b]![/b][b]=[/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]1[/color][b])[/b] [b])[/b] [b])[/b] [color=7777FF][b]return[/b][/color] false [color=7777FF][b]if[/b][/color] [b]([/b] [color=7777FF][b]not[/b][/color] [b]([/b] [url=http://starcraft-mapping.de/wiki/GetOwningPlayer]GetOwningPlayer[/url][b]([/b][url=http://starcraft-mapping.de/wiki/GetEnteringUnit]GetEnteringUnit[/url][b]([/b][b])[/b][b])[/b] [b]![/b][b]=[/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]2[/color][b])[/b] [b])[/b] [b])[/b] [color=7777FF][b]return[/b][/color] false [color=7777FF][b]if[/b][/color] [b]([/b] [color=7777FF][b]not[/b][/color] [b]([/b] [url=http://starcraft-mapping.de/wiki/GetOwningPlayer]GetOwningPlayer[/url][b]([/b][url=http://starcraft-mapping.de/wiki/GetEnteringUnit]GetEnteringUnit[/url][b]([/b][b])[/b][b])[/b] [b]![/b][b]=[/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]3[/color][b])[/b] [b])[/b] [b])[/b] [color=7777FF][b]return[/b][/color] false [color=7777FF][b]if[/b][/color] [b]([/b] [color=7777FF][b]not[/b][/color] [b]([/b] [url=http://starcraft-mapping.de/wiki/GetOwningPlayer]GetOwningPlayer[/url][b]([/b][url=http://starcraft-mapping.de/wiki/GetEnteringUnit]GetEnteringUnit[/url][b]([/b][b])[/b][b])[/b] [b]![/b][b]=[/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]4[/color][b])[/b] [b])[/b] [b])[/b] [color=7777FF][b]return[/b][/color] false [color=7777FF][b]if[/b][/color] [b]([/b] [color=7777FF][b]not[/b][/color] [b]([/b] [url=http://starcraft-mapping.de/wiki/GetOwningPlayer]GetOwningPlayer[/url][b]([/b][url=http://starcraft-mapping.de/wiki/GetEnteringUnit]GetEnteringUnit[/url][b]([/b][b])[/b][b])[/b] [b]![/b][b]=[/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]5[/color][b])[/b] [b])[/b] [b])[/b] [color=7777FF][b]return[/b][/color] false [color=7777FF][b]if[/b][/color] [b]([/b] [color=7777FF][b]not[/b][/color] [b]([/b] [url=http://starcraft-mapping.de/wiki/GetOwningPlayer]GetOwningPlayer[/url][b]([/b][url=http://starcraft-mapping.de/wiki/GetEnteringUnit]GetEnteringUnit[/url][b]([/b][b])[/b][b])[/b] [b]![/b][b]=[/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]6[/color][b])[/b] [b])[/b] [b])[/b] [color=7777FF][b]return[/b][/color] false [color=7777FF][b]if[/b][/color] [b]([/b] [color=7777FF][b]not[/b][/color] [b]([/b] [url=http://starcraft-mapping.de/wiki/GetOwningPlayer]GetOwningPlayer[/url][b]([/b][url=http://starcraft-mapping.de/wiki/GetEnteringUnit]GetEnteringUnit[/url][b]([/b][b])[/b][b])[/b] [b]![/b][b]=[/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]7[/color][b])[/b] [b])[/b] [b])[/b] [color=7777FF][b]return[/b][/color] false [color=7777FF][b]if[/b][/color] [b]([/b] [color=7777FF][b]not[/b][/color] [b]([/b] [url=http://starcraft-mapping.de/wiki/GetOwningPlayer]GetOwningPlayer[/url][b]([/b][url=http://starcraft-mapping.de/wiki/GetEnteringUnit]GetEnteringUnit[/url][b]([/b][b])[/b][b])[/b] [b]![/b][b]=[/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b]PLAYER_NEUTRAL_AGGRESSIVE[b])[/b] [b])[/b] [b])[/b] [color=7777FF][b]return[/b][/color] false [color=7777FF][b]if[/b][/color] [b]([/b] [color=7777FF][b]not[/b][/color] [b]([/b] [url=http://starcraft-mapping.de/wiki/GetOwningPlayer]GetOwningPlayer[/url][b]([/b][url=http://starcraft-mapping.de/wiki/GetEnteringUnit]GetEnteringUnit[/url][b]([/b][b])[/b][b])[/b] [b]![/b][b]=[/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b]PLAYER_NEUTRAL_PASSIVE[b])[/b] [b])[/b] [b])[/b] [color=7777FF][b]return[/b][/color] false [color=7777FF][b]return[/b][/color] true [color=7777FF][b]function[/b][/color] noStuckAction[b]([/b][b])[/b] doAfter[b]([/b][color=FFFF77]1[/color][b],[/b] [b]([/b][b])[/b] [b]-[/b]> [color=7777FF][b]begin[/b][/color] [url=http://starcraft-mapping.de/wiki/GetEnteringUnit]GetEnteringUnit[/url][b]([/b][b])[/b].issuePointOrder[b]([/b][color=77FF77]"attack"[/color][b],[/b] [url=http://starcraft-mapping.de/wiki/GroupPickRandomUnit]GroupPickRandomUnit[/url][b]([/b][url=http://starcraft-mapping.de/wiki/GetUnitsOfPlayerAll]GetUnitsOfPlayerAll[/url][b]([/b][url=http://starcraft-mapping.de/wiki/ForcePickRandomPlayer]ForcePickRandomPlayer[/url][b]([/b][url=http://starcraft-mapping.de/wiki/GetPlayersEnemies]GetPlayersEnemies[/url][b]([/b][url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]10[/color][b])[/b][b])[/b][b])[/b][b])[/b][b])[/b].getPos[b]([/b][b])[/b][b])[/b] [color=7777FF][b]end[/b][/color][b])[/b] [color=7777FF][b]function[/b][/color] callBack[b]([/b][b])[/b] [color=7777FF][b]for[/b][/color] [color=AA77FF]unit[/color] enemy [color=7777FF][b]from[/b][/color] [url=http://starcraft-mapping.de/wiki/GetUnitsOfPlayerAll]GetUnitsOfPlayerAll[/url][b]([/b][url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]10[/color][b])[/b][b])[/b] enemy.issuePointOrder[b]([/b][color=77FF77]"attack"[/color][b],[/b] [url=http://starcraft-mapping.de/wiki/GroupPickRandomUnit]GroupPickRandomUnit[/url][b]([/b][url=http://starcraft-mapping.de/wiki/GetUnitsOfPlayerAll]GetUnitsOfPlayerAll[/url][b]([/b][url=http://starcraft-mapping.de/wiki/ForcePickRandomPlayer]ForcePickRandomPlayer[/url][b]([/b][url=http://starcraft-mapping.de/wiki/GetPlayersEnemies]GetPlayersEnemies[/url][b]([/b][url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]10[/color][b])[/b][b])[/b][b])[/b][b])[/b][b])[/b].getPos[b]([/b][b])[/b][b])[/b] [color=7777FF][b]for[/b][/color] [color=AA77FF]unit[/color] enemy [color=7777FF][b]from[/b][/color] [url=http://starcraft-mapping.de/wiki/GetUnitsOfPlayerAll]GetUnitsOfPlayerAll[/url][b]([/b][url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]8[/color][b])[/b][b])[/b] enemy.issuePointOrder[b]([/b][color=77FF77]"attack"[/color][b],[/b] [url=http://starcraft-mapping.de/wiki/GroupPickRandomUnit]GroupPickRandomUnit[/url][b]([/b][url=http://starcraft-mapping.de/wiki/GetUnitsOfPlayerAll]GetUnitsOfPlayerAll[/url][b]([/b][url=http://starcraft-mapping.de/wiki/ForcePickRandomPlayer]ForcePickRandomPlayer[/url][b]([/b][url=http://starcraft-mapping.de/wiki/GetPlayersEnemies]GetPlayersEnemies[/url][b]([/b][url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]8[/color][b])[/b][b])[/b][b])[/b][b])[/b][b])[/b].getPos[b]([/b][b])[/b][b])[/b] [color=7777FF][b]for[/b][/color] [color=AA77FF]unit[/color] enemy [color=7777FF][b]from[/b][/color] [url=http://starcraft-mapping.de/wiki/GetUnitsOfPlayerAll]GetUnitsOfPlayerAll[/url][b]([/b][url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]9[/color][b])[/b][b])[/b] enemy.issuePointOrder[b]([/b][color=77FF77]"attack"[/color][b],[/b] [url=http://starcraft-mapping.de/wiki/GroupPickRandomUnit]GroupPickRandomUnit[/url][b]([/b][url=http://starcraft-mapping.de/wiki/GetUnitsOfPlayerAll]GetUnitsOfPlayerAll[/url][b]([/b][url=http://starcraft-mapping.de/wiki/ForcePickRandomPlayer]ForcePickRandomPlayer[/url][b]([/b][url=http://starcraft-mapping.de/wiki/GetPlayersEnemies]GetPlayersEnemies[/url][b]([/b][url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]9[/color][b])[/b][b])[/b][b])[/b][b])[/b][b])[/b].getPos[b]([/b][b])[/b][b])[/b] [color=7777FF][b]for[/b][/color] [color=AA77FF]unit[/color] enemy [color=7777FF][b]from[/b][/color] [url=http://starcraft-mapping.de/wiki/GetUnitsOfPlayerAll]GetUnitsOfPlayerAll[/url][b]([/b][url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]11[/color][b])[/b][b])[/b] enemy.issuePointOrder[b]([/b][color=77FF77]"attack"[/color][b],[/b] [url=http://starcraft-mapping.de/wiki/GroupPickRandomUnit]GroupPickRandomUnit[/url][b]([/b][url=http://starcraft-mapping.de/wiki/GetUnitsOfPlayerAll]GetUnitsOfPlayerAll[/url][b]([/b][url=http://starcraft-mapping.de/wiki/ForcePickRandomPlayer]ForcePickRandomPlayer[/url][b]([/b][url=http://starcraft-mapping.de/wiki/GetPlayersEnemies]GetPlayersEnemies[/url][b]([/b][url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]11[/color][b])[/b][b])[/b][b])[/b][b])[/b][b])[/b].getPos[b]([/b][b])[/b][b])[/b] [color=7777FF][b]init[/b][/color] [color=999999][i]/*[/i][/color] [color=999999][i] trigger s = CreateTrigger( )[/i][/color] [color=999999][i] TriggerRegisterEnterRectSimple( s, GetPlayableMapRect() )[/i][/color] [color=999999][i] TriggerRegisterTimerEventPeriodic( s, 35.00 )[/i][/color] [color=999999][i] TriggerAddAction( s, function callBack )[/i][/color] [color=999999][i][/i][/color] [color=999999][i] trigger t = CreateTrigger( )[/i][/color] [color=999999][i] TriggerRegisterEnterRectSimple( t, GetPlayableMapRect() )[/i][/color] [color=999999][i] TriggerAddCondition( t, Condition( function noStuckCond ) )[/i][/color] [color=999999][i] TriggerAddAction( t, function noStuckAction ) */[/i][/color] [color=7777FF][b]package[/b][/color] MedicKit [color=7777FF][b]function[/b][/color] diseaseCond[b]([/b][b])[/b] [color=7777FF][b]returns[/b][/color] [color=AA77FF]boolean[/color] [color=7777FF][b]if[/b][/color] [b]([/b] [color=7777FF][b]not[/b][/color] [b]([/b] [url=http://starcraft-mapping.de/wiki/GetUnitTypeId]GetUnitTypeId[/url][b]([/b][url=http://starcraft-mapping.de/wiki/GetEnteringUnit]GetEnteringUnit[/url][b]([/b][b])[/b][b])[/b] [b]=[/b][b]=[/b] [color=FFFF77]'z000'[/color] [b])[/b] [color=7777FF][b]or[/b][/color] [color=7777FF][b]not[/b][/color] [b]([/b] [url=http://starcraft-mapping.de/wiki/GetUnitTypeId]GetUnitTypeId[/url][b]([/b][url=http://starcraft-mapping.de/wiki/GetEnteringUnit]GetEnteringUnit[/url][b]([/b][b])[/b][b])[/b] [b]=[/b][b]=[/b] [color=FFFF77]'H016'[/color] [b])[/b] [color=7777FF][b]or[/b][/color] [color=7777FF][b]not[/b][/color] [b]([/b] [url=http://starcraft-mapping.de/wiki/GetUnitTypeId]GetUnitTypeId[/url][b]([/b][url=http://starcraft-mapping.de/wiki/GetEnteringUnit]GetEnteringUnit[/url][b]([/b][b])[/b][b])[/b] [b]=[/b][b]=[/b] [color=FFFF77]'H017'[/color] [b])[/b] [b])[/b] [color=7777FF][b]return[/b][/color] false [color=7777FF][b]return[/b][/color] true [color=7777FF][b]function[/b][/color] diseaseAction[b]([/b][b])[/b] [url=http://starcraft-mapping.de/wiki/GetEnteringUnit]GetEnteringUnit[/url][b]([/b][b])[/b].addEffect[b]([/b][color=77FF77]"war3mapImported\\FirstAidBackpack_ByEpsilon.mdx"[/color][b],[/b] [color=77FF77]"chest"[/color][b])[/b] [color=7777FF][b]function[/b][/color] diseaseLoopAction[b]([/b][b])[/b] [color=7777FF][b]for[/b][/color] [color=AA77FF]unit[/color] enemy [color=7777FF][b]from[/b][/color] [url=http://starcraft-mapping.de/wiki/GetUnitsOfPlayerAndTypeId]GetUnitsOfPlayerAndTypeId[/url][b]([/b][url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b]PLAYER_NEUTRAL_AGGRESSIVE[b])[/b][b],[/b] [color=FFFF77]'z000'[/color][b])[/b] enemy.addEffect[b]([/b][color=77FF77]"war3mapImported\\FirstAidBackpack_ByEpsilon.mdx"[/color][b],[/b] [color=77FF77]"chest"[/color][b])[/b] [color=7777FF][b]init[/b][/color] [color=999999][i]//===========================================================================[/i][/color] [color=AA77FF]trigger[/color] diseased [b]=[/b] [url=http://starcraft-mapping.de/wiki/CreateTrigger]CreateTrigger[/url][b]([/b] [b])[/b] [url=http://starcraft-mapping.de/wiki/TriggerRegisterEnterRectSimple]TriggerRegisterEnterRectSimple[/url][b]([/b] diseased[b],[/b] [url=http://starcraft-mapping.de/wiki/GetPlayableMapRect]GetPlayableMapRect[/url][b]([/b][b])[/b] [b])[/b] [url=http://starcraft-mapping.de/wiki/TriggerAddCondition]TriggerAddCondition[/url][b]([/b] diseased[b],[/b] [url=http://starcraft-mapping.de/wiki/Condition]Condition[/url][b]([/b] [color=7777FF][b]function[/b][/color] diseaseCond [b])[/b] [b])[/b] [url=http://starcraft-mapping.de/wiki/TriggerAddAction]TriggerAddAction[/url][b]([/b] diseased[b],[/b] [color=7777FF][b]function[/b][/color] diseaseAction [b])[/b] [color=AA77FF]trigger[/color] diseaseOnce [b]=[/b] [url=http://starcraft-mapping.de/wiki/CreateTrigger]CreateTrigger[/url][b]([/b][b])[/b] [url=http://starcraft-mapping.de/wiki/TriggerRegisterTimerEventSingle]TriggerRegisterTimerEventSingle[/url][b]([/b] diseaseOnce[b],[/b] [color=FFFF77]5[/color] [b])[/b] [url=http://starcraft-mapping.de/wiki/TriggerAddAction]TriggerAddAction[/url][b]([/b] diseaseOnce[b],[/b] [color=7777FF][b]function[/b][/color] diseaseLoopAction [b])[/b] [color=7777FF][b]package[/b][/color] GameInit [color=7777FF][b]import[/b][/color] ClosureTimers [color=7777FF][b]function[/b][/color] start [b]([/b][b])[/b] [url=http://starcraft-mapping.de/wiki/SetPlayerAllianceStateBJ]SetPlayerAllianceStateBJ[/url][b]([/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b]PLAYER_NEUTRAL_AGGRESSIVE[b])[/b][b],[/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]0[/color][b])[/b][b],[/b] bj_ALLIANCE_ALLIED_VISION [b])[/b] [url=http://starcraft-mapping.de/wiki/SetPlayerAllianceStateBJ]SetPlayerAllianceStateBJ[/url][b]([/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b]PLAYER_NEUTRAL_AGGRESSIVE[b])[/b][b],[/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]1[/color][b])[/b][b],[/b] bj_ALLIANCE_ALLIED_VISION [b])[/b] [url=http://starcraft-mapping.de/wiki/SetPlayerAllianceStateBJ]SetPlayerAllianceStateBJ[/url][b]([/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b]PLAYER_NEUTRAL_AGGRESSIVE[b])[/b][b],[/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]2[/color][b])[/b][b],[/b] bj_ALLIANCE_ALLIED_VISION [b])[/b] [url=http://starcraft-mapping.de/wiki/SetPlayerAllianceStateBJ]SetPlayerAllianceStateBJ[/url][b]([/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b]PLAYER_NEUTRAL_AGGRESSIVE[b])[/b][b],[/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]3[/color][b])[/b][b],[/b] bj_ALLIANCE_ALLIED_VISION [b])[/b] [url=http://starcraft-mapping.de/wiki/SetPlayerAllianceStateBJ]SetPlayerAllianceStateBJ[/url][b]([/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b]PLAYER_NEUTRAL_AGGRESSIVE[b])[/b][b],[/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]4[/color][b])[/b][b],[/b] bj_ALLIANCE_ALLIED_VISION [b])[/b] [url=http://starcraft-mapping.de/wiki/SetPlayerAllianceStateBJ]SetPlayerAllianceStateBJ[/url][b]([/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b]PLAYER_NEUTRAL_AGGRESSIVE[b])[/b][b],[/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]5[/color][b])[/b][b],[/b] bj_ALLIANCE_ALLIED_VISION [b])[/b] [url=http://starcraft-mapping.de/wiki/SetPlayerAllianceStateBJ]SetPlayerAllianceStateBJ[/url][b]([/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b]PLAYER_NEUTRAL_AGGRESSIVE[b])[/b][b],[/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]6[/color][b])[/b][b],[/b] bj_ALLIANCE_ALLIED_VISION [b])[/b] [url=http://starcraft-mapping.de/wiki/SetPlayerAllianceStateBJ]SetPlayerAllianceStateBJ[/url][b]([/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b]PLAYER_NEUTRAL_AGGRESSIVE[b])[/b][b],[/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]7[/color][b])[/b][b],[/b] bj_ALLIANCE_ALLIED_VISION [b])[/b] doAfter[b]([/b][color=FFFF77]2[/color][b],[/b] [b]([/b][b])[/b] [b]-[/b]> [color=7777FF][b]begin[/b][/color] createItem[b]([/b][color=FFFF77]'kymn'[/color][b],[/b] [url=http://starcraft-mapping.de/wiki/GetPlayableMapRect]GetPlayableMapRect[/url][b]([/b][b])[/b].randomPoint[b]([/b][b])[/b][b])[/b] createItem[b]([/b][color=FFFF77]'hbth'[/color][b],[/b] [url=http://starcraft-mapping.de/wiki/GetPlayableMapRect]GetPlayableMapRect[/url][b]([/b][b])[/b].randomPoint[b]([/b][b])[/b][b])[/b] createItem[b]([/b][color=FFFF77]'wild'[/color][b],[/b] [url=http://starcraft-mapping.de/wiki/GetPlayableMapRect]GetPlayableMapRect[/url][b]([/b][b])[/b].randomPoint[b]([/b][b])[/b][b])[/b] createItem[b]([/b][color=FFFF77]'wild'[/color][b],[/b] [url=http://starcraft-mapping.de/wiki/GetPlayableMapRect]GetPlayableMapRect[/url][b]([/b][b])[/b].randomPoint[b]([/b][b])[/b][b])[/b] createItem[b]([/b][color=FFFF77]'wild'[/color][b],[/b] [url=http://starcraft-mapping.de/wiki/GetPlayableMapRect]GetPlayableMapRect[/url][b]([/b][b])[/b].randomPoint[b]([/b][b])[/b][b])[/b] [color=7777FF][b]end[/b][/color][b])[/b] doAfter[b]([/b][color=FFFF77]5[/color][b],[/b] [b]([/b][b])[/b] [b]-[/b]> [color=7777FF][b]begin[/b][/color] createItem[b]([/b][color=FFFF77]'ches'[/color][b],[/b] gg_rct_Radio_Spawns.randomPoint[b]([/b][b])[/b][b])[/b] createItem[b]([/b][color=FFFF77]'tsct'[/color][b],[/b] gg_rct_Generator_Spawns.randomPoint[b]([/b][b])[/b][b])[/b] createItem[b]([/b][color=FFFF77]'hval'[/color][b],[/b] [url=http://starcraft-mapping.de/wiki/GetPlayableMapRect]GetPlayableMapRect[/url][b]([/b][b])[/b].randomPoint[b]([/b][b])[/b][b])[/b] [color=7777FF][b]end[/b][/color][b])[/b] doAfter[b]([/b][color=FFFF77]1500[/color][b],[/b] [b]([/b][b])[/b] [b]-[/b]> [color=7777FF][b]begin[/b][/color] [color=7777FF][b]for[/b][/color] [color=AA77FF]unit[/color] enemy [color=7777FF][b]from[/b][/color] [url=http://starcraft-mapping.de/wiki/GetUnitsOfPlayerAndTypeId]GetUnitsOfPlayerAndTypeId[/url][b]([/b][url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b]PLAYER_NEUTRAL_AGGRESSIVE[b])[/b][b],[/b] [color=FFFF77]'hrif'[/color][b])[/b] enemy.issuePointOrder[b]([/b][color=77FF77]"attack"[/color][b],[/b] gg_rct_Attack_Move_Hostile_Reinforcements_Arrive.randomPoint[b]([/b][b])[/b][b])[/b] [color=7777FF][b]for[/b][/color] [color=AA77FF]unit[/color] enemy [color=7777FF][b]from[/b][/color] [url=http://starcraft-mapping.de/wiki/GetUnitsOfPlayerAndTypeId]GetUnitsOfPlayerAndTypeId[/url][b]([/b][url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b]PLAYER_NEUTRAL_AGGRESSIVE[b])[/b][b],[/b] [color=FFFF77]'hfoo'[/color][b])[/b] enemy.issuePointOrder[b]([/b][color=77FF77]"attack"[/color][b],[/b] gg_rct_Attack_Move_Hostile_Reinforcements_Arrive.randomPoint[b]([/b][b])[/b][b])[/b] [color=7777FF][b]for[/b][/color] [color=AA77FF]unit[/color] enemy [color=7777FF][b]from[/b][/color] [url=http://starcraft-mapping.de/wiki/GetUnitsOfPlayerAndTypeId]GetUnitsOfPlayerAndTypeId[/url][b]([/b][url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b]PLAYER_NEUTRAL_AGGRESSIVE[b])[/b][b],[/b] [color=FFFF77]'h019'[/color][b])[/b] enemy.issuePointOrder[b]([/b][color=77FF77]"attack"[/color][b],[/b] gg_rct_Attack_Move_Hostile_Reinforcements_Arrive.randomPoint[b]([/b][b])[/b][b])[/b] [color=7777FF][b]end[/b][/color][b])[/b] doAfter[b]([/b][color=FFFF77]6[/color].[color=FFFF77]5[/color][b],[/b] [b]([/b][b])[/b] [b]-[/b]> [color=7777FF][b]begin[/b][/color] [url=http://starcraft-mapping.de/wiki/SetPlayerAllianceStateBJ]SetPlayerAllianceStateBJ[/url][b]([/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b]PLAYER_NEUTRAL_AGGRESSIVE[b])[/b][b],[/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]8[/color][b])[/b][b],[/b] bj_ALLIANCE_UNALLIED [b])[/b] [url=http://starcraft-mapping.de/wiki/SetPlayerAllianceStateBJ]SetPlayerAllianceStateBJ[/url][b]([/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b]PLAYER_NEUTRAL_AGGRESSIVE[b])[/b][b],[/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]9[/color][b])[/b][b],[/b] bj_ALLIANCE_UNALLIED [b])[/b] [url=http://starcraft-mapping.de/wiki/SetPlayerAllianceStateBJ]SetPlayerAllianceStateBJ[/url][b]([/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b]PLAYER_NEUTRAL_AGGRESSIVE[b])[/b][b],[/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]10[/color][b])[/b][b],[/b] bj_ALLIANCE_UNALLIED [b])[/b] [url=http://starcraft-mapping.de/wiki/SetPlayerAllianceStateBJ]SetPlayerAllianceStateBJ[/url][b]([/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b]PLAYER_NEUTRAL_AGGRESSIVE[b])[/b][b],[/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]11[/color][b])[/b][b],[/b] bj_ALLIANCE_UNALLIED [b])[/b] [url=http://starcraft-mapping.de/wiki/SetPlayerAllianceStateBJ]SetPlayerAllianceStateBJ[/url][b]([/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]11[/color][b])[/b][b],[/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b]PLAYER_NEUTRAL_AGGRESSIVE[b])[/b][b],[/b] bj_ALLIANCE_UNALLIED [b])[/b] [url=http://starcraft-mapping.de/wiki/SetPlayerAllianceStateBJ]SetPlayerAllianceStateBJ[/url][b]([/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]10[/color][b])[/b][b],[/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b]PLAYER_NEUTRAL_AGGRESSIVE[b])[/b][b],[/b] bj_ALLIANCE_UNALLIED [b])[/b] [url=http://starcraft-mapping.de/wiki/SetPlayerAllianceStateBJ]SetPlayerAllianceStateBJ[/url][b]([/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]9[/color][b])[/b][b],[/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b]PLAYER_NEUTRAL_AGGRESSIVE[b])[/b][b],[/b] bj_ALLIANCE_UNALLIED [b])[/b] [url=http://starcraft-mapping.de/wiki/SetPlayerAllianceStateBJ]SetPlayerAllianceStateBJ[/url][b]([/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]8[/color][b])[/b][b],[/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b]PLAYER_NEUTRAL_AGGRESSIVE[b])[/b][b],[/b] bj_ALLIANCE_UNALLIED [b])[/b] [url=http://starcraft-mapping.de/wiki/SetPlayerAllianceStateBJ]SetPlayerAllianceStateBJ[/url][b]([/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]0[/color][b])[/b][b],[/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b]PLAYER_NEUTRAL_AGGRESSIVE[b])[/b][b],[/b] bj_ALLIANCE_ALLIED_VISION [b])[/b] [url=http://starcraft-mapping.de/wiki/SetPlayerAllianceStateBJ]SetPlayerAllianceStateBJ[/url][b]([/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]1[/color][b])[/b][b],[/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b]PLAYER_NEUTRAL_AGGRESSIVE[b])[/b][b],[/b] bj_ALLIANCE_ALLIED_VISION [b])[/b] [url=http://starcraft-mapping.de/wiki/SetPlayerAllianceStateBJ]SetPlayerAllianceStateBJ[/url][b]([/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]2[/color][b])[/b][b],[/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b]PLAYER_NEUTRAL_AGGRESSIVE[b])[/b][b],[/b] bj_ALLIANCE_ALLIED_VISION [b])[/b] [url=http://starcraft-mapping.de/wiki/SetPlayerAllianceStateBJ]SetPlayerAllianceStateBJ[/url][b]([/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]3[/color][b])[/b][b],[/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b]PLAYER_NEUTRAL_AGGRESSIVE[b])[/b][b],[/b] bj_ALLIANCE_ALLIED_VISION [b])[/b] [url=http://starcraft-mapping.de/wiki/SetPlayerAllianceStateBJ]SetPlayerAllianceStateBJ[/url][b]([/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]4[/color][b])[/b][b],[/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b]PLAYER_NEUTRAL_AGGRESSIVE[b])[/b][b],[/b] bj_ALLIANCE_ALLIED_VISION [b])[/b] [url=http://starcraft-mapping.de/wiki/SetPlayerAllianceStateBJ]SetPlayerAllianceStateBJ[/url][b]([/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]5[/color][b])[/b][b],[/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b]PLAYER_NEUTRAL_AGGRESSIVE[b])[/b][b],[/b] bj_ALLIANCE_ALLIED_VISION [b])[/b] [url=http://starcraft-mapping.de/wiki/SetPlayerAllianceStateBJ]SetPlayerAllianceStateBJ[/url][b]([/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]6[/color][b])[/b][b],[/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b]PLAYER_NEUTRAL_AGGRESSIVE[b])[/b][b],[/b] bj_ALLIANCE_ALLIED_VISION [b])[/b] [url=http://starcraft-mapping.de/wiki/SetPlayerAllianceStateBJ]SetPlayerAllianceStateBJ[/url][b]([/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b][color=FFFF77]7[/color][b])[/b][b],[/b] [url=http://starcraft-mapping.de/wiki/Player]Player[/url][b]([/b]PLAYER_NEUTRAL_AGGRESSIVE[b])[/b][b],[/b] bj_ALLIANCE_ALLIED_VISION [b])[/b] [color=7777FF][b]end[/b][/color][b])[/b] doPeriodically[b]([/b][color=FFFF77]19[/color][b],[/b] [b]([/b]CallbackPeriodic cb[b])[/b] [b]-[/b]> [color=7777FF][b]begin[/b][/color] gg_unit_n007_0031.issuePointOrder[b]([/b][color=77FF77]"move"[/color][b],[/b] gg_rct_Upper_Move.randomPoint[b]([/b][b])[/b][b])[/b] gg_unit_n007_0042.issuePointOrder[b]([/b][color=77FF77]"move"[/color][b],[/b] gg_rct_City_farm_move.randomPoint[b]([/b][b])[/b][b])[/b] gg_unit_o000_0035.issuePointOrder[b]([/b][color=77FF77]"move"[/color][b],[/b] gg_rct_Forest_move.randomPoint[b]([/b][b])[/b][b])[/b] gg_unit_o000_0041.issuePointOrder[b]([/b][color=77FF77]"move"[/color][b],[/b] gg_rct_City_farm_move.randomPoint[b]([/b][b])[/b][b])[/b] gg_unit_o000_0037.issuePointOrder[b]([/b][color=77FF77]"move"[/color][b],[/b] gg_rct_Upper_Move.randomPoint[b]([/b][b])[/b][b])[/b] gg_unit_h00H_0028.issuePointOrder[b]([/b][color=77FF77]"move"[/color][b],[/b] gg_rct_Forest_move.randomPoint[b]([/b][b])[/b][b])[/b] gg_unit_h00H_0029.issuePointOrder[b]([/b][color=77FF77]"move"[/color][b],[/b] gg_rct_City_farm_move.randomPoint[b]([/b][b])[/b][b])[/b] [color=7777FF][b]end[/b][/color][b])[/b] doPeriodically[b]([/b][color=FFFF77]19[/color][b],[/b] [b]([/b]CallbackPeriodic cb[b])[/b] [b]-[/b]> [color=7777FF][b]begin[/b][/color] createItem[b]([/b][color=FFFF77]'gold'[/color][b],[/b] [url=http://starcraft-mapping.de/wiki/GetPlayableMapRect]GetPlayableMapRect[/url][b]([/b][b])[/b].randomPoint[b]([/b][b])[/b][b])[/b] createItem[b]([/b][color=FFFF77]'gold'[/color][b],[/b] [url=http://starcraft-mapping.de/wiki/GetPlayableMapRect]GetPlayableMapRect[/url][b]([/b][b])[/b].randomPoint[b]([/b][b])[/b][b])[/b] createItem[b]([/b][color=FFFF77]'lmbr'[/color][b],[/b] [url=http://starcraft-mapping.de/wiki/GetPlayableMapRect]GetPlayableMapRect[/url][b]([/b][b])[/b].randomPoint[b]([/b][b])[/b][b])[/b] [color=7777FF][b]end[/b][/color][b])[/b] print[b]([/b][color=77FF77]"|cffFF9421[100%] |r- Initializing Zombie Defense"[/color][b])[/b] [color=7777FF][b]init[/b][/color] print[b]([/b][color=77FF77]"|cffFF9421[0%] |r- Initializing Zombie Defense"[/color][b])[/b] getTimer[b]([/b][b])[/b].start[b]([/b] [color=FFFF77]0[/color].[color=FFFF77]010[/color][b],[/b] [color=7777FF][b]function[/b][/color] start [b])[/b] [/code]
select language
jass
java
delphi
C++
php
GSL
galaxy
visualBasic
> wurst
Text
Markdown
select style
default
> bbcode - default
Jasscraft
jasscraft html
visual
lightweight
lightweightNr
goto line:
Compare with:
text copy window
edit this code
post new code
package Movement function noStuckCond()returns boolean if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(0) ) ) return false if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(1) ) ) return false if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(2) ) ) return false if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(3) ) ) return false if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(4) ) ) return false if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(5) ) ) return false if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(6) ) ) return false if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(7) ) ) return false if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(8) ) ) return false if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(9) ) ) return false if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(10) ) ) return false if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(11) ) ) return false if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(PLAYER_NEUTRAL_PASSIVE) ) ) return false return true function noStuckAction() for unit enemy from GetUnitsInRectOfPlayer(gg_rct_Cop_Move_Spawn, Player(PLAYER_NEUTRAL_AGGRESSIVE)) enemy.issuePointOrder("attack", gg_rct_Attack_Move_Hostile_Reinforcements_Arrive.randomPoint()) init trigger t = CreateTrigger( ) TriggerRegisterEnterRectSimple( t, gg_rct_Helicopter_Arrives ) TriggerRegisterEnterRectSimple( t, gg_rct_Cop_Move_Spawn ) TriggerAddCondition( t, Condition( function noStuckCond ) ) TriggerAddAction( t, function noStuckAction ) package Respawn import HashMap import ClosureTimers HashMap<int,int> idList = new HashMap<int,int>() function respawn() int id1 = GetDyingUnit().getTypeId() unit dead = GetDyingUnit() if idList.has(id1) doAfter(7, () -> begin createUnit(Player(8), idList.get(id1), dead.getPos(), angle(0)) end) init idList.put('h00L', 'n002') idList.put('h019', 'n00H') idList.put('hhes', 'n00T') idList.put('z002', 'n003') idList.put('z005', 'n000') idList.put('z000', 'n000') idList.put('z001', 'u00A') idList.put('hpea', 'n000') idList.put('hrif', 'n003') idList.put('hfoo', 'n002') trigger t= CreateTrigger() t.registerAnyUnitEvent(EVENT_PLAYER_UNIT_DEATH) t.addAction(function respawn) package Spawn import ClosureTimers boolean secondSpawn = false function startSpawn () //doAfter(200, ()-> begin doPeriodically(10, (CallbackPeriodic cb) -> begin DisplayTimedTextToForce( GetPlayersAll(), 15.00, "--Wave 1--" ) for int i = 0 to 10 createUnit(Player(11),'n002',gg_rct_Graveyard_Spawns_and_move.randomPoint(), angle(0)) for int i = 0 to 10 createUnit(Player(10),'u000',gg_rct_Graveyard_Spawns_and_move.randomPoint(), angle(0)) for int i = 0 to 10 createUnit(Player(9),'n003',gg_rct_Graveyard_Spawns_and_move.randomPoint(), angle(0)) for int i = 0 to 10 createUnit(Player(8),'u002',gg_rct_Graveyard_Spawns_and_move.randomPoint(), angle(0)) createUnit(Player(8),'u003',gg_rct_Graveyard_Spawns_and_move.randomPoint(), angle(0)) for int i = 0 to 10 createUnit(Player(8),'u004',gg_rct_Graveyard_Spawns_and_move.randomPoint(), angle(0)) end) init getTimer().start( 0.010, function startSpawn ) package AntiStuck import ClosureTimers function noStuckCond() returns boolean if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(0) ) ) return false if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(1) ) ) return false if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(2) ) ) return false if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(3) ) ) return false if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(4) ) ) return false if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(5) ) ) return false if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(6) ) ) return false if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(7) ) ) return false if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(PLAYER_NEUTRAL_AGGRESSIVE) ) ) return false if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(PLAYER_NEUTRAL_PASSIVE) ) ) return false return true function noStuckAction() doAfter(1, () -> begin GetEnteringUnit().issuePointOrder("attack", GroupPickRandomUnit(GetUnitsOfPlayerAll(ForcePickRandomPlayer(GetPlayersEnemies(Player(10))))).getPos()) end) function callBack() for unit enemy from GetUnitsOfPlayerAll(Player(10)) enemy.issuePointOrder("attack", GroupPickRandomUnit(GetUnitsOfPlayerAll(ForcePickRandomPlayer(GetPlayersEnemies(Player(10))))).getPos()) for unit enemy from GetUnitsOfPlayerAll(Player(8)) enemy.issuePointOrder("attack", GroupPickRandomUnit(GetUnitsOfPlayerAll(ForcePickRandomPlayer(GetPlayersEnemies(Player(8))))).getPos()) for unit enemy from GetUnitsOfPlayerAll(Player(9)) enemy.issuePointOrder("attack", GroupPickRandomUnit(GetUnitsOfPlayerAll(ForcePickRandomPlayer(GetPlayersEnemies(Player(9))))).getPos()) for unit enemy from GetUnitsOfPlayerAll(Player(11)) enemy.issuePointOrder("attack", GroupPickRandomUnit(GetUnitsOfPlayerAll(ForcePickRandomPlayer(GetPlayersEnemies(Player(11))))).getPos()) init /* trigger s = CreateTrigger( ) TriggerRegisterEnterRectSimple( s, GetPlayableMapRect() ) TriggerRegisterTimerEventPeriodic( s, 35.00 ) TriggerAddAction( s, function callBack ) trigger t = CreateTrigger( ) TriggerRegisterEnterRectSimple( t, GetPlayableMapRect() ) TriggerAddCondition( t, Condition( function noStuckCond ) ) TriggerAddAction( t, function noStuckAction ) */ package MedicKit function diseaseCond() returns boolean if ( not ( GetUnitTypeId(GetEnteringUnit()) == 'z000' ) or not ( GetUnitTypeId(GetEnteringUnit()) == 'H016' ) or not ( GetUnitTypeId(GetEnteringUnit()) == 'H017' ) ) return false return true function diseaseAction() GetEnteringUnit().addEffect("war3mapImported\\FirstAidBackpack_ByEpsilon.mdx", "chest") function diseaseLoopAction() for unit enemy from GetUnitsOfPlayerAndTypeId(Player(PLAYER_NEUTRAL_AGGRESSIVE), 'z000') enemy.addEffect("war3mapImported\\FirstAidBackpack_ByEpsilon.mdx", "chest") init //=========================================================================== trigger diseased = CreateTrigger( ) TriggerRegisterEnterRectSimple( diseased, GetPlayableMapRect() ) TriggerAddCondition( diseased, Condition( function diseaseCond ) ) TriggerAddAction( diseased, function diseaseAction ) trigger diseaseOnce = CreateTrigger() TriggerRegisterTimerEventSingle( diseaseOnce, 5 ) TriggerAddAction( diseaseOnce, function diseaseLoopAction ) package GameInit import ClosureTimers function start () SetPlayerAllianceStateBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), Player(0), bj_ALLIANCE_ALLIED_VISION ) SetPlayerAllianceStateBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), Player(1), bj_ALLIANCE_ALLIED_VISION ) SetPlayerAllianceStateBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), Player(2), bj_ALLIANCE_ALLIED_VISION ) SetPlayerAllianceStateBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), Player(3), bj_ALLIANCE_ALLIED_VISION ) SetPlayerAllianceStateBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), Player(4), bj_ALLIANCE_ALLIED_VISION ) SetPlayerAllianceStateBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), Player(5), bj_ALLIANCE_ALLIED_VISION ) SetPlayerAllianceStateBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), Player(6), bj_ALLIANCE_ALLIED_VISION ) SetPlayerAllianceStateBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), Player(7), bj_ALLIANCE_ALLIED_VISION ) doAfter(2, () -> begin createItem('kymn', GetPlayableMapRect().randomPoint()) createItem('hbth', GetPlayableMapRect().randomPoint()) createItem('wild', GetPlayableMapRect().randomPoint()) createItem('wild', GetPlayableMapRect().randomPoint()) createItem('wild', GetPlayableMapRect().randomPoint()) end) doAfter(5, () -> begin createItem('ches', gg_rct_Radio_Spawns.randomPoint()) createItem('tsct', gg_rct_Generator_Spawns.randomPoint()) createItem('hval', GetPlayableMapRect().randomPoint()) end) doAfter(1500, () -> begin for unit enemy from GetUnitsOfPlayerAndTypeId(Player(PLAYER_NEUTRAL_AGGRESSIVE), 'hrif') enemy.issuePointOrder("attack", gg_rct_Attack_Move_Hostile_Reinforcements_Arrive.randomPoint()) for unit enemy from GetUnitsOfPlayerAndTypeId(Player(PLAYER_NEUTRAL_AGGRESSIVE), 'hfoo') enemy.issuePointOrder("attack", gg_rct_Attack_Move_Hostile_Reinforcements_Arrive.randomPoint()) for unit enemy from GetUnitsOfPlayerAndTypeId(Player(PLAYER_NEUTRAL_AGGRESSIVE), 'h019') enemy.issuePointOrder("attack", gg_rct_Attack_Move_Hostile_Reinforcements_Arrive.randomPoint()) end) doAfter(6.5, () -> begin SetPlayerAllianceStateBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), Player(8), bj_ALLIANCE_UNALLIED ) SetPlayerAllianceStateBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), Player(9), bj_ALLIANCE_UNALLIED ) SetPlayerAllianceStateBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), Player(10), bj_ALLIANCE_UNALLIED ) SetPlayerAllianceStateBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), Player(11), bj_ALLIANCE_UNALLIED ) SetPlayerAllianceStateBJ( Player(11), Player(PLAYER_NEUTRAL_AGGRESSIVE), bj_ALLIANCE_UNALLIED ) SetPlayerAllianceStateBJ( Player(10), Player(PLAYER_NEUTRAL_AGGRESSIVE), bj_ALLIANCE_UNALLIED ) SetPlayerAllianceStateBJ( Player(9), Player(PLAYER_NEUTRAL_AGGRESSIVE), bj_ALLIANCE_UNALLIED ) SetPlayerAllianceStateBJ( Player(8), Player(PLAYER_NEUTRAL_AGGRESSIVE), bj_ALLIANCE_UNALLIED ) SetPlayerAllianceStateBJ( Player(0), Player(PLAYER_NEUTRAL_AGGRESSIVE), bj_ALLIANCE_ALLIED_VISION ) SetPlayerAllianceStateBJ( Player(1), Player(PLAYER_NEUTRAL_AGGRESSIVE), bj_ALLIANCE_ALLIED_VISION ) SetPlayerAllianceStateBJ( Player(2), Player(PLAYER_NEUTRAL_AGGRESSIVE), bj_ALLIANCE_ALLIED_VISION ) SetPlayerAllianceStateBJ( Player(3), Player(PLAYER_NEUTRAL_AGGRESSIVE), bj_ALLIANCE_ALLIED_VISION ) SetPlayerAllianceStateBJ( Player(4), Player(PLAYER_NEUTRAL_AGGRESSIVE), bj_ALLIANCE_ALLIED_VISION ) SetPlayerAllianceStateBJ( Player(5), Player(PLAYER_NEUTRAL_AGGRESSIVE), bj_ALLIANCE_ALLIED_VISION ) SetPlayerAllianceStateBJ( Player(6), Player(PLAYER_NEUTRAL_AGGRESSIVE), bj_ALLIANCE_ALLIED_VISION ) SetPlayerAllianceStateBJ( Player(7), Player(PLAYER_NEUTRAL_AGGRESSIVE), bj_ALLIANCE_ALLIED_VISION ) end) doPeriodically(19, (CallbackPeriodic cb) -> begin gg_unit_n007_0031.issuePointOrder("move", gg_rct_Upper_Move.randomPoint()) gg_unit_n007_0042.issuePointOrder("move", gg_rct_City_farm_move.randomPoint()) gg_unit_o000_0035.issuePointOrder("move", gg_rct_Forest_move.randomPoint()) gg_unit_o000_0041.issuePointOrder("move", gg_rct_City_farm_move.randomPoint()) gg_unit_o000_0037.issuePointOrder("move", gg_rct_Upper_Move.randomPoint()) gg_unit_h00H_0028.issuePointOrder("move", gg_rct_Forest_move.randomPoint()) gg_unit_h00H_0029.issuePointOrder("move", gg_rct_City_farm_move.randomPoint()) end) doPeriodically(19, (CallbackPeriodic cb) -> begin createItem('gold', GetPlayableMapRect().randomPoint()) createItem('gold', GetPlayableMapRect().randomPoint()) createItem('lmbr', GetPlayableMapRect().randomPoint()) end) print("|cffFF9421[100%] |r- Initializing Zombie Defense") init print("|cffFF9421[0%] |r- Initializing Zombie Defense") getTimer().start( 0.010, function start )