Rule type 3: System Button

Learn how to write rules, as well as share and ask questions about rules.
Locked
admin
Site Admin
Posts: 24
Joined: Thu Feb 24, 2022 3:47 pm

Rule type 3: System Button

Post by admin »

admin
Site Admin
Posts: 24
Joined: Thu Feb 24, 2022 3:47 pm

Re: Rule type 3: System Button

Post by admin »

List of available parameters
?//
Meaning: Annotation, all rule nodes have this parameter.
Valid format: STRING
Default value: NULL

?name:
Meaning: Node name, all rule nodes have this parameter.
Valid format: STRING
Default value: NULL


?search:
Meaning: The type of value to search for.
Valid format: One of the available values.
Available values:
------------------
id: The ID of each grid corresponding to the layout.
serial NUMBER: coordinate of「layout」if layout is specified, coordinate of「generate」otherwise. The coordinate value is a sequence number from top left to bottom right, coordinate values start from 1,「NUMBER」is the horizontal coordinate width.
------------------
Default value: id

?valueis:
Meaning: Value to search for. Arithmetic expression, the result is written to「#sys.number」.
Valid format: Full arithmetic expression that supports variable values.
Available variable values:
------------------
#var.[STRING]: Custom numeric variable. The default value is 0.
#var.score: Predefined numeric variable. Modifying the value of this variable will refresh the software window at the same time to display the score in real time.
#sys.number: Non-writable predefined numeric variable. Record the execution result of each rule node, concrete values depend on different rule node types.
#sys.time: Non-writable predefined time variable. Record how long the training has been running.
#sys.pointer: Non-writable predefined pointer variable. It has various functions, such as recording the node name of the previous node.
------------------
Default value: If the value of「?search:」is「id」, all layout grids within the game area are matched. If the value of「?search:」is「serial NUMBER」, all game area grids of the specified width are matched.

?light:
Meaning: Whether to highlight the corresponding grid on the screen. If there is an external sensor, control whether the corresponding button lights up.
Valid format: One of the available values.
Available values:
------------------
off: Unhighlight.
on: Highlight.
------------------
Default value: off

?text:
Meaning: The text content to display on the corresponding grid.
Valid format: One of the available values.
Available values:
------------------
#svar.[STRING]: Custom string variable. The default value is an empty string.
#svar.result: Predefined string variable. The variable value can be viewed by clicking the menu item「Detailed Results」after training.
------------------
Default value: Empty string
admin
Site Admin
Posts: 24
Joined: Thu Feb 24, 2022 3:47 pm

Re: Rule type 3: System Button

Post by admin »

Continuous updates
Locked