hi,
I've done a leaderboard the problem ist the counter for my variable rises every second. It supposed to update the leaderboard only if the condition is true.
EventsTimer-Every1.0secondsofGameTimeLocalVariablesConditionsActionsGeneral-If(Conditions)thendo(Actions)elsedo(Actions)If(NumberofLivingunitsinPlayerGroup[1])==0OrConditions(Allunitsin(Anyunitsin(Entiremap)ownedbyplayer1matchingExcluded:Missile,Dead,withatmostAnyAmount)aredead)==trueThenElseGeneral-If(Conditions)thendo(Actions)elsedo(Actions)If(AllunitsinAiGroup[1]aredead)==trueThenVariable-ModifyPlayer1Points:+1Trigger-RunUpdateLeaderboard(CheckConditions,Don't Wait until it finishes)Else
The player array is pointless. The "player" is actually a player's index number, not the name or some other type of identifier. In the above code you posted this is what is going on in the array:
hi,
i want to ask what could be the matter that all the outputs get written by there param ID and not by their name
E.g. Round 1 i get param/blablabla
a other Question is i made a trigger for the AI which says that the unitgroup A shall attack any unit in unitgroup B the problem is the AI only attacks one unit and stops than.
Is there a way to tell the AI to attack any unit which attacks the AI and any unit still left from group B
@DrHu: Go
i set them to users
i assume cause i'm the only player it makes me as player 1 and not player 4
I thought if i join team 4 or team 8 i get counted as player 4 or 8
how do i make it with the player group as you mentioned before ;)
I want to place player 4 and Player 8 as observers
The player group Not working.
Do i've to do a condition if player in team 4 or so?
Player Group - Pick each player in (All players) and do (Actions)
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
(Status of player 4) == Playing
Then
Player Group - Add player 4 to Observers
Else
General - If (Conditions) then do (Actions) else do (Actions)
If
(Status of player 8) == Playing
Then
Player Group - Add player 8 to Observers
Else
Visibility - Create a visibility revealer for player 4 within (Entire map)
Visibility - Create a visibility revealer for player 8 within (Entire map)
not working
Create a function (it's called: action) that does that for a given player (parameter) and execute everything for the player#. Just like in Java...
Functions are your friends. Use and love them! I've like 25 triggers for 300 functions in my map. Use a switch, if your actions differ for each player. But you can use an array and just read something out of the array based on the player#. I'm using "p#-1" (player number - 1) in nearly every function I've created.
hi,
I'm doing a micro tournament map for 8 Players..
Round1 triggers
Camera - Pan the camera for player 1 to spieler1 over 0.3 seconds with Existing Velocity% initial velocity, 10% deceleration, and Do Not use smart panning
Camera - Pan the camera for player 2 to spieler2 over 0.3 seconds with Existing Velocity% initial velocity, 10% deceleration, and Do Not use smart panning
Camera - Pan the camera for player 3 to spieler3 over 0.3 seconds with Existing Velocity% initial velocity, 10% deceleration, and Do Not use smart panning
Camera - Pan the camera for player 4 to spieler4 over 0.3 seconds with Existing Velocity% initial velocity, 10% deceleration, and Do Not use smart panning
Camera - Pan the camera for player 5 to spieler5 over 0.3 seconds with Existing Velocity% initial velocity, 10% deceleration, and Do Not use smart panning
Camera - Pan the camera for player 6 to Spieler6 over 0.3 seconds with Existing Velocity% initial velocity, 10% deceleration, and Do Not use smart panning
Camera - Pan the camera for player 7 to Spieler7 over 0.3 seconds with Existing Velocity% initial velocity, 10% deceleration, and Do Not use smart panning
Camera - Pan the camera for player 8 to Spieler8 over 0.3 seconds with Existing Velocity% initial velocity, 10% deceleration, and Do Not use smart panning
Unit - Create 8 Zergling for player 1 at spieler1 using default facing (No Options)
Unit Group - Add (Last created unit) to EinheitenGruppeSpieler1
Unit - Create 8 Zergling for player 2 at spieler2 using default facing (No Options)
Unit Group - Add (Last created unit) to EinheitenGruppeSpieler2
Unit - Create 8 Zergling for player 3 at spieler3 using default facing (No Options)
Unit Group - Add (Last created unit) to EinheitenGruppeSpieler
It seems to me very bad way of working with triggers cause the whole code duplicated.
I mean in e.g. Java i make a function and call it if i need the code. I can't imagine that this solutions isnt implicated in the galaxy editor
hi,
I'm triying to create a micro tournament map using Tempest as a map.
Anyways I've following problems:
Units die after a few sec
Units do not spawn
The script i'm usingis based on the script from micro platinum tournament , cause I'm not familiar with the Galaxy Editor .
I'm using the German distrubition of SC2 so i guess the trigger text will not help very much, so i uploaded the map
https://rapidshare.com/files/843243091/tempestMicAnfang.SC2Map
0
hi, I've done a leaderboard the problem ist the counter for my variable rises every second. It supposed to update the leaderboard only if the condition is true.
0
@DrHu: Go
yea i managed that but i can't make a revealer to a player group
0
Yea i already solved it but forgot to say so
anyways thanks!
0
hi, i want to ask what could be the matter that all the outputs get written by there param ID and not by their name E.g. Round 1 i get param/blablabla
a other Question is i made a trigger for the AI which says that the unitgroup A shall attack any unit in unitgroup B the problem is the AI only attacks one unit and stops than. Is there a way to tell the AI to attack any unit which attacks the AI and any unit still left from group B
0
@DrHu: Go
ok i'll try
0
@FuzzYD: Go
thanks i'll try
hm not working
The PlayerArray got size 5
Do i've to add more params?
I attached the map.
I pasted the pan camera code to the initialization. The other things are in the folder Round 1
0
@DrHu: Go
hm well so what do i've to do to set observers?
0
@DrHu: Go i set them to users
i assume cause i'm the only player it makes me as player 1 and not player 4
I thought if i join team 4 or team 8 i get counted as player 4 or 8
0
I didn't its outside the condition
i pasted the code at the inititialization trigger
0
how do i make it with the player group as you mentioned before ;)
I want to place player 4 and Player 8 as observers
The player group Not working.
Do i've to do a condition if player in team 4 or so?
0
i tried something similar
Player Group - Pick each player in (All players) and do (Actions)
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
(Status of player 4) == Playing
Then
Player Group - Add player 4 to Observers
Else
General - If (Conditions) then do (Actions) else do (Actions)
If
(Status of player 8) == Playing
Then
Player Group - Add player 8 to Observers
Else
Visibility - Create a visibility revealer for player 4 within (Entire map)
Visibility - Create a visibility revealer for player 8 within (Entire map)
not working
0
Can you paste just an example code plz ?
0
hi,
I'm doing a micro tournament map for 8 Players..
Round1 triggers
Camera - Pan the camera for player 1 to spieler1 over 0.3 seconds with Existing Velocity% initial velocity, 10% deceleration, and Do Not use smart panning
Camera - Pan the camera for player 2 to spieler2 over 0.3 seconds with Existing Velocity% initial velocity, 10% deceleration, and Do Not use smart panning
Camera - Pan the camera for player 3 to spieler3 over 0.3 seconds with Existing Velocity% initial velocity, 10% deceleration, and Do Not use smart panning
Camera - Pan the camera for player 4 to spieler4 over 0.3 seconds with Existing Velocity% initial velocity, 10% deceleration, and Do Not use smart panning
Camera - Pan the camera for player 5 to spieler5 over 0.3 seconds with Existing Velocity% initial velocity, 10% deceleration, and Do Not use smart panning
Camera - Pan the camera for player 6 to Spieler6 over 0.3 seconds with Existing Velocity% initial velocity, 10% deceleration, and Do Not use smart panning
Camera - Pan the camera for player 7 to Spieler7 over 0.3 seconds with Existing Velocity% initial velocity, 10% deceleration, and Do Not use smart panning
Camera - Pan the camera for player 8 to Spieler8 over 0.3 seconds with Existing Velocity% initial velocity, 10% deceleration, and Do Not use smart panning
Unit - Create 8 Zergling for player 1 at spieler1 using default facing (No Options)
Unit Group - Add (Last created unit) to EinheitenGruppeSpieler1
Unit - Create 8 Zergling for player 2 at spieler2 using default facing (No Options)
Unit Group - Add (Last created unit) to EinheitenGruppeSpieler2
Unit - Create 8 Zergling for player 3 at spieler3 using default facing (No Options)
Unit Group - Add (Last created unit) to EinheitenGruppeSpieler
It seems to me very bad way of working with triggers cause the whole code duplicated.
I mean in e.g. Java i make a function and call it if i need the code. I can't imagine that this solutions isnt implicated in the galaxy editor
0
thanks.
0
hi, I'm triying to create a micro tournament map using Tempest as a map. Anyways I've following problems: