Staredit Network > Forums > SC1 Mapping Tools > Topic: MacroTriggers production thread
MacroTriggers production thread
May 16 2008, 10:36 pm
By: Wormer
Pages: < 1 « 5 6 7 8 915 >
 

Aug 20 2009, 2:31 am Morphling Post #121



That is a bug in everyones scmdraft. If you delete all of the text triggers and compile, it won't save.



None.

Aug 20 2009, 3:16 am NothingZ Post #122



Quote from Morphling
That is a bug in everyones scmdraft. If you delete all of the text triggers and compile, it won't save.

Okay, now I used an older version of SCMDraft. It was good until I stumbled upon a wall, a wall which blocks you from adding anymore triggers to the map.
Is there anyway to fix this?



None.

Aug 20 2009, 4:49 am Wormer Post #123



SCMD uses the error dialog box to tell people information about where it starts to compile and where it ends. If you only have these two errors (000: Started, 999: Finished), everything is alright.

Quote from NothingZ
I believe that won't affect it (the spacing part) because after compiling, the switch and the number has spaces in them.
This is because triggers were not actually compiled. Moreover SCMD text trigedit refreshes the text only after reload. Specifying wrong switches name is an error, this is like specifying an erroneous unit name or location.

Quote from NothingZ
Okay, now I used an older version of SCMDraft. It was good until I stumbled upon a wall, a wall which blocks you from adding anymore triggers to the map.
Ummm, how is that? Explain more, please. What happens? You should be fine with the latest version.

Once more, MacroTriggers does not check switches, locations, units and etc. names for correctness. If something is wrong SCMD trigedit tells it, you modify the source .mtrigger file and recompile.



Some.

Aug 20 2009, 5:02 am NothingZ Post #124



Hm.. I believe I got everything working now.
This may be the last question,
Can MacroTriggers turn text triggers from SCMDraft to a Mtrigger? (Using Notepad++ ofc).

Other than that, I really appreciate for all the help you guys gave me :).



None.

Aug 20 2009, 2:53 pm Wormer Post #125



Quote from NothingZ
Can MacroTriggers turn text triggers from SCMDraft to a Mtrigger? (Using Notepad++ ofc).
No, MT can't.

Quote from NothingZ
Other than that, I really appreciate for all the help you guys gave me :) .
No problem, NothingZ. Always glad to help!



Some.

Aug 21 2009, 12:24 am The Starport Post #126



Code
TRIGGER
OWNERS: @AllPlayers
CONDITIONS:
    Always()
ACTIONS:
    PreserveTrigger()
ENDT


Gives me this:
Code
line 2:8: type mismatch

?

I can work around it (maybe) by specifying all 8 players, but...



None.

Aug 21 2009, 5:18 am Wormer Post #127



Awww, yes thanks Tuxlar! I think I new this though... :rolleyes:
Sometimes I'm too lazy to fix something that is not critical :P



Some.

Aug 21 2009, 6:28 am The Starport Post #128



Heh.

I'm trying to remember: Was there a major difference between All Players and Player 1-8 as owner of triggers? It's been too long...



None.

Aug 21 2009, 10:02 am Wormer Post #129



Quote from name:Tuxedo-Templar
I'm trying to remember: Was there a major difference between All Players and Player 1-8 as owner of triggers? It's been too long...
No, there was not any difference in triggers behavior during the execution.
It is considered to be essentially the same.
That is why I am so sluggish about fixing this.



Some.

Aug 21 2009, 10:11 am The Starport Post #130



Hmm. I thought there was a difference in the order that they're executed. Like where P1-8 goes before the All Players set, or something to that effect.



Real reason I'm asking is I'm thinking of making a quick script using my Trigedit parser to translate into MacroTriggers, and I'm hoping any conversions of All Players triggers to P1,P2,P3...P8 won't present any problems.

Edit: Get on gmail. :P



None.

Aug 21 2009, 10:15 am Wormer Post #131



Quote from name:Tuxedo-Templar
Hmm. I thought there was a difference in the order that their executed. Like where P1-8 goes before the All Players set, or something to that effect.
There is no difference. I assure you.

EDIT: Already wating for ya! :bleh:



Some.

Aug 21 2009, 2:17 pm Kaias Post #132



All Players includes players 1 through 12, but since P9-12 can't hold triggers it is the same as selecting P1-8 individually. Triggers only run player by player from Player 1 to Player 8; any triggers owned by a group like 'Force 1' are just annexed into the applicable players' sets.



None.

Aug 21 2009, 9:00 pm The Starport Post #133



Edit: Bah why'm I being so lazy I could (re)test this in 2 minutes myself. :P

Oh well thx anyway. In a week or so I'll have the parser ready. I think if people could easily import their Trigedit triggers to MacroTriggers, it would help current authors switch over. Not to sound religious, but I see no reason anyone shouldn't be using this tool, really.



None.

Aug 23 2009, 8:43 am The Starport Post #134



Now for a real tutorial! :D


http://www.youtube.com/watch?v=gi9b3EbDidA
(still processing...)



None.

Aug 23 2009, 9:30 am Wormer Post #135



Already processed! :D
TUX THIS IS GREAT! Head post updated!



Some.

Aug 23 2009, 9:43 am The Starport Post #136



Yay.

I was thinking of making a part 3 later to explain expressions, arrays, comments, the //> and //< groups, and anything else I (or you?) can think of.

I think for now, though, I'll get back to work on my... secret project, instead. :cool:



None.

Aug 23 2009, 3:38 pm Kaias Post #137



Very nice, these tutorials are quite helpful.

Auto-complete doesn't seem to work for me though
Edit: Nevermind, got it.



None.

Aug 23 2009, 8:28 pm The Starport Post #138



Glad you liked it.

Post has been edited 1 time(s), last time on Aug 23 2009, 8:35 pm by Tuxedo-Templar.



None.

Aug 23 2009, 9:23 pm NothingZ Post #139



Okay, now I am wondering how you could get all the possible outcomes from switches..

Let's say 6 Switches are randomized. There are a total of 128 possible outcomes, right?
So I tried doing this (for the first switch to test):

ARRAY lol = { "Clear", "Set" }

FOR i = 0 TO 1 BY +1 DO
Switch("Switch1", @S(lol[i]))

I also tried this:

FOR i = 0 TO 1 BY +1 DO
Switch("Switch1", @S(i))

Unfortunately, no matter how smart I thought I was going to be, none of these worked ( lol.. )

Is there a way to give me a list of all of the possible outcomes when 6 switches are randomized?



None.

Aug 23 2009, 9:59 pm Wormer Post #140



NothingZ, so far I see only one switch in your examples...
Quote from NothingZ
Is there a way to give me a list of all of the possible outcomes when 6 switches are randomized?
There is a neat and handy way. But I'm too tired and haven't got time now to explain.
I can give you hints (key words) yet: modulo arithmetic (operations / and %), loop, binary countoff, logical expressions. Also keep in mind you can use @ST(@True) as analogue to @Set and @ST(@False) as analogue to @Clear. The solution includes somthing like Switch(SwitchesArray[n], @ST((n / 2^n)%2 == 1).

NOEDIT :P

Post has been edited 3 time(s), last time on Aug 24 2009, 8:01 am by Wormer.



Some.

Options
Pages: < 1 « 5 6 7 8 915 >
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[2024-5-06. : 5:02 am]
Oh_Man -- whereas just "press X to get 50 health back" is pretty mindless
[2024-5-06. : 5:02 am]
Oh_Man -- because it adds anotherr level of player decision-making where u dont wanna walk too far away from the medic or u lose healing value
[2024-5-06. : 5:01 am]
Oh_Man -- initially I thought it was weird why is he still using the basic pre-EUD medic healing system, but it's actually genius
[2024-5-06. : 3:04 am]
Ultraviolet -- Vrael
Vrael shouted: I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
With the modern EUD editors, I don't think they're calculating nearly as many offsets as you might imagine. Still some fancy ass work that I'm sure took a ton of effort
[2024-5-06. : 12:51 am]
Oh_Man -- definitely EUD
[2024-5-05. : 9:35 pm]
Vrael -- I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
[2024-5-05. : 9:35 pm]
Vrael -- that is insane
[2024-5-05. : 9:35 pm]
Vrael -- damn is that all EUD effects?
[2024-5-04. : 10:53 pm]
Oh_Man -- https://youtu.be/MHOZptE-_-c are yall seeing this map? it's insane
[2024-5-04. : 1:05 am]
Vrael -- I won't stand for people going around saying things like im not a total madman
Please log in to shout.


Members Online: C(a)HeK, Roy