Code: Select all
"fun":[
{
"condition":{"type":"value","id":"x-y","min":0,"max":0},
"actions":[{"type":"remove"}]
}
]
(not added yet) this code will remove the building if it's placed so that x==y
Lobby Divinus:
you use "id" to define a value to express
Lobby Divinus:
Code: Select all
"id":"x+y%2"
Lobby Divinus:
% is the modulo operation
Lobby Divinus:
expressions are evaluated from left to right