I have an Agent Cart created with 4 variables inside. Each variable is an integer and one of them is called red and has an initial value of 4.
When I use seize/release statement I want change the integer by -1.
In the action section ive tried "On release" saying (Cart)unit.red in hope of changing the variable from 4 to 3. It gives an error back. "red cannot be resolved or is not a field" along with an syntax error on ")", assignment operator expected in (Cart)unit.red. Writing (Cart)unit.variable doesnt work either. Another sub-question : Is it possible to change two of the variables in the class from the "on release" block? EDIT Classpicture Overview