So what's the significance? If you edit your triggers in an external text editor and copy/paste into SCMD2 text triggers, you can have unlimited commenting directly in the trigger text. If you happened to still use the comment action, now you can use this and save strings and an action. The limitation is that the comments disappear after compiling into the map, which is why you must keep the original copy of the triggers in an external text file.
So, anything after a double forward slash (//) is considered a comment until a new line starts. You can either start a line with // and have a full line comment or put // to comment after a specific condition, action, whatever. Unfortunately, while C++ and PHP support multi-line comments (/* ...comment... */), note that Trigedit does not.
Example:
"Commented Triggers"
// Death Counter Reference maybe?
// Unit Reference?
// Switch Reference?
// All kinds of Reference?
//
// Obscure triggers I forget the particular syntax of?
// Modify Unit Resource Amount(#)("Players", Resource Amount(#), Unit Amount(#), "Location");
// Leaderboard Goal Points("Label", Score Type, Goal Amount(#)); <-- Let's face it, I won't remember this one offhand.
// Leaderboard Goal Resources("Label", Goal Amount(#), Resource Type); <-- Now I don't have to look at that other text file that lists all the triggers and syntax. Why is it not the help menu for Trigedit anyway?
// Modify Unit Shield Points("Players", "Unit Name", Shield%, Unit Amount(#), "Location");
Trigger("Player 8"){
Conditions:
Always();
Actions:
// This is a comment.
Wait(0);
Set Switch("Switch1", set);
Wait(0); // Also a comment.
Preserve Trigger();
}
//---- This thing used to seperate triggers? Actually an automatically generated comment! ----------//
Trigger("Player 7"){ // Let's put a comment here because we can.
Conditions: // and here too.
Switch("Switch1", set); // Here? Why not?
Actions:
Set Switch("Switch1", clear);
Wait(0);
Preserve Trigger();
// These were hyper triggers.
}
//-----------------------------------------------------------------//
// Unit Reference?
// Switch Reference?
// All kinds of Reference?
//
// Obscure triggers I forget the particular syntax of?
// Modify Unit Resource Amount(#)("Players", Resource Amount(#), Unit Amount(#), "Location");
// Leaderboard Goal Points("Label", Score Type, Goal Amount(#)); <-- Let's face it, I won't remember this one offhand.
// Leaderboard Goal Resources("Label", Goal Amount(#), Resource Type); <-- Now I don't have to look at that other text file that lists all the triggers and syntax. Why is it not the help menu for Trigedit anyway?
// Modify Unit Shield Points("Players", "Unit Name", Shield%, Unit Amount(#), "Location");
Trigger("Player 8"){
Conditions:
Always();
Actions:
// This is a comment.
Wait(0);
Set Switch("Switch1", set);
Wait(0); // Also a comment.
Preserve Trigger();
}
//---- This thing used to seperate triggers? Actually an automatically generated comment! ----------//
Trigger("Player 7"){ // Let's put a comment here because we can.
Conditions: // and here too.
Switch("Switch1", set); // Here? Why not?
Actions:
Set Switch("Switch1", clear);
Wait(0);
Preserve Trigger();
// These were hyper triggers.
}
//-----------------------------------------------------------------//
compiles into:
"Compiled Triggers (Comments Removed)"
Trigger("Player 8"){
Conditions:
Always();
Actions:
Wait(0);
Set Switch("Switch1", set);
Wait(0);
Preserve Trigger();
}
//-----------------------------------------------------------------//
Trigger("Player 7"){
Conditions:
Switch("Switch1", set);
Actions:
Set Switch("Switch1", clear);
Wait(0);
Preserve Trigger();
}
//-----------------------------------------------------------------//
Conditions:
Always();
Actions:
Wait(0);
Set Switch("Switch1", set);
Wait(0);
Preserve Trigger();
}
//-----------------------------------------------------------------//
Trigger("Player 7"){
Conditions:
Switch("Switch1", set);
Actions:
Set Switch("Switch1", clear);
Wait(0);
Preserve Trigger();
}
//-----------------------------------------------------------------//
I would keep the first set of triggers in a text file on my computer for editing and paste them into SCMD2 whenever I wanted them compiled into the map.
Happy Triggering!
https://www.collaborativefund.com/blog/how-this-all-happened/
https://thelastpsychiatrist.com/2012/11/hipsters_on_food_stamps.html
https://youtu.be/vyiXaCRwZTs
https://thelastpsychiatrist.com/2011/09/how_to_be_mean_to_your_kids.html
http://lab.cccb.org/en/renata-avila-the-internet-of-creation-disappeared-now-we-have-the-internet-of-surveillance-and-control/
https://thelastpsychiatrist.com/2012/11/hipsters_on_food_stamps.html
https://youtu.be/vyiXaCRwZTs
https://thelastpsychiatrist.com/2011/09/how_to_be_mean_to_your_kids.html
http://lab.cccb.org/en/renata-avila-the-internet-of-creation-disappeared-now-we-have-the-internet-of-surveillance-and-control/