# assign
## Syntax:
/assign **{array} {key} {value}**
## Use Case:
Sets a value at the specified key in an array. Supports cross-session and shared arrays via dotted notation.
## Arguments:
- **{array}**: The array name. Prefix with `shared.` for shared arrays or `SessionName.` for remote arrays.
- **{key}**: The row,col key (e.g., `1,2` or `3,0`).
- **{value}**: The value to store.
## Examples:
1. **/assign {mymap} {1,1} {wall}**
2. **/assign {mymap} {2,3} {door}**
3. **/assign {shared.grid} {1,1} {X}**
4. **/assign {Baldy.stats} {1,2} {100}**
## See Also:
array, arrays, unarray, @getarray, @getarrayrows, @getarraycols
