I stumbled upon Peter Jamtgaard's reactor a long time ago, and have tailored it for specific variables I find CAD changing on me, works great. However, in 2018 my dynmode portion stopped working. I tested and confirmed it still works in 2016 and 2017, but in 2018 this is what I get on the command line.

Code:
Enter new value for DYNMODE <3>: 0
; error: AutoCAD variable setting rejected: "DYNMODE" 3
I checked to make sure that Dynmode numbers hadn't changed in 2018, but it looks the same. I even tried changing my reactor to keep it set at 1 instead, but I get the same thing. Dynmode started at the bottom of my reactor as well, and I bumped it up to see if

Full reactor below

Code:
(vl-load-com)
(setq VTFRXN (vlr-editor-reactor nil '((:VLR-sysVarChanged . VTF))))




(defun VTF (CALL CALLBACK)
  (if (and(= (strcase (car CALLBACK)) (setq str "DYNMODE"))(not (eq (getvar str) 1)))
    (progn
      (setvar "DYNMODE" 1)
    )
  )
  (if (and(= (strcase (car CALLBACK)) (setq str "SAVETIME"))(not (eq (getvar str) 30)))
    (progn
      (setvar "SAVETIME" 30)
    )
  )
  (if (and(= (strcase (car CALLBACK)) (setq str "PICKFIRST"))(not (eq (getvar str) 1)))
    (progn
      (setvar "PICKFIRST" 1)
    )
  )
  (if (and(= (strcase (car CALLBACK)) (setq str "FILEDIA"))(not (eq (getvar str) 1)))
    (progn
      (setvar "FILEDIA" 1)
    )
  )
)
(setvar "savetime" 30)
(setvar "pickfirst" 1)
(setvar "filedia" 1)
(setvar "dynmode" 1)
(alert "Variable Reactor Loaded Successfully")
Any idea to this?

Thanks