======================SOLVED===============
So, that's my temporary Scoreboard:
What's important here are the create label triggers. For player 1 I have Name:Killseaths, simple. It works fine. If I kill, it increases the number, If I die, it does that as well.
Now when I enable player 6, give him a unit and enable those 3 triggers, it doesn't work. In an online lobby it just doesn't show up, in local testing it says this:
Now the first line refers to the Player name, the other refers to Kills and Deaths (negative array indexes not supported), figured that out by disabling the K/D labels.
So, what does that mean? Is there something wrong with my player 6 setting? Why does Player 1 work? I'm trying to find out with deductive ways, no luck so far.
//edit: I gave player 2 the same unit that player 6 has. Now, everything works fine with player 2 as well.He has also a name "Player 2" while 6 (the first one in the enemy team, it's a 5on5 map) has none. It just says "Warlord killed " while here it refers to Player 2 as Player 2 and not just blank.
//edit2: Well, player 2-5 was set to computer (Player Properties). I did that earlier to let my friend join Slot 6 because otherwise it wouldn't let him, it would always put him to player 2 and wouldn't let me drag him to Team 2.
Now, I changed Player 6 to computer as well, he has a name now (Player 6) that properly shows up if I kill him but the problem remains the same.
Should you ask: Yes, I've a trigger that assigns each player to Red or Blue Team.
P.S.: The error reporter and the whole "error in line 345". That's quite obvious in general coding like java etc. but how do I look at the code of my map to figure out where line 373 is and what it says.
I know there was some option to look at the source code but I got there by accident. I'm quite new to the SC2 editor so I can't know.
P.S.2: Another thing; for example, someone posts a trigger in text like I did above. There is/was (at least in WC3) an option to paste this text in a trigger, how do I do that in the SC2 editor?
So, that's my temporary Scoreboard:
-
StatsShow
-
Events
- UI - Player 1 presses Tab key Down with shift Allow, control Allow, alt Allow
- Local Variables
- Conditions
-
Actions
- Dialog - Create a Non-modal dialog of size (764, 736) at (0, 100) relative to Top of screen
- Variable - Set StatsShow = (Last created dialog)
- Dialog - Create an image for dialog StatsShow with the dimensions (764, 736) anchored to Top with an offset of (0, 0) setting the tooltip to "" using the image Mainboard.dds as a Normal type with tiled set to True tint color White and blend mode Normal
- Dialog - Create a label for dialog StatsShow with the dimensions (200, 50) anchored to Top Left with an offset of (100, 350) with the text (Name of player (Player 1 from Red Team)) color set to White text writeout set to False with a writeout duration of 2.0
- Dialog - Create a label for dialog StatsShow with the dimensions (200, 50) anchored to Top Left with an offset of (275, 350) with the text (Text(Kills[(Player 1 from Red Team)])) color set to White text writeout set to False with a writeout duration of 2.0
- Dialog - Create a label for dialog StatsShow with the dimensions (200, 50) anchored to Top Left with an offset of (335, 350) with the text (Text(Deaths[(Player 1 from Red Team)])) color set to White text writeout set to False with a writeout duration of 2.0
- Dialog - Create a label for dialog StatsShow with the dimensions (200, 50) anchored to Top Left with an offset of (380, 350) with the text (Name of player (Player 6 from Blue Team)) color set to White text writeout set to False with a writeout duration of 2.0
- Dialog - Create a label for dialog StatsShow with the dimensions (200, 50) anchored to Top Left with an offset of (555, 350) with the text (Text(Kills[(Player 6 from Blue Team)])) color set to White text writeout set to False with a writeout duration of 2.0
- Dialog - Create a label for dialog StatsShow with the dimensions (200, 50) anchored to Top Left with an offset of (605, 350) with the text (Text(Deaths[(Player 6 from Blue Team)])) color set to White text writeout set to False with a writeout duration of 2.0
- Dialog - Show StatsShow for (All players)
- General - Wait 5.0 Game Time seconds
- Dialog - Hide StatsShow for (All players)
-
Events
What's important here are the create label triggers. For player 1 I have Name:Killseaths, simple. It works fine. If I kill, it increases the number, If I die, it does that as well.
Now when I enable player 6, give him a unit and enable those 3 triggers, it doesn't work. In an online lobby it just doesn't show up, in local testing it says this:
Now the first line refers to the Player name, the other refers to Kills and Deaths (negative array indexes not supported), figured that out by disabling the K/D labels.
So, what does that mean? Is there something wrong with my player 6 setting? Why does Player 1 work? I'm trying to find out with deductive ways, no luck so far.
//edit: I gave player 2 the same unit that player 6 has. Now, everything works fine with player 2 as well.
//edit2: Well, player 2-5 was set to computer (Player Properties). I did that earlier to let my friend join Slot 6 because otherwise it wouldn't let him, it would always put him to player 2 and wouldn't let me drag him to Team 2.
Now, I changed Player 6 to computer as well, he has a name now (Player 6) that properly shows up if I kill him but the problem remains the same.
Should you ask: Yes, I've a trigger that assigns each player to Red or Blue Team.
- Player Group - Add player 1 to Red Team
- Player Group - Add player 6 to Blue Team
P.S.: The error reporter and the whole "error in line 345". That's quite obvious in general coding like java etc. but how do I look at the code of my map to figure out where line 373 is and what it says.
I know there was some option to look at the source code but I got there by accident. I'm quite new to the SC2 editor so I can't know.
P.S.2: Another thing; for example, someone posts a trigger in text like I did above. There is/was (at least in WC3) an option to paste this text in a trigger, how do I do that in the SC2 editor?
Last edited: