-
Notifications
You must be signed in to change notification settings - Fork 0
/
MapScript.galaxy
59 lines (52 loc) · 2.34 KB
/
MapScript.galaxy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
//==================================================================================================
//
// Generated Map Script
//
// Name: Just Another StarCraft II Map
//
//==================================================================================================
include "TriggerLibs/NativeLib"
//--------------------------------------------------------------------------------------------------
// Library Initialization
//--------------------------------------------------------------------------------------------------
void InitLibs () {
libNtve_InitLib();
}
//--------------------------------------------------------------------------------------------------
// Trigger Variables
//--------------------------------------------------------------------------------------------------
trigger gt_Start;
//--------------------------------------------------------------------------------------------------
// Trigger: Start
//--------------------------------------------------------------------------------------------------
bool gt_Start_Func (bool testConds, bool runActions) {
// Actions
if (!runActions) {
return true;
}
libNtve_gf_CreateUnitsWithDefaultFacing(1, "Marine", 0, 1, RegionRandomPoint(RegionEntireMap()));
DialogCreate(500, 400, c_anchorCenter, 0, 0, true);
DialogSetFullscreen(DialogLastCreated(), true);
DialogSetImageVisible(DialogLastCreated(), false);
DialogSetVisible(DialogLastCreated(), PlayerGroupAll(), true);
DialogControlCreateFromTemplate(DialogLastCreated(), c_triggerControlTypePanel, "CustomUI/DefaultWindow");
return true;
}
//--------------------------------------------------------------------------------------------------
void gt_Start_Init () {
gt_Start = TriggerCreate("gt_Start_Func");
TriggerAddEventMapInit(gt_Start);
}
//--------------------------------------------------------------------------------------------------
// Trigger Initialization
//--------------------------------------------------------------------------------------------------
void InitTriggers () {
gt_Start_Init();
}
//--------------------------------------------------------------------------------------------------
// Map Initialization
//--------------------------------------------------------------------------------------------------
void InitMap () {
InitLibs();
InitTriggers();
}