[skip all navigation]

MacroTriggers production thread, a language for specifying triggers

Pages: < 1 « 13 14 15
Creator: Wormer
Time: May 16 2008, 10:36 pm

Post #281     Wormer Jul 4 2010, 9:31 am

[Avatar]
offlinecontact
Rank: Regular
Ah yeah, thank you, you're right! I've installed my Notepad++ with full installation and haven't thought someone could do custom.

Added a note to the installation instructions at the head post.

Top

Post #282     NudeRaider Jul 4 2010, 9:48 am

[Avatar]
You're not old until the past seems more fun than the future.
offlinecontact
Rank: Veteran
Whenever a program allows me custom installation I use it. On my computer I'm a control freak.

(user posted image)
Devilesk: "AND OUT OF THE GOODNESS OF MY HEART [...]" - wait what??
Top

Post #283     ValiantKnife Jul 12 2011, 3:30 pm

[Avatar]
offlinecontact
Rank: Member
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

Keeps telling me that "Bring" is a type mismatch. Wtf?

Top

Post #284     Wormer Jul 12 2011, 4:55 pm

[Avatar]
offlinecontact
Rank: Regular
Quote from ValiantKnife
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

Keeps telling me that "Bring" is a type mismatch. Wtf?

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?

Top

Post #285     Alerek Jul 12 2011, 8:57 pm

[Avatar]
offlinecontact
Rank: Member
Quote from Wormer
[quote=name:ValiantKnife]


EDIT: BTW, anyone wants to see example maps with Macro Triggers sources submitted?
Sure why not? :) I haven't ever got around to using this, as it seems a bit complicated.

Top

Post #286     Wormer Jul 13 2011, 5:37 am

[Avatar]
offlinecontact
Rank: Regular
Quote from Alerek
I haven't ever got around to using this, as it seems a bit complicated.
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.

Top

Post #287     Alerek Jul 13 2011, 10:33 am

[Avatar]
offlinecontact
Rank: Member
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.

Top

Post #288     Wormer Jul 14 2011, 4:31 am

[Avatar]
offlinecontact
Rank: Regular
Quote from Alerek
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.
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
NPP_SAVE // save current file
java -jar "<full path to mtrigsc.jar>" "$(FULL_CURRENT_PATH)" "$(NAME_PART).trigger" "$(NAME_PART).property"
NPP_CLOSE "$(NAME_PART).property" // to make notepad++ reload file we close it first
NPP_OPEN "$(NAME_PART).property"
NPP_CLOSE "$(NAME_PART).trigger"
NPP_OPEN "$(NAME_PART).trigger"

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.

Top

Post #289     Alerek Jul 14 2011, 9:32 am

[Avatar]
offlinecontact
Rank: Member
Quote from Wormer
Quote from Alerek
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.
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
NPP_SAVE // save current file
java -jar "<full path to mtrigsc.jar>" "$(FULL_CURRENT_PATH)" "$(NAME_PART).trigger" "$(NAME_PART).property"
NPP_CLOSE "$(NAME_PART).property" // to make notepad++ reload file we close it first
NPP_OPEN "$(NAME_PART).property"
NPP_CLOSE "$(NAME_PART).trigger"
NPP_OPEN "$(NAME_PART).trigger"

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.
I've done all that ( was actually the first thing I did) Anyways I've had the syntax highlighting and such working, but it doesn't really do anything other than highlight the syntax. So I still can't seem to get any use out of this.

Top

Post #290     ValiantKnife Jul 17 2011, 11:06 pm

[Avatar]
offlinecontact
Rank: Member
Quote from Wormer
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.

Top

Pages: < 1 « 13 14 15
Report topic

0 members in this topic (italic members are currently writing a reply): None
+ guest(s)


[01:23 am]
Tuxlar -- *Portal, not Portal 2
[01:22 am]
Tuxlar -- is just watched someone beat portal 2 in 12 minutes... live
[01:04 am]
Tempz -- what did i do :Derp:?
[11:59 pm]
TiKels -- winning.
[10:46 pm]
Sacrieur -- lol
[10:46 pm]
Sacrieur -- oh tempz
[10:30 pm]
OlimarandLouie -- So shoutbox, hows it hangin'?
Please log in to shout.