logic_scripting
Differences
This shows you the differences between two versions of the page.
| logic_scripting [2021/11/11 10:00] – created vic | logic_scripting [2021/11/11 10:12] (current) – vic | ||
|---|---|---|---|
| Line 10: | Line 10: | ||
| ===Syntax=== | ===Syntax=== | ||
| {{: | {{: | ||
| + | |||
| + | You can use ';' | ||
| + | |||
| + | Also note that when using multi-line in 'IF Logic' you can use the initial lines to give some SET Logic instructions. For example: ' | ||
| ===Variables (aka Flag Instructions)=== | ===Variables (aka Flag Instructions)=== | ||
| Line 16: | Line 20: | ||
| You can read a variable in IF Logic like this ' | You can read a variable in IF Logic like this ' | ||
| - | ===Syntax examples=== | + | ===Variables hardcoded=== |
| + | TURN = Returns 0 for first player, and 1 for second player. | ||
| + | |||
| + | ROUND = Returns round number | ||
| + | |||
| + | ===Notable CHKs=== | ||
| + | |||
| + | ==Chk(19, | ||
| + | Returns 0 if human player. | ||
| + | |||
| + | Returns 1 if AI. | ||
| + | |||
| + | ==Chk(150, | ||
| + | Returns 0 if regular difficulty | ||
| + | |||
| + | Returns 15 if challenging difficulty | ||
| + | |||
| + | Returns 25 if hard difficulty | ||
| + | |||
| + | Returns 40 if very hard difficulty | ||
| + | |||
| + | Returns 55 if super hard difficulty | ||
| + | |||
logic_scripting.1636624811.txt.gz · Last modified: by vic
