Hello everyone, I'm currently trying to make a dialog for my SC2 map. I followed the instructions in this website Here. Actions like "Player Group - Add player 1 to Host, I go to custom script and put in the words Host. I don't know if I'm doing it correctly, but it looks identical to the one on the website. The problem is, I'm trying to save it and test the map, but its not letting me do so.
at the location where you see the triggers listed, right click, go down to new, and when the next submenu opens click on Variable.
Now name this variable Host, and change the Variable Type to "PlayerGroup".
Alright, that seemed like it worked. The error is now on 61th line, cause i did that mistake to almost every similar one. I'll change them and see what happens. Thanks for the straight forward and quick response.
Event - Unit dies,
Condition - killcountvar[killing player] >= 200
Actions
pick each player in playergroup (active players)
Actions
if (Picked Player == Killing Player)
Then
End game in victory for Picked Player
Else
End game in defeat for Picked Player
I don't know how you keep track of your kills though, but the idea is that the condition prevents the running of this trigger until enough kills are made.
Hello everyone, I'm currently trying to make a dialog for my SC2 map. I followed the instructions in this website Here. Actions like "Player Group - Add player 1 to Host, I go to custom script and put in the words Host. I don't know if I'm doing it correctly, but it looks identical to the one on the website. The problem is, I'm trying to save it and test the map, but its not letting me do so.
These are my three elements
1st element
2nd element
3rd element
Syntax Error occurs on my 34th line: PlayerGroupAdd(Host, 1);
Please help me and thanks in advance.
The value Host is probably a playergroup variable, and not a custom value.
@Helral: Go
If i go to player group, i don't see "host" there. Can you help please?
Thanks for fast response
@VitallyLost: Go
at the location where you see the triggers listed, right click, go down to new, and when the next submenu opens click on Variable.
Now name this variable Host, and change the Variable Type to "PlayerGroup".
It should now show up in the list.
@Helral: Go
Alright, that seemed like it worked. The error is now on 61th line, cause i did that mistake to almost every similar one. I'll change them and see what happens. Thanks for the straight forward and quick response.
Ugh. Im having some trouble again.
For Variable - Set Game_Mode_Dialog = (Last created dialog)
Do i make a variable for both Game-Mode_Dialog and Last created dialog?
If so what type of variable should it be?
Helral or anyone experienced please answer. Sorry im new to this mapmaking thing, but I made a basic mass em up map back in bw.
Nevermind, i figured it out.
What should be the variable's type for the "set variable" action?
Anyone help me.
Alright i finally got it working. Might have some more questions though.
Um... now that i got it working...what is the action to require X amount of kills to end the game? thanks in advance.
@VitallyLost: Go
something like:
Event - Unit dies,
Condition - killcountvar[killing player] >= 200
Actions
pick each player in playergroup (active players)
Actions
if (Picked Player == Killing Player)
Then
End game in victory for Picked Player
Else
End game in defeat for Picked Player
I don't know how you keep track of your kills though, but the idea is that the condition prevents the running of this trigger until enough kills are made.
@Helral: Go
Alright thanks.
@Helral: Go
Killcountvar? The only thing i see are : And, comparison, not, or, text has been set, within bounds.
For event I found : Unit - Any unit dies. Dunno if its the right one.
EDIT: Nevermind