Staredit Network > Forums > SC1 UMS Theory and Ideas > Topic: Integrating SCA to work with your map
Integrating SCA to work with your map
Sep 7 2020, 3:46 am
By: lifebot  

Sep 7 2020, 3:46 am lifebot Post #1

SCA is a third party utility that runs in the background while playing StarCraft.

It is much like SCDB from 2 years ago, but vastly improved in all areas.

The tool is developed by JPoker, who is also the mastermind behind EUD Editor 1,2,3.

--- Quick Facts ---

-SCA replaces SCDB
-SCDB has been abandoned
-SCA works much better than SCDB
-It is made by JPoker, highly reputable in the scene

--- Registering on SCA as user ---

First, launch SCA. When you run it for the first time, it will ask to create a password.

Create a password, and then it will ask for your e-mail address. Enter your e-mail, it will send a verification code to finish registering.

At this point, you can now use SCA to play other SCA-enabled maps.

--- Integrating SCA in your map ---

Please note that SCA saves death values, so decide which death values you want saved prior to doing this.

Launch EUD Editor 3 latest version, and open the TE editor.

Expand the left side bar and you will see this. Click the settings icon

Fill out the info, as shown in the screen shot.

Now go back to the side bar, and right click on your e3s file and create new CUI epScript.

Rename the epScript to English characters no spaces.

Now open the CUI epScript file you just created.

You will see this window. There won't be anything in your file.

Now, you need to copy and paste this code:


import TriggerEditor.SCArchive as sca;

function onPluginStart(){

function beforeTriggerExec(){

if(Deaths(CurrentPlayer, Exactly, 1, "Terran Firebat")){ // Data Save
SetDeaths(CurrentPlayer, SetTo, 0, "Terran Firebat");

if(Deaths(CurrentPlayer, Exactly, 2, "Protoss Nexus")){ // Data Load
SetDeaths(CurrentPlayer, SetTo, 3, "Protoss Nexus");
case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
case 7:
case 8:
case 9:



function afterTriggerExec(){


As you can see, what triggers SCA to load and save are:


In this code, the condition for executing the save and load are the death triggers.


if(Deaths(CurrentPlayer, Exactly, 1, "Terran Firebat")){ // Data Save
SetDeaths(CurrentPlayer, SetTo, 0, "Terran Firebat");

This means when a player has a death of 1 firebat, it sets it to 0 again and executes the save.

Simply edit the death value of the unit applicable to your own map and you should have a working save/load trigger.

You can also use other classic triggers as conditions. Make sure to follow the syntax/coding structure.

I will expand on this topic as soon as possible.

Post has been edited 20 time(s), last time on Sep 7 2020, 11:23 am by lifebot.

Sep 7 2020, 8:19 am Oh_Man Post #2

Find Me On Discord (Brood War UMS Community & Staredit Network)

Nice work sir. I look forward to more!

Sep 7 2020, 11:14 am lifebot Post #3

Done, for now.

  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[03:14 am]
jjf28 -- sraw531 wrong meme,
[09:39 pm]
sraw531 -- NudeRaider
NudeRaider shouted: dont repress your anger. come to the dark side!
[06:01 pm]
NudeRaider -- me? never!
[06:01 pm]
lil-Inferno -- u
[05:14 pm]
NudeRaider -- dont repress your anger. come to the dark side!
[04:55 pm]
Dem0n -- no
[04:13 pm]
Wing Zero -- Demon stop taking my box I'm bout to rage
[2020-9-24. : 12:06 am]
lifebot -- join RPG @ US WEST
[2020-9-23. : 7:10 am]
sraw531 -- ungh, looks like im going to have to do a binary count off for death messages, they aren't properly being displayed to everybody :(
[2020-9-23. : 4:22 am]
sraw531 -- maybe I should just test what happens if you teleport(move) the command centers to a location off the map every cycle while they are flying.
Please log in to shout.

Members Online: Roy