Update Intratick Scheduling authored by Lxlp's avatar Lxlp
...@@ -9,7 +9,7 @@ flowchart LR ...@@ -9,7 +9,7 @@ flowchart LR
A(Mechanic 1) --> B(Mechanic 2) A(Mechanic 1) --> B(Mechanic 2)
B --> C[Delay 0] B --> C[Delay 0]
B ---> D(Other mechanics this tick) B ---> D(Other mechanics this tick)
C ----> F(Mechanic 4) C ----> F(Mechanic 3)
``` ```
### Example ### Example
...@@ -28,7 +28,9 @@ Skill2: ...@@ -28,7 +28,9 @@ Skill2:
Skills: Skills:
- setvariable{var=test;val=1} - setvariable{var=test;val=1}
``` ```
> Executing the ExampleMechanic will output
>> - `UNDEFINED` if no delay 0 is used
>> - `1` otherwise
## Multiple Delays ## Multiple Delays
This behavior works with multiple delays too: each time a new `delay 0` is executed, the subsequent mechanics are pushed a the back of the execution line *again* This behavior works with multiple delays too: each time a new `delay 0` is executed, the subsequent mechanics are pushed a the back of the execution line *again*
...@@ -38,10 +40,10 @@ flowchart LR ...@@ -38,10 +40,10 @@ flowchart LR
A(Mechanic 1) --> B(Mechanic 2) A(Mechanic 1) --> B(Mechanic 2)
B --> C[Delay 0] B --> C[Delay 0]
B ---> D(Other mechanics this tick) B ---> D(Other mechanics this tick)
C ----> F(Mechanic 4) C ----> F(Mechanic 3)
F --> G(Delay 0) F --> G(Delay 0)
F ---> H(Other mechanics this tick) F ---> H(Other mechanics this tick)
G ----> L(Mechanic 6) G ----> L(Mechanic 4)
``` ```
...@@ -68,6 +70,10 @@ SkillMessage: ...@@ -68,6 +70,10 @@ SkillMessage:
- delay 0 - delay 0
- message{m="<skill.var.test>"} - message{m="<skill.var.test>"}
``` ```
> Executing the ExampleMechanic will output
>> - `UNDEFINED` if no `delay 0` is used inside of SkillMessage
>> - `1` if only one delay 0 is used inside of SkillMessage
>> - `2` if all delays are used inside of SkillMessage
<!-- LINKS --> <!-- LINKS -->
... ...
......