-
Notifications
You must be signed in to change notification settings - Fork 2
Trigger Duplicator & Trigger Slicer
This tool duplicates the triggers while changing some variables in it.
Can be found in General tab > Trigger Duplicator.
Just remember to set the Count. If Count is 0 it will not output anything.
For example, the input
COUNT:
2
TRIGGER:
Trigger("Player 1"){
Conditions:
Always();
Actions:
Set Deaths("Player 1", "[$array]", Set To, [7;2]);
}
//-----------------------------------------------------------------//
ARRAYS:
array:
Terran Marine
Terran Firebat
converts to output
Trigger("Player 1"){
Conditions:
Always();
Actions:
Set Deaths("Player 1", "Terran Marine", Set To, 7);
}
//-----------------------------------------------------------------//
Trigger("Player 1"){
Conditions:
Always();
Actions:
Set Deaths("Player 1", "Terran Firebat", Set To, 9);
}
//-----------------------------------------------------------------//
The variables are in these forms:
[1;2]
or [1]
: linear increments. [a;b]
yields a, a+b, a+2b, ... etc, while [a]
is short for [a;1]
.
Use negative like [5;-1]
for decremental variables.
[$array]
: arrays. Put array items in a list inside the text area to the right.
[^]
: binary countoffs (powers of 2). Goes from high power to low power, like 65536, 32768, ..., 2, 1.
[^2;3]
: exponential increments. [^a;b]
yields a, ab, ab^2, ab^3 ... etc. [^a]
is short for [^a;2]
.
[#1]
: switch binaries. For example [#1]
is Not Set, Set, Not Set, Set, ...
while [#2]
is Not Set, Not Set, Set, Set, ...
.
[#]
will automatically assign [#1]
. [#2]
etc in order to each occurrence.
[=code]
: custom code.
[%=code%]
: another form of custom code. Use when the code includes [] and breaks the first form.
[=EUD(memory, length, object, value)]
generates an EUD trigger.
It slices a long list of trigger actions into blocks of 64, keeping the comment and Preserve Trigger.
Can be found in General tab > Trigger Slicer.