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/17 12:49] – vic | dcx:vr_logic_library [2026/11/29 06:23] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====VR Logic Library==== | ||
| - | |||
| - | Current Version: 1 | ||
| - | |||
| - | First added to Community Project v0.90 | ||
| - | |||
| - | |||
| - | In a nutshell: | ||
| - | |||
| - | * Allow VR Basic Library and VR Immersion Library to use the FLAGs using IFs and SETs | ||
| - | |||
| - | * Contains the functions to interpret IFs and SETs | ||
| - | |||
| - | * Contains table and event to run a logic table | ||
| - | |||
| - | * Contains table and event to execute change to any libraries global libvars based on an IF statement. | ||
| - | |||
| - | ===IF & SET statements=== | ||
| - | |||
| - | These are very simple statements that consist of 3 parts. | ||
| - | |||
| - | For example: | ||
| - | |||
| - | a>b | ||
| - | |||
| - | a=c | ||
| - | |||
| - | a*4 | ||
| - | |||
| - | etc.. | ||
| - | |||
| - | They can be combined using an @ symbol that acts as a logical AND. | ||
| - | |||
| - | 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. | ||
| - | |||
| - | The value to the left or the right can be a number, a LookUp value or a Flag. | ||
| - | |||
| - | ==Lookup values== | ||
| - | |||
| - | Valid lookup codes at the moment are: | ||
| - | |||
| - | [turn] | ||
| - | |||
| - | [round] | ||
| - | |||
| - | ==Flags== | ||
| - | |||
| - | To put the value of a flag in an IF or SET statement just write the flag variable (not case insensitive). For example: points>4 or phase=2 | ||
| - | |||
| - | To err on the side of caution only use regular letters and numbers in your flag names. And never ever use [, | ||
| - | |||
dcx/vr_logic_library.1463489356.txt.gz · Last modified: (external edit)
