Show / Hide Table of Contents

Group ControlFlowCommands

Contains controw flow Pose Mod commands that work on any application.

Assembly: kgcorlib.dll

Commands

End()

Ends the cutscene.

Declaration
public void End()

If(Boolean)

Executes the then branch if condition is true; executes the else branch if condition is false.

Declaration
public void If(bool condition)
Remarks

You can use the AND and OR modifiers in the condition. If you use them, all conditions must be parenthesized.

Conditions are evaluated from left to right with no grouping. Therefore, ({A})AND({B})OR({C}) will be processed as:

  • ({A} and {B}) or ({C}): A and B are both true, or C is true; not
  • ({A}) and ({B} or {C}): A is true, and either B and C are true. Pay attention to the commas.
Examples
[MyVariable]:10

// If `MyVariable` is higher than or equal to `0` and not equal to `10`, or is equal to `-1`...
if:(Larger:MyVariable:0)AND(NotEqual:MyVariable:10)OR(Equal:MyVariable:-1)
then:Jmp:Label1 // If true, jump to `Label1`.
else:End // If false, end the cutscene.

// [...]

Jmp(String)

Jumps to the label named "labelName".

Declaration
public void Jmp(string labelName)
Examples
Jmp:MyLabel
[MyVariable]:0 // Skipped.
Add:MyVariable:10 // Skipped.
Label:MyLabel
// `MyVariable` is undefined.

Label(String)

Defines a label named "labelName".

Declaration
public void Label(string labelName)
Examples
// Locks the player's position to Vector3(0, 0, 0).
Label:InfiniteLoop
RefPosition:Player:0, 0, 0
Jmp:InfiniteLoop

Lbl(String)

Alias for Label:{labelName}.

Declaration
public void Lbl(string labelName)

Skip()

Skips the next command.

Declaration
public void Skip()
Examples
[MyVariable]:0
Skip
Add:MyVariable:1 // This command will be skipped.
// `MyVariable` now has a value of `0`.
Back to top Pose Mod © kgftbz, 2016–2021. Documentation © Ramobo, 2021. Documentation generated with DocFx and hosted by GitLab Pages.