Writing triggers in trigedit is similar to writing them StarForge.
Here's an example of a trigger as it looks in trigedit:
CODE
Trigger("All players"){
Conditions:
Bring("Current Player", "Terran Civilian", "Anywhere", At least, 1);
Actions:
Kill Unit At Location("Current Player", "Terran Civilian", 1, "Anywhere");
Set Resources("Current Player", Add, 50, ore);
}
You've got to get the syntax just right, otherwise it won't work.
I don't like using trigedit though, I use the
Classic Trigedit plugin instead. Like Mp)MinigameEast said, it's similar to the trigger editor in StarEdit/X-tra Edit.