Repository navigation
cmf_change_variable_map Effect
Conner Olsen edited this page Aug 19, 2026
·
3 revisions
Deprecated.
NOTE: Previously in vanilla add_to_variable_map did not overwrite an existing key, you needed to remove the key first, then add the new value. These were helpers that did this for you.
However this is no longer the case so you can now just call add_to_variable_map on the same key to overwrite its value, thus it's not recommended to use these deprecated effects.
All effects work in any scope. Each variant matches the corresponding vanilla variable map type.
cmf_change_variable_map = {
name = my_map
key = flag:my_key
value = 42
}
cmf_change_local_variable_map = {
name = my_map
key = flag:my_key
value = 42
}
cmf_change_global_variable_map = {
name = my_map
key = flag:my_key
value = 42
}
| Arg | Description |
|---|---|
name |
Variable map name |
key |
Map key (flag or scope) |
value |
New value (flag, scope, or literal) |