Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

.galaxy (SCII)

Name: Anonymous 2012-03-02 12:23

What do you guys think of SCII's scripting language .galaxy?

playergroup gv_allPlayers = PlayerGroupAll();
void gf_exampleFunc () {
    text lv_txtPlayer = StringToText("Player ")
    text lv_txt = StringToText(" is a nigger.");
    int  lv_i;

    while(lv_i <= c_maxPlayers) {
        UIDisplayMessage(gv_allPlayers, c_messageAreaDebug, lv_txtPlayer + IntToText(lv_i) + lv_txt);
        lv_i += 1;
    }
}

Name: Anonymous 2012-03-02 12:27

Should I stop using prefixes so much btw?

lv_ is local variable
gf_ is global function
gv_ is global variable
c_ is constant
lp_ is local parameter
gt_ is game trigger
etc.

I think I should only use c_ and gv_ probably, and I usually neglect using gf_ or gt_ when naming my functions. Prefixes are not necessary at all I just use them because from what I've seen from the GUI generated code it uses them.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List