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
[
9
]
,
Filter
(
(
)
-
> begin
int randomInt
=
GetRandomInt
(
0
,
8
)
if
randomInt
=
=
8
randomInt
=
PLAYER_NEUTRAL_AGGRESSIVE
bj_wantDestroyGroup
=
false
GroupEnumUnitsOfPlayer
(
ENUM_GROUP2
,
players
[
randomInt
]
,
Filter
(
(
)
-
>
GetFilterUnit
(
)
.isAlive
(
)
)
)
GetFilterUnit
(
)
.issuePointOrder
(
"attack"
,
GroupPickRandomUnit
(
ENUM_GROUP2
)
.getPos
(
)
)
ENUM_GROUP2.clear
(
)
end
)
)
Diesen Code in Original-Formatierung anzeigen
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[ 9 ], Filter(() - > begin int randomInt = GetRandomInt( 0, 8 ) if randomInt == 8 randomInt = PLAYER_NEUTRAL_AGGRESSIVE bj_wantDestroyGroup = false GroupEnumUnitsOfPlayer( ENUM_GROUP2, players[ randomInt ], Filter(() - > GetFilterUnit() .isAlive() )) GetFilterUnit() .issuePointOrder( "attack", GroupPickRandomUnit( ENUM_GROUP2 ) .getPos()) ENUM_GROUP2.clear() end ))