-
Notifications
You must be signed in to change notification settings - Fork 11
Built in Functions
Jamiras edited this page Jun 26, 2020
·
6 revisions
Defines the clause "1==1". It is typically only used to move a PauseIf/ResetIf to an alt group:
byte(0x1234) == 8 && (always_true() || (never(byte(0x2345) == 12) && unless(byte(0x3456) == 6)))
This allows the achievement (core group) to trigger while the never
is paused by the unless
.
Defines the clause "0==1". It is typically used for constructing alt chains, as a variable must have an initial value:
trigger = always_false()
for test in tests
trigger = trigger || test
achievement(..., trigger = trigger)
If more than two alt groups exist, the always_false
group will be removed from the final achievement code
Builds a string by inserting parameters
into placeholders in the format_string
.
For example:
stage_names = {
1: "Downtown"
}
stage_1_label = format("Stage {0} - {1}", 1, stage_names[1])
Would set stage_1_label
to "Stage 1 - Downtown"
Returns the number of elements in a dictionary or array, or the number of characters in a string.