tile_player_tile = tile:MONS_BAI_SUZHEN ### COLORFUL ### custom_text_colours = lightmagenta:#C041CE, blue:#567BF6, red:#EE4747, green:#3F9B42, cyan:#49AB9E, magenta:#FF99CC, lightblue:#A6C0FD, lightgreen:#60D880, lightcyan:#9CF2E6, lightred:#F29CBB, yellow:#FAF788, lightgrey:#CFC8E4, white:#f7ead7 ##black, blue, green, cyan, red, magenta, brown, lightgrey, ##darkgrey, lightblue, lightgreen, lightcyan, lightred, ##lightmagenta, yellow, white ################ fake_lang = grunt mon_glyph += player:green always_show_zot = true always_show_gems = true more_gem_info = true force_more_message += blazeheart golem falls apart, revealing it's core force_more_message += Your clockwork bee winds down and falls to the ground force_more_message += finished your manual force_more_message += You miscast Launch Clockwork Bee warn_hatches = true note_chat_messages = true tile_window_height = 0 tile_window_width = 0 tile_filter_scaling = true tile_font_crt_size = 20 tile_font_stat_size = 20 tile_font_msg_size = 20 tile_font_tip_size = 20 tile_font_lbl_size = 20 tile_tag_pref = named mouse_input = false travel_delay = 13 rest_delay = 1 autoexplore_delay = 4 bold_brightens_foreground = true dump_order += vaults travel_open_doors = false ae += " .. msg .. "") end end function init_force_mores() for i,v in ipairs(fm_patterns) do active_fm[#active_fm + 1] = false end end function update_force_mores() local activated = {} local deactivated = {} local hp, maxhp = you.hp() for i,v in ipairs(fm_patterns) do local msg = nil if type(v.pattern) == "table" then for j, p in ipairs(v.pattern) do if msg == nil then msg = p else msg = msg .. "|" .. p end end else msg = v.pattern end msg = "(?= v.cutoff then action = "-" elseif not active_fm[i] and you.xl() < v.cutoff then action = "+" end elseif v.cond == "maxhp" then if active_fm[i] and maxhp >= v.cutoff then action = "-" elseif not active_fm[i] and maxhp < v.cutoff then action = "+" end end if action == "+" then activated[#activated + 1] = fm_name elseif action == "-" then deactivated[#deactivated + 1] = fm_name end if action ~= nil then local opt = "force_more_message " .. action .. "= " .. msg crawl.setopt(opt) active_fm[i] = not active_fm[i] end end if #activated > 0 and notify_fm then mpr("Activating force_mores: " .. table.concat(activated, ", ")) end if #deactivated > 0 and notify_fm then mpr("Deactivating force_mores: " .. table.concat(deactivated, ", ")) end end local last_turn = nil function force_mores() if last_turn ~= you.turns() then update_force_mores() last_turn = you.turns() end end init_force_mores() ------------------------- ---- End force_mores ---- ------------------------- }