dcx:vr_logic_library
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| dcx:vr_logic_library [2016/05/18 18:03] – vic | dcx:vr_logic_library [2026/06/22 12:21] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 10: | Line 10: | ||
| * Allows you to make entries to a Logic Table and Change Global Libvar Table. | * Allows you to make entries to a Logic Table and Change Global Libvar Table. | ||
| + | |||
| + | The Logic Library is not meant to replace scripting your own events. Its meant to do some simple switches. If you want to make some complicated functionality your advised to create your own event library. | ||
| ===IF & SET statements=== | ===IF & SET statements=== | ||
| Line 25: | Line 27: | ||
| etc.. | etc.. | ||
| - | They can be combined using an @ symbol that acts as a logical AND. | + | They can be combined using an @ symbol that acts as a logical AND. For example a> |
| - | And IF or SET statement always has to have 3 parts. A value to the left, to the right and an operator ( <, >, = for IF and =, *, /, +, - for SET) in the middle. | + | And IF or SET statement always has to have 3 parts. A value to the left, to the right and an operator ( <, >, = for IF ....and....... |
| The value to the left or the right can be a number, a LookUp value or a Flag. | The value to the left or the right can be a number, a LookUp value or a Flag. | ||
| + | |||
| + | When using a SET statement you can also push a string into a Flag. Like for example yourcapitol=Moscow | ||
| ==Lookup values== | ==Lookup values== | ||
| Line 38: | Line 42: | ||
| [round] => Returns round number. First round returns 1, second returns 2, etc.. | [round] => Returns round number. First round returns 1, second returns 2, etc.. | ||
| + | |||
| + | [hexowner$x, | ||
| + | |||
| + | [random$min, | ||
| Lookup values are case INsensitive. | Lookup values are case INsensitive. | ||
| Line 48: | Line 56: | ||
| Flag names are case INsensitive. | Flag names are case INsensitive. | ||
| + | |||
| + | When a Flag is first used without being set its value will be 0. | ||
| ===Logic Table=== | ===Logic Table=== | ||
| Line 82: | Line 92: | ||
| * Officer Pool Table | * Officer Pool Table | ||
| + | |||
| + | * Reduce AP Table | ||
| + | |||
| + | * Change VP Table | ||
| If any IF logic is added to any of the rows to these tables these rows will only be executed if the IF logic returns true. | If any IF logic is added to any of the rows to these tables these rows will only be executed if the IF logic returns true. | ||
| Line 94: | Line 108: | ||
| Let me know if you need exact code on how to do this. | Let me know if you need exact code on how to do this. | ||
| + | |||
| + | ===Debug=== | ||
| + | |||
| + | You can enable the global libvar ' | ||
| + | |||
dcx/vr_logic_library.1463594623.txt.gz · Last modified: 2026/06/22 12:14 (external edit)
