You could do this by setting up all the units in a mod, then creating the map separately. It's not a bad idea to do anyway because then you can easily use the same units in more than one map without having to copy/import anything
Has anyone else create a library in a mod? I've created around 10 triggers that really aren't very complex, but doing stuff in the library feels so slow.
For example if I disable a global variable I have to wait 10 seconds for it to actually do it.
Is there any way to speed up the editor? I noticed it was quicker doing this stuff in map but not in a library.
I have been playing around with tirgger libraries in my mod. You can set Map Initialization events, however it doesn't seem to run unless you link to a trigger in the library from your map.
My Tests:
- Create a library in your mod and a trigger that contains a Map Iitialization event and some Debug Text
- Create another trigger called "Do Nothing" and leave it empty
- Create a new map and add the mod as a dependency
- The trigger library will show the mod triggers
Test 1:
Run the map without any triggers in the map
Result: The Library Trigger does not run
Test 2:
Run the map, adding a trigger that contains an action to run the "Do Nothing" trigger
Result: The Library Trigger runs, displays debug test
Test 3:
Same as Test 2, but disabled the map trigger, or the run trigger action
Result: The Library Trigger runs, displays debug test
So unless my editor is being quirky, it seems that you must link to a trigger in the library, even if it is disabled or does nothing.
Has anyone else found the same results, or know how it is supposed to work?
Hi all, when you select a race the appropriate default interface gets loaded, which looks different depending on your race.
Is it possible to change this after the game has started? For example if you have a custom AI can you let the player choose their race AFTER they are in the game, and then show the appropriate UI theme?
I was thinking that it would be useful if you could put triggers in the mod, then call any required triggers from the mod, without having to copy/paste the triggers to all of the maps you want it in.
However you don't seem to be able to add triggers to mods...
Is there a way around this? I vaguely remember something to do with the data editor and scripting things in there.
I just want some common interface/dialog elements that will be used for all maps that have the same mod depenency without having to copy the triggers to each of them. Is it possible?
Does anyone know how/the best way to create weather effects like rain/snow etc. You used to be able to do this in Wc3 and it was pretty simple. So far I can only find FOG settings in Sc2 though.
Create your mod, then open up a map and goto File > Dependencies, and press "Add Other" and select your mod. The map will now use it.
I'm not sure if you can just select maps on battlenet and choose to use a specific mod, I don't thing it works like that, it seems the map needs to be built with the dependency.
0
@Orothin: Go
Just passing on what others told me, take a look at my other thread though, I had some quirkiness to get the triggers working in the map. Pretty simple, but I'm not sure if this is the way it's meant to work: http://forums.sc2mapster.com/development/galaxy-scripting-and-trigger-lib/6639-trigger-libraries-in-mods-linked-to-maps/
0
Has anyone created a dialog item (label). It lets you specify the text color, but it always displays as white no matter what color I set it to.
Any ideas?
0
@Orothin: Go
You can do triggers in a mod, you do this via a Library. It's pretty cool.
In triggers turn the library view on, then right click and create a new library. From here you create triggers just like you do in a map.
0
You could do this by setting up all the units in a mod, then creating the map separately. It's not a bad idea to do anyway because then you can easily use the same units in more than one map without having to copy/import anything
0
I've got an i7-860, 4 gig ram etc etc. I don't think it's the computer.
It doesn't seem to happen when doing triggers on a map that aren't inside a library.
0
Has anyone else create a library in a mod? I've created around 10 triggers that really aren't very complex, but doing stuff in the library feels so slow.
For example if I disable a global variable I have to wait 10 seconds for it to actually do it.
Is there any way to speed up the editor? I noticed it was quicker doing this stuff in map but not in a library.
0
I have been playing around with tirgger libraries in my mod. You can set Map Initialization events, however it doesn't seem to run unless you link to a trigger in the library from your map.
My Tests: - Create a library in your mod and a trigger that contains a Map Iitialization event and some Debug Text - Create another trigger called "Do Nothing" and leave it empty
- Create a new map and add the mod as a dependency - The trigger library will show the mod triggers
Test 1: Run the map without any triggers in the map Result: The Library Trigger does not run
Test 2: Run the map, adding a trigger that contains an action to run the "Do Nothing" trigger Result: The Library Trigger runs, displays debug test
Test 3: Same as Test 2, but disabled the map trigger, or the run trigger action Result: The Library Trigger runs, displays debug test
So unless my editor is being quirky, it seems that you must link to a trigger in the library, even if it is disabled or does nothing.
Has anyone else found the same results, or know how it is supposed to work?
0
<Moved to the trigger forum, its more appropriate>
Mod please delete this one.
0
Hi all, when you select a race the appropriate default interface gets loaded, which looks different depending on your race.
Is it possible to change this after the game has started? For example if you have a custom AI can you let the player choose their race AFTER they are in the game, and then show the appropriate UI theme?
0
Awesome, thank you!
0
I was thinking that it would be useful if you could put triggers in the mod, then call any required triggers from the mod, without having to copy/paste the triggers to all of the maps you want it in.
However you don't seem to be able to add triggers to mods...
Is there a way around this? I vaguely remember something to do with the data editor and scripting things in there.
I just want some common interface/dialog elements that will be used for all maps that have the same mod depenency without having to copy the triggers to each of them. Is it possible?
0
Ah yeah just figured it out, thanks all :)
0
Does anyone know how/the best way to create weather effects like rain/snow etc. You used to be able to do this in Wc3 and it was pretty simple. So far I can only find FOG settings in Sc2 though.
0
@Yaos01: Go
Create your mod, then open up a map and goto File > Dependencies, and press "Add Other" and select your mod. The map will now use it.
I'm not sure if you can just select maps on battlenet and choose to use a specific mod, I don't thing it works like that, it seems the map needs to be built with the dependency.
0
Nice, it's much better just doing it via the data editor