So I think I just made the first user made custom map

Azlier

Old World Ghost
Reaction score
461
So I think I just made the first user made custom map. Yay me.

And I don't even have the beta. :rolleyes:

Anyway, I can say that I like how Galaxy has freeform globals and libraries. That's pretty much everything I need right there.
 

Lyerae

I keep popping up on this site from time to time.
Reaction score
105
> Anyway, I can say that I like how Galaxy has freeform globals and libraries. That's pretty much everything I need right there.

Does it? I've barely had a look at the language...
 

Azlier

Old World Ghost
Reaction score
461
Here's the map script of my "custom" map.

JASS:
//==================================================================================================
// 
// Generated Map Script
// 
// Name:   Blistering Sands
// Author: Blizzard Entertainment
// 
//==================================================================================================
include "TriggerLibs/NativeLib"

trigger myTrig;

bool NonsenseActions () {
    //Haha!
    return false;
}

void InitNonsense () {
    myTrig = TriggerCreate("NonsenseActions");
    TriggerAddEventMapInit(myTrig);
}

//--------------------------------------------------------------------------------------------------
// Library Initialization
//--------------------------------------------------------------------------------------------------
void InitLibs () {
    libNtve_InitLib();
}

//--------------------------------------------------------------------------------------------------
// Trigger Variables
//--------------------------------------------------------------------------------------------------
trigger gt_MeleeInitialization;

//--------------------------------------------------------------------------------------------------
// Trigger: Melee Initialization
//--------------------------------------------------------------------------------------------------
bool gt_MeleeInitialization_Func (bool testConds, bool runActions) {
    // Actions
    if (!runActions) {
        return true;
    }

    MeleeInitResources();
    MeleeInitUnits();
    MeleeInitAI();
    MeleeInitOptions();
    return true;
}

//--------------------------------------------------------------------------------------------------
void gt_MeleeInitialization_Init () {
    gt_MeleeInitialization = TriggerCreate("gt_MeleeInitialization_Func");
    TriggerAddEventMapInit(gt_MeleeInitialization);
}

//--------------------------------------------------------------------------------------------------
// Trigger Initialization
//--------------------------------------------------------------------------------------------------
void InitTriggers () {
    gt_MeleeInitialization_Init();
}

//--------------------------------------------------------------------------------------------------
// Map Initialization
//--------------------------------------------------------------------------------------------------
void InitMap () {
    InitLibs();
    InitTriggers();
    InitNonsense();
}
 

Deaod

Member
Reaction score
6
Here's the map script of my "custom" map.
I doubt thatd work. Look at the way TriggerCreate is used in other script. Especially at the signature of the function passed.
 

Romek

Super Moderator
Reaction score
963
Galaxy's looking good. :)
 

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
No way to test it as of yet.
 

Genkora

Frog blast the vent core!
Reaction score
92
I'm a noob with coding, what does "freeform" globals mean? Like, you can make your own or something?
 

Deaod

Member
Reaction score
6
You can declare them wherever you want inside the script (even in another library).
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top