Yo Erik, need help

Post whatever you want!

Moderator: Degra

Post Reply
User avatar
Caladbolg
CCA
Posts: 575
Joined: Sun Feb 24, 2013 6:00 pm
Wiki edits: 97
Location: Canada

Yo Erik, need help

Post by Caladbolg »

Hey Erik, I'm looking for a quick tutorial on banning someone from a SC2 map.

I'm guessing it has to do with finding a players real ID (the bank number) no clue how to do that

Then with a map init + player has ID#xxx, cause loss. Not sure what the Condition of a player ID would be though
WhyteDragon wrote:"[...]As to what Caladbold said -- he's right.[...]"

Discord Server
Better replay suggestion
Merwins-island.dyndns.org Unofficial Teamspeak server.
User avatar
Degra
CCA
Posts: 233
Joined: Wed Jan 23, 2013 6:00 pm
Wiki edits: 0
Location: Baden-Württemberg, Germany, EU

Re: Yo Erik, need help

Post by Degra »

Might as well do it as CC does it:
When you press "F12" to open Help, there is a section displaying all concurrent player's IDs.
You screenshot them and provide them to the map author to ban them.

Now as a map author you would just look up how to gather the SC2 ID,
how to create a section in "Help",
and how to export them as strings there.
User avatar
Siretu
Creator
Posts: 1019
Joined: Sat Jun 16, 2012 5:00 pm
Wiki edits: 115
Location: In the SC2 Editor
Contact:

Re: Yo Erik, need help

Post by Siretu »

In SC2, the ID is called "player handle". Assuming you have the player handle of the person you're trying to ban, you can just have a trigger on map init that loops through all the players and for all players, checks them against a list of banned players. If it matches, you end the game for them.

You'll have to hardcode the ban in and update the game to get the ban in effect.
Never ignore coincidence. Unless, of course, you’re busy. In which case, always ignore coincidence.
Post Reply