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
GroupEnumUnitsOfPlayer
(
ENUM_GROUP
,
players
[
10
]
,
Filter
(
(
)
-
> begin
int
randomInt
=
GetRandomInt
(
0
,
8
)
if
randomInt
=
=
8
randomInt
=
PLAYER_NEUTRAL_AGGRESSIVE
GroupEnumUnitsOfPlayer
(
ENUM_GROUP
,
players
[
randomInt
]
,
Filter
(
(
)
-
> GetFilterUnit
(
)
.isAlive
(
)
)
)
GetFilterUnit
(
)
.issuePointOrder
(
"attack"
,
GroupPickRandomUnit
(
ENUM_GROUP
)
.getPos
(
)
)
ENUM_GROUP.clear
(
)
end
)
)
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
GroupEnumUnitsOfPlayer(ENUM_GROUP,players[10],Filter(() -> begin int randomInt = GetRandomInt(0,8) if randomInt == 8 randomInt = PLAYER_NEUTRAL_AGGRESSIVE GroupEnumUnitsOfPlayer(ENUM_GROUP,players[randomInt], Filter(() -> GetFilterUnit().isAlive() )) GetFilterUnit().issuePointOrder("attack", GroupPickRandomUnit(ENUM_GROUP).getPos()) ENUM_GROUP.clear() end))