Wanting to be able to see my HP always

Share your scripts and packages with other Mudlet users.
Post Reply
Navar
Posts: 1
Joined: Thu Aug 20, 2015 3:04 pm

Wanting to be able to see my HP always

Post by Navar »

So I know that there are scripts out there that enable mudlet to be configured so that things like the HP bar and mini map being sent from the mud are displayed on your screen at all times, but I cannot figure out how to make this happen.

I am not very good at coding.

I play 3 Kingdoms.

Thanks in advance

Navar

User avatar
Belgarath
Posts: 232
Joined: Fri Jul 26, 2013 7:19 am
Discord: macjabeth#7149

Re: Wanting to be able to see my HP always

Post by Belgarath »

Hey Navar,

For capturing the map, you could do something like this, using Geyser:
Code: [show] | [select all] lua
-- Written by Kandar, from Avalon.
-- First, in your startup script, create a console for the minimap.
minimap = Geyser.MiniConsole:new({
  name="minimap",
  x="-27c", y= 0,
  width="25c", height="15c",
})
  
-- Then, the trigger to start capturing:

deleteLine()
clearUserWindow("minimap")

maplineTrig = tempLineTrigger(1,17,[[onMapLine()]])  -- Edit the max lines to how many your MAP display shows.

function onMapLine()
  -- Either match the last line of your MAP display, or use the Prompt.
  local isLastLine = isPrompt() or string.findPattern(line, "Map depicts .* environs with your location highlighted")
  if isLastLine then
    deleteLine()
    killTrigger(maplineTrig)
  else
    selectCurrentLine()
    copy()
    appendBuffer("minimap")
    deleteLine()
  end
end
And for stat bars, I'd suggest looking at the Geyser documentation, as it has examples on it here.

Post Reply