GPDL $LOGIC_BLOCK_VALUE

DungeonCraft Help Home

$LOGIC_BLOCK_VALUE(ValueID)

ValueID is the name of the LOGIC_BLOCK value to be recalled.

Discussion:

The LOGIC_BLOCK event has an option labeled "Record Values At Runtime". If this option is selected, then when the LOGIC_BLOCK event is processed during execution of the game, all 12 labeled values are saved. These values can be recalled at any later time by GPDL scripts, using the $LOGIC_BLOCK_VALUE function. The first character of the ValueID parameter is used to determine which of the 12 values is desired. It should be an upper-case letter "A" through "L".

The values in the LOGIC_BLOCK are saved after all 12 values have been computed but before the actions are processed. So what?, you ask. So this: If you reference value "A" during computation of value "B", you will get the result from the PREVIOUS execution of LOGIC_BLOCK, not the current one. This can be either a feature or a bug, depending on what you are trying to do. And....if you want to use any of the recorded values in the Actions (Using GPDL Function $LOGIC_BLOCK_VALUE) then you must set the option "Record Values at Runtime" or you will get the values from any previously executed LOGIC_BLOCK event (And that might be useful!!!).