Put this code into the OnModify script of the Current Tool DRO
local inst = mc.mcGetInstance()
local toolNum = select(1,...) --Get the number entered into the DRO
local rc = mc.mcCntlSetOffsetIndex(inst, tonumber(toolNum)) --Set the offset index
if (rc ~= mc.MERROR_NOERROR) then
mc.mcCntlSetLastError(inst, "Error Setting Offset Index")
end
return toolNum --Return the toolNum so that it is displayed in the DRO