Edit
Edit is a global model declarative command used to change a model instance's attribute. If you wanted to change a ball's health, you would use this command.
MODEL-NAME- The identifier of the model instance you want to modify.ATTRIBUTE- The attribute you want to edit.VALUE- The new value to assign to the attribute.
ATTRIBUTE- The attribute you want to edit across all instances.MODEL-NAME- The identifier of the model instance you want to modify.VALUE- The new value to assign to the attribute.
ATTRIBUTE- The attribute you want to edit across all instances.VALUE- The new value to assign across all attributes.MODEL-NAME- The identifier of the model instance you want to modify.
Note
EDIT-FILTER requires a model to be specified.
MODEL- The model you want to use.ATTRIBUTE- The attribute whose value you want to search and replace.OLD-VALUE- The value to look for when filtering model instances.NEW-VALUE- The value to assign to all matching instances.
Operations
- ATTR - Declares a single attribute first, then edits its value across multiple model instances.
- MULTI - Defines a single attribute and value, then applies that value to all listed model instances.
- FILTER - Edits all model instances from one value to another.
Examples
Editing Ancient Greece's health without model declaration:
Editing Ancient Greece's health with model declaration:
Editing Ancient Greece's attack and health:
Editing Ancient Greece and Sparta's health:
Editing Ancient Greece, Sparta, and Northern Cyprus's rarity:
Editing Italy and Bulgaria's credits: