Swaps two elements in a space-separated array stored in a KVP attribute in the current proc on the object or mob with the currently executing MUDL script. The string is the name of the attribute. Thus if the following code executed:
set_attr('array','ant bob cat dog ear'), swap('array',2,3)then
get_attr('array')would return
'ant cat bob dog ear'