This chapter documents Tcl/Tk commands specific to Ps-i 2.4.
Example:
apply_effect "landscape" "(agent_x>10) and (rand<1000)" { "immutable" "false" "inactive" "false" "influence" "1" "cache" "repertoire(5,set(5,4,13,11,0,1) union random_subset(1, set(3,15) ))" -1 "basic" }
The above command will affect every tenth agent with X coordinate exceeding 10 in the field called "landscape". The operation performed on each agent will consist of setting immutable and inactive attributes to false, adjust influence to 1, set cache to the result of evaluation of the expression specified in the command and change its agentclass to "basic".
See also About Ps-i 2.4.