Trigger Text
Apr 15 2008, 5:24 am
By: Brontobyte
Pages: 1 2 34 >
 

Apr 15 2008, 5:24 am Brontobyte Post #1



I was wondering. Is there anyway to input text into ScmDraft's text trigger editor for easier triggers?



None.

Apr 15 2008, 5:31 am Kenoli Post #2



What do you mean? Inputting text pretty much all you do with it.



None.

Apr 15 2008, 5:49 am Brontobyte Post #3



Quote from Kenoli
What do you mean? Inputting text pretty much all you do with it.

Doing everything. Inputing/removing/copying The whole 9 yards. :D



None.

Apr 15 2008, 5:56 am pneumatic Post #4



With Trigedit open, you just copy/cut/paste (by the Edit menu or right-click).

Just make sure you write your triggers with the right syntax.



None.

Apr 15 2008, 5:59 am rockz Post #5

ᴄʜᴇᴇsᴇ ɪᴛ!

SCMDraft will automatically recycle any strings that you put into it, if the string you put in matches a previous one. If it does not match a previous string, a new one will be created. That's pretty much it. You can copy/paste all you want in the editor, and the same rules apply. I'm not sure whether or not changing a string in trigedit will change that string, or create a brand new string. I wish it would create a brand new string, but somehow I doubt it.

Also, any "text" you put in a map is a string.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Apr 15 2008, 6:03 am Brontobyte Post #6



Trigger Syntax


So in this basic example I would need to have everything properly aligned for the trigger to work? Will it add the trigger to the Classic Trigger Editor? Is their a program to change one variable in the trigger to make multiple triggers that have single or double variables?



None.

Apr 15 2008, 6:19 am pneumatic Post #7



Alignment isn't really that important. You just need the right symbols and the right order. So for example, you could input the first trigger like this and it would be fine:

Trigger("All players"){Conditions:Always();Actions:Set Resources("Current Player", Set To, 50, ore);}

Also, in order to compile the triggers into the map, you need to click the check mark (debug). Merely saving won't work. Clicking the check mark will display a box showing "errors" which are not errors but merely the lines in which there have been changes. Clicking the check mark will compile the triggers into the Classic Trigger Editor, and also make the text triggers all nice and pretty and aligned.

And I'm not sure what you mean about changing variables.



None.

Apr 15 2008, 8:38 am NudeRaider Post #8

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

There are trigger duplicators that can output the correct syntax. But I usually use Notepad (Notepad++ for more complex stuff) to replace certain things because the trigedit does not have find or replace functions.

When you hit compile it does indeed show errors if you made a mistake. There's only 1 "error message" that does not indicate an error, but success: When there's a "Done!".

When you add comments outside triggers using the "//" ' s or use the custom alignment you asked about, there will be no error, but they will be deleted as soon as you leave the window. And yes, all triggers in classic editor are found in trigedit and vice-versa - they will never be different.




Apr 15 2008, 2:05 pm Brontobyte Post #9



Quote from name:razorsnail
And I'm not sure what you mean about changing variables.
What I mean is for a location trigger. ( Create/Kill ) If its the same trigger but it just needs to have a different location in place of another ( 1-2 instead of 2-2 ) I would have to copy and past the trigger ( Classic Edit ) then change the variables.

Quote from NudeRaider
But I usually use Notepad (Notepad++ for more complex stuff) to replace certain things because the trigedit does not have find or replace functions.
Where can I find this? How can it help me?



None.

Apr 15 2008, 3:35 pm NudeRaider Post #10

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

I don't know where to find Notepad++. Notepad is included in windows - the basic text editor.
Find and Replace helps you in many cases. For example when you change the Level 1 unit "Zergling" into "Hydralisk".




Apr 15 2008, 3:38 pm Brontobyte Post #11



Quote from NudeRaider
Find and Replace helps you in many cases.

This feature is in Notepad ( basic one with computer )?



None.

Apr 15 2008, 4:18 pm NudeRaider Post #12

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

*sigh* YES - damn it takes about 10s to open it and look for yourself....




Apr 15 2008, 4:22 pm Brontobyte Post #13



Quote from NudeRaider
*sigh* YES - damn it takes about 10s to open it and look for yourself....
Yeah, I'm lazy... :bleh:



None.

Apr 15 2008, 5:06 pm NudeRaider Post #14

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

btw. I use text triggers to find bugs when the trigger systems become bigger.
E.g. If you have a trigger running that shouldn't (yet) and it has only "exactly x deaths of 'dc counter 1' for P1" as condition you can find ALL actions that modify that dc and find out which trigger is responsible for the malfunction.




Apr 15 2008, 5:17 pm LoveLess Post #15

Let me show you how to hump without making love.

Tux used Notepad++ and a little text system that makes it really easy to organize a huge amount of texted triggers. You can find a detailed layout of all this on his site, Warbox.



None.

Apr 15 2008, 5:34 pm Wormer Post #16



Quote
Where can I find this? How can it help me?
You can always find newest Notepad++ version here: http://notepad-plus.sourceforge.net

Well, using basic SCMD text editor is not the best choise, because it is a bit glitchy. The tyeped text is displaying with another font and etc. Dont know about you but this is annoying me. Awnyway, this is just the plain text and it does not matter where to actually type it. You see, SCMD text triggers actually is a kind of language, like programming languages are but a little bit more specific. It is not like a *general* programming language, but a language designed to specify the sequence of triggers, but I am wandering already... I've recently started a project of more flexible and reliable triggering language. It will particularly allow you to have *variables* in some meaning. You can find more informatin on warbox forums: MacroTriggers Language

What about notepad++ it is very handy editor with lots of useful stuff like synthax highlighting, text minimization and lots more. Just copy-paste your triggers to the editor then make changes and arrange text in the way you like. After you've finished copy-paste back to SCMD and compile. Dont forget to save your *formatted* triggers in the text file. You can even use macro processors which deal with plain text and can transform text to text and then pass transformed text to the SCMD. You might want to use macro processors to copy your triggers or even make your own *variables*, though it is not very easy and reliable way to do...



Some.

Apr 15 2008, 5:45 pm Brontobyte Post #17



I think I will just stay with Notepad. If I can change all of something ( variable location ) in a given trigger and then input it into the trigg edit, I'm happy. If you haven't ever done something like this, it gets annoying to copy a trigger then to change them by hand.



None.

Apr 15 2008, 5:50 pm LoveLess Post #18

Let me show you how to hump without making love.

Quote from Brontobyte
I think I will just stay with Notepad. If I can change all of something ( variable location ) in a given trigger and then input it into the trigg edit, I'm happy. If you haven't ever done something like this, it gets annoying to copy a trigger then to change them by hand.
Your changing it by hand either way, but if you can become proficient using text-based triggering, you can easily do a few hundred triggers in about ten to twenty minutes, which is obviously a lot better.



None.

Apr 15 2008, 5:53 pm Wormer Post #19



Quote
f you haven't ever done something like this, it gets annoying to copy a trigger then to change them by hand.
Ye, it is really annoying to do in classic trigger editor but you still need some time to get used to new technic of triggering.

Quote
I think I will just stay with Notepad. If I can change all of something ( variable location ) in a given trigger and then input it into the trigg edit, I'm happy.
You're very right. Just start with something simple and totally transparent to you. With a little practice you soon understand that this becomes not convenient to you. Then you can switch for using more advanced stuff like notepad++, just for future have in mind that there exist more convenient tools than classic notepad.



Some.

Apr 15 2008, 5:56 pm Brontobyte Post #20



I tried the link and became lost and confused on where I could download it. :blush: It says that its free like 'free speech" and "free beer" what ever that means. I don't want to pay for it. :bleh:



None.

Options
Pages: 1 2 34 >
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:35 am]
Ultraviolet -- Vrael
Vrael shouted: NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
Gonna put deez sportballs in your mouth
[01:24 pm]
Vrael -- NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
[2024-4-30. : 5:08 pm]
Oh_Man -- https://youtu.be/lGxUOgfmUCQ
[2024-4-30. : 7:43 am]
NudeRaider -- Vrael
Vrael shouted: if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
Yeah I'm not a big fan of Westernhagen either, Fanta vier much better! But they didn't drop the lyrics that fit the situation. Farty: Ich bin wieder hier; nobody: in meinem Revier; Me: war nie wirklich weg
[2024-4-29. : 6:36 pm]
RIVE -- Nah, I'm still on Orange Box.
[2024-4-29. : 4:36 pm]
Oh_Man -- anyone play Outside the Box yet? it was a fun time
[2024-4-29. : 12:52 pm]
Vrael -- if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
[2024-4-29. : 11:17 am]
Zycorax -- :wob:
[2024-4-27. : 9:38 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: NudeRaider sing it brother
trust me, you don't wanna hear that. I defer that to the pros.
[2024-4-27. : 7:56 pm]
Ultraviolet -- NudeRaider
NudeRaider shouted: "War nie wirklich weg" 🎵
sing it brother
Please log in to shout.


Members Online: Ultraviolet, Roy