From 47dbefbfcd2f0066a193cbdb25e4f09836196747 Mon Sep 17 00:00:00 2001 From: Hadar Date: Mon, 15 Jun 2020 16:00:11 -0700 Subject: [PATCH] major statrep upgrade, added magic cleaned up code --- StatReport/hadar_statrep.xml | 200 +++++++++++++++++++++++------------ StatReport/hadar_statrep.zip | Bin 2981 -> 3950 bytes 2 files changed, 134 insertions(+), 66 deletions(-) diff --git a/StatReport/hadar_statrep.xml b/StatReport/hadar_statrep.xml index 8f48453..606c03d 100644 --- a/StatReport/hadar_statrep.xml +++ b/StatReport/hadar_statrep.xml @@ -54,37 +54,18 @@ Can see all my help files with had help or just this one with killer help script="statRep_build" > + - - - - - - - )") + end - SendNoEcho(repChannel .. " " .. - a .. "[" .. b .. "Str" .. a .. ": " .. b .. str .. a .."/" .. b .. maxstr .. a .. "] " .. - a .. "[" .. b .. "Dex" .. a .. ": " .. b .. dex .. a .."/" .. b .. maxdex .. a .. "] " .. - a .. "[" .. b .. "Con" .. a .. ": " .. b .. con .. a .."/" .. b .. maxcon .. a .. "] " .. - a .. "[" .. b .. "Int" .. a .. ": " .. b .. int .. a .."/" .. b .. maxint .. a .. "] " .. - a .. "[" .. b .. "Wis" .. a .. ": " .. b .. wis .. a .."/" .. b .. maxwis .. a .. "] " .. - a .. "[" .. b .. "Luck" .. a .. ": " .. b .. luck .. a .."/" .. b .. maxluck .. a .. "] " .. - a .. "HR: " .. b .. hr .. " " .. - a .. "DR: " .. b .. dr .. " " .. - a .. "HP: " .. b .. maxhp .. " " .. - a .. "Mana: " .. b .. maxmana .. " " .. - a .. "[" .. b .. "Totals" .. a .. ": " .. b .. (dex + str + wis + con + int + luck) .. a .."/" .. b .. (maxdex + maxstr + maxwis + maxcon + maxint + maxluck) .. a .. "] " .. - "") + if one == "help" then + HadarHelp() + elseif one == "output" then + changeOutput() + elseif one == "channel" then + setchannel(two) + end end +function changeOutput() + local HadarBackup = hstatrep.output + local s = [[ + Can accept upto the following variables + ${str} - Strength stat / ${maxstr} - maximum Strength + ${int} - Intelligence Stat / ${maxint} - maximum Intelligence + ${wis} - Wisdom Stat / ${maxwis} - maximum Wisdom + ${dex} - Dexterity Stat / ${maxdex} - maximum Dexterity + ${con} - Constitution Stat / ${maxcon} - maximum Constitution + ${luck} - Luck Stat / ${maxluck} - maximum Luck + ${hp} - maximum health + ${mana} - maximum mana + ${moves} - maximum moves + ${hr} - your hit roll / ${dr} - your damage roll + ${total} - total of all stats combined + ${maxtotal} - total of all maxstats combined + ]] + hstatrep.output = utils.inputbox (s,"Look of stat reporter", hstatrep.output, "Courier", 9) + if hstatrep.output ~= nil then + hadarerror("@gstatrep output@W:@w" .. hstatrep.output) + else + hstatrep.output = HadarBackup + end + SaveState() +end + +function setchannel(str) + if str ~= nil and str ~= "" and str ~= " " then + hstatrep.Channel = str + hadarerror("@RStat Rep @Cdefault channel set to: @G" .. hstatrep.Channel) + else + hadarerror("@RERROR: @wto set default channel please use @Cstatrep channel @w") + end +end + ---------------------------------------------------------------------------------------------------- -- End function stuff -- -- -- @@ -405,14 +472,15 @@ end -- maxVital function HadarHelp() - ColourNote("#159FE5","","+---------------------------------------","Green","","[","Cyan","","K","Teal","","ill","Green","","]","#159FE5","","---------------------------------------+") + ColourNote("#159FE5","","+---------------------------------------","Green","","[","Cyan","","S","Teal","","tat rep","Green","","]","#159FE5","","---------------------------------------+") + ColourNote("#159FE5","","|"..string.format("%84s"," ").."|") + ColourNote("#159FE5","","|","#E55B15","",string.format("%-19s"," statrep "),"#159FE5","","-","#F1D566","",string.format("%-64s"," If blank will send to echo else sends to a channel"),"#159FE5","","|") ColourNote("#159FE5","","|"..string.format("%84s"," ").."|") - ColourNote("#159FE5","","|","#E55B15","",string.format("%-19s"," Setkill "),"#159FE5","","-","#F1D566","",string.format("%-64s"," If blank will update the spell used on 'kill'"),"#159FE5","","|") - ColourNote("#159FE5","","|","#E55B15","",string.format("%-19s"," "),"#159FE5",""," ","#F1D566","",string.format("%-64s"," Updated used to update all skills/spells"),"#159FE5","","|") + ColourNote("#159FE5","","|","#E55B15","",string.format("%-19s"," statrep output"),"#159FE5","","-","#F1D566","",string.format("%-64s"," changes the output of the message"),"#159FE5","","|") ColourNote("#159FE5","","|"..string.format("%84s"," ").."|") - ColourNote("#159FE5","","|","#E55B15","",string.format("%-19s"," kill "),"#159FE5","","-","#F1D566","",string.format("%-64s"," Will use the kill spell/skill (with optional name)"),"#159FE5","","|") + ColourNote("#159FE5","","|","#E55B15","",string.format("%-19s"," statrep channel "),"#159FE5","","-","#F1D566","",string.format("%-64s"," changes default channel default:echo"),"#159FE5","","|") ColourNote("#159FE5","","|"..string.format("%84s"," ").."|") - ColourNote("#159FE5","","|","white","",string.format("%84s"," if any issues arise, please contact Hadar via a personal note!"),"#159FE5","","|") + ColourNote("#159FE5","","|","white","",string.format("%84s"," if any issues arise, please contact Hadar via a personal note! or on discord zzyzzyzzx#0001"),"#159FE5","","|") ColourNote("#159FE5","","+"..string.rep("-",84).."+") end diff --git a/StatReport/hadar_statrep.zip b/StatReport/hadar_statrep.zip index 72a519807d3a42390c7891103f45b4b99dcc9f2a..137391b246f9ea8954cdc57503879a417ef58597 100644 GIT binary patch literal 3950 zcmZ{n=RX^ayT)VF#NM?Du^OA&(b`JQplZjaHnnH%6?;W$&)BOi8fw#OsiL7)X^FjR z)YH@F_c`ahIiGXiFTU4(-Pb>G8R`)cGXMYpa)4vhjNwPh{P|rf06<0^0HFQry4oY` z{cQaM>;wFqe4x+0JonkXOmNzV{tEA+7EjM>E|BqkG~6IJH$36Xx zjYat|{k7|}$QwSl;M?rsEZKb-E>3E&4W=ru^9iO?mR;#J=gnS6~I2=B}Lx1zryYw)!w@MK>)!Wk*S~f_=;W3P+748VRU<|foX`PE7YmP8+ zf`s#4UdC!Q&DRZi`;)2sQuMkwkZGKkUcpyA4(}vxGVzvnQnmZ8RdhM=5h!~gF-jOV z9X1NYbya3UhM2~}9SjpuNk%O7P>Pe~vh_}}uVHUwx%OmA_Jc}n1K7Vk+q2OItx_c< zD-&n5&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