MacroTriggers production thread, a language for specifying triggers
Post #282
NudeRaider
Jul 4 2010, 9:48 am
Post #283 ValiantKnife Jul 12 2011, 3:30 pm
Post #284
Wormer
Jul 12 2011, 4:55 pm
|
The following works fine: TRIGGER OWNERS: @P(8) CONDITIONS: Bring(@P(8), @Exactly, 1, @U("Terran Marine"), @L("Location 106")) Bring(@P(8), @Exactly, 1, @U("Zerg Zergling"), @L("Location 109")) Bring(@P(8), @Exactly, 1, @U("Terran SCV"), @L("Location 2")) ACTIONS: RemoveUnitsAt(1, @U("Terran SCV"), @P(8), @L("Location 2")) CreateUnit(1, @U("Terran Marine"), @L("Location 0"), @P(8)) PreserveTrigger() ENDT EDIT: BTW, anyone wants to see example maps with Macro Triggers sources submitted? |
Post #286
Wormer
Jul 13 2011, 5:37 am
|
The most complicated part is the setup process: to teach Notepad++ make SCMDraft 2 text triggers files from source Macro Triggers files. After that is done, it's only the matter of several keystrokes. For already 3 years I am opening my Notepad++, taking my previous map triggers as a template and starting a new work. For example, it took me 3 actions to figure out the mistake in the previous post: open Notepad++, copy-paste trigger and press F6. However, I agree that you don't need a tool like this if you're making a simplistic map.
The following is the real example of using Macro Triggers: Galaxia.mtrigger, Galaxia vBETA01e3.scx. This is one of my previous works. It sucks as a map because it has some balance issues, but it is my best example of triggers organization. Triggers themselves are very complex and I don't advise you to examine them, but have a glance on the organizational part: definitions help track switches, death counters and other objects; triggers are put into groups with specified dependencies between them. The only example I know which is comparable with the complexity of the underlying trigger systems is Astrogears. |
Post #287 Alerek Jul 13 2011, 10:33 am
|
Well, It might just be me, But I cannot follow your tutorial at all for setting it up with N++. I can follow it to the point of setting up the nppExec plugin, and setting that up. But making N++ actually do anything is completley lost to me as the tutorial doesn't help me at all as it doesn't even continue after that, just DL file, and nothing else.
I honestly just have no clue what to do with any of these files. I mean I'd love to use this as it does seem helpful, but the tutorial on the OP does not help me do anything lol. Edit: Watched the video tutorial, but it was going fine until the end, and then it just got 1000% more complicated, where I just went why is this so much trouble just to make some triggers? I have yet to see any advantage to going through all this, and learning how to type triggers in some new format . This post was edited 2 times, last edit by Alerek: Jul 13 2011, 10:52 am. ![]() ![]() ![]() ![]() ![]() ![]() |
Post #288
Wormer
Jul 14 2011, 4:31 am
|
Since you've set up the nppExec plugin you need to open N++, press F6 and copy the following script:
cd "$(CURRENT_DIRECTORY)" // set up current directory After that you need to change the highlighted part to the full path to the mtrigsc.jar from the archive and save the script. When this done, you're ready to open a file containing Macro Triggers sources and press Ctrl+F6 to get your SCMD 2 triggers. |
Post #290 ValiantKnife Jul 17 2011, 11:06 pm
|
EDIT: BTW, anyone wants to see example maps with Macro Triggers sources submitted? Very much so. That would help a lot. Edit: Anything with IF ELSE stuff would be especially beneficial. I never figured that out. I don't have any coding background. Even so, I've been able to figure some stuff out just by pondering over the small example mtrig file. ![]() ![]() ![]() ![]() ![]() ![]() |
0 members in this topic (italic members are currently writing a reply): None
+ guest(s)
+ guest(s)
[01:23 am]
[01:22 am]
[01:04 am]
[11:59 pm]
[10:46 pm]
[10:46 pm]
[10:30 pm]



"
I haven't ever got around to using this, as it seems a bit complicated.
. ![[close]](/images/up.gif)