myRage = function() local rage = 0 for k, v in pairs(gmcp.Char.Vitals.charstats) do if string.starts(v, "Rage") then rage = tonumber(string.match(v,"%d+")) end end return rage end
addPromptDef = function() svo.adddefinition("@btlRage", "myRage()") end registerAnonymousEventHandler("svo system loaded", "addPromptDef")If you then force addPromptDef to run - vlua addPromptDef() - the tag @btlRage can be added to your prompt (the anonymous event handler means if you restart Mudlet, it'll automatically add in the tag)
Answers
Svof
Mudlet Discord join up