From a00eb94e2fa091cfe79c231ae095ef02a94f57d4 Mon Sep 17 00:00:00 2001
From: Jonathan G Rennison Within an A2VM chunk, the NAME text (type T) field contains the name of the variable to map. The value of the language ID byte is ignored. Within an A2VM chunk, the FEAT binary (type B) field contains the Variational Action 2 feature ID. This is 1 byte. In the case where a parent/related scope is used to access a different feature (e.g. the town feature as the parent scope for objects),
+ the feature ID used here is that associated with the scope where the variable is used.
Sections
diff --git a/docs/newgrf-additions.html b/docs/newgrf-additions.html
index 5729edf4a1..eaf354397f 100644
--- a/docs/newgrf-additions.html
+++ b/docs/newgrf-additions.html
@@ -30,6 +30,7 @@
@@ -671,6 +672,11 @@
Action 0 Feature ID: C "A2VM" -> B "FEAT"
+ To map a town variable, the feature ID should be the result of mapping the "town" feature name using the feature mapping mechanism,
+ this is not necessarily the feature ID used directly in the variational action 2.
Within an A2VM chunk, the RSFT binary (type B) field contains the Variational Action 2 varadjust shift-num value to look for. This is 1 byte.
The shift-num value must be < 32 (0x20).
@@ -974,6 +980,7 @@