Scripts
// Check for edit mode scanner script for AC 1.3+ by Bukz
// modify the following aliases below to change what happens when you enter/exit edit mode automatically:
//
// bukz_onEditModeEvent
// bukz_onEditModeOutEvent
//
// Currently, the script will automatically enable /fullbright 1, and automatically apply special edit mode guide textures when you first enter edit mode.

const bukz_checkForEditMode [
  if $editing [
    if (! $editModeDetected) [
      tempalias editModeDetected 1
      bukz_onEditModeEvent
    ]
  ] [
    if $editModeDetected [
      tempalias editModeDetected 0
      bukz_onEditModeOutEvent
    ]
  ]
  sleep 0 bukz_checkForEditMode
]

alias bukz_onEditModeEvent [
  echo "NOTICE: You entered edit mode."
  if (!= $fullbright 1) [ fullbright 1 ]
  guidetoggle
  sleep 0 [
    if (! (&& (strstr $conline "Guide:") (strstr $conline "on"))) [
      guidetoggle
    ]
  ]
]

alias bukz_onEditModeOutEvent [
  echo "NOTICE: You left edit mode."
]

if (! (checkalias mapstartalways)) [
  alias mapstartalways []
]

if (! (strstr $mapstartalways bukz_checkForEditMode)) [
  add2alias mapstartalways [ if (|| (! $connected) (= $gamemode (modenum coop))) bukz_checkForEditMode ]
]
Thanks given by: 1Cap