Methods
(inner) compare(c1, op, c2, truei, falsei)
- Description:
- Compares a counter with another
- Source:
Parameters:
Name | Type | Description |
---|---|---|
c1 |
counter | First counter to compare |
op |
compare_op | Comparison operator to use (EQ, NOT_EQ, GREATER, LESS, GREATER_OR_EQ, LESS_OR_EQ) |
c2 |
counter | Second counter to compare |
truei |
group | Group to call if comparison is true |
falsei |
group | Group to call if comparison is false |
(inner) item_comp(item_1, item_2, type1, type2, compare_op, trueiopt, falseiopt, mod1opt, mod2opt, tolopt, op_1opt, op_2opt, absneg_1opt, absneg_2opt, rfc1opt, rfc2opt) → {object}
- Description:
- Implementation of Item Comp trigger
- Source:
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
item_1 |
item | Item ID 1 (can be retrieved from your_counter.item) | ||
item_2 |
item | Item ID 2 (can be retrieved from your_counter.item) | ||
type1 |
item_type | Type of item ID 1 (ITEM, TIMER, POINTS, TIME, ATTEMPT) | ||
type2 |
item_type | Type of item ID 2 (ITEM, TIMER, POINTS, TIME, ATTEMPT) | ||
compare_op |
number | Operator to compare item ID 1 and 2 by (EQ, GREATER, GREATER_OR_EQ, LESS, LESS_OR_EQ, NOT_EQ) | ||
truei |
group |
<optional> |
group(0)
|
Group ID to call if comparison is true |
falsei |
group |
<optional> |
group(0)
|
Group ID to call if comparison is false |
mod1 |
number |
<optional> |
1
|
How much to modify item ID 1 by (influenced by op1) |
mod2 |
number |
<optional> |
1
|
How much to modify item ID 2 by (influenced by op2) |
tol |
number |
<optional> |
0
|
How much to offset the result by |
op_1 |
number |
<optional> |
MUL
|
Operator 1 for mod1 (ADD, SUB, MUL, DIV) |
op_2 |
number |
<optional> |
MUL
|
Operator 2 for mod2 (ADD, SUB, MUL, DIV) |
absneg_1 |
number |
<optional> |
NONE
|
Whether to get absolute/negative value of first side of operation (ABS, NEG) |
absneg_2 |
number |
<optional> |
NONE
|
Whether to get absolute/negative value of second side of operation (ABS, NEG) |
rfc1 |
number |
<optional> |
NONE
|
Whether to round/floor/ceil first side of operation (RND, FLR, CEI) |
rfc2 |
number |
<optional> |
NONE
|
Whether to round/floor/ceil second side of operation (RND, FLR, CEI) |
Returns:
Resulting object
- Type
- object
(inner) item_edit(item1, item2, target, type1opt, type2opt, target_typeopt, assign_opopt, op1opt, op2opt, modopt, absn1opt, absn2opt, rfc1opt, rfc2opt) → {object}
- Description:
- Implementation of Item Edit trigger
- Source:
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
item1 |
item | Item ID 1 (can be retrieved from your_counter.item) | ||
item2 |
item | Item ID 2 (can be retrieved from your_counter.item) | ||
target |
item | Target item ID (can be retrieved from your_counter.item) | ||
type1 |
item_type |
<optional> |
NONE
|
Type of item ID 1 (ITEM, TIMER, POINTS, TIME, ATTEMPT) |
type2 |
item_type |
<optional> |
NONE
|
Type of item ID 2 (ITEM, TIMER, POINTS, TIME, ATTEMPT) |
target_type |
item_type |
<optional> |
NONE
|
Type of target item ID (ITEM, TIMER, POINTS, TIME, ATTEMPT) |
assign_op |
number |
<optional> |
EQ
|
Assignment operator (EQ, ADD, SUB, MUL, DIV) |
op1 |
number |
<optional> |
ADD
|
Operator 1 (ADD, SUB, MUL, DIV) |
op2 |
number |
<optional> |
MUL
|
Operator 2 (ADD, SUB, MUL, DIV) |
mod |
number |
<optional> |
1
|
How much to modify the entire operation by (influenced by op2) |
absn1 |
number |
<optional> |
NONE
|
Whether to get absolute/negative value of first side of operation (ABS, NEG) |
absn2 |
number |
<optional> |
NONE
|
Whether to get absolute/negative value of second side of operation (ABS, NEG) |
rfc1 |
number |
<optional> |
NONE
|
Whether to round/floor/ceil first side of operation (RND, FLR, CEI) |
rfc2 |
number |
<optional> |
NONE
|
Whether to round/floor/ceil second side of operation (RND, FLR, CEI) |
Returns:
Resulting object
- Type
- object
(inner) timer(start_seconds, end_seconds, target_id, backwards, seconds_only, stop, time_mod, ignore_timewarp, no_override) → {timer}
- Description:
- Implementation of timers
- Source:
Parameters:
Name | Type | Default | Description |
---|---|---|---|
start_seconds |
number | Start seconds | |
end_seconds |
number |
0
|
End seconds |
target_id |
group | ID to call when timer stops | |
backwards |
boolean |
false
|
Whether to go backwards |
seconds_only |
boolean |
false
|
Whether to only count seconds |
stop |
boolean |
true
|
Whether to stop the timer at end_seconds |
time_mod |
number |
1
|
How much to modify the timer by w/ multiplication (cannot be used if backwards is true) |
ignore_timewarp |
boolean |
false
|
Whether to ignore timewarp |
no_override |
boolean |
false
|
Whether to ignore when the timer is overridden by another |
Returns:
- Type
- timer