Hmm, I simply trigger off my health bar with this:
Code: Select all
clearWindow("StatusBar")
hpCur = matches[2]
hpDelta = hpCur - hpLast
hpLast = matches[2]
hpMax = matches[3]
spCur = matches[4]
spDelta = spCur - spLast
spLast = matches[4]
spMax = matches[5]
essCur = matches[6]
essDelta = essCur - essLast
essLast = matches[6]
essMax = matches[7]
poss = matches[8]
cecho("StatusBar", "<green>""Hp:["..hpCur.."("..hpDelta..")/"..hpMax.."] <purple>Sp:["..spCur.."("..spDelta..")/"..spMax.."] <maroon>E:["..essCur.."("..essDelta..")/"..essMax.."]")
deleteLine()
Also, if i remove the colour tags e.g. <green> <purple> etc, the weird spaces disappear, still using cecho.
The same thing happens if i use:
Code: Select all
cecho("StatusBar", "<green>HP:["..hpCur.."("..hpDelta..")/"..hpMax.."]")
cecho("StatusBar", "<purple>SP:["..spCur.."("..spDelta..")/"..spMax.."]")
cecho("StatusBar", "<maroon>E:["..essCur.."("..essDelta..")/"..essMax.."]")
However, if i do:
Code: Select all
cecho("StatusBar", "<green>HP:["..hpCur.."("..hpDelta..")/"..hpMax.."]")
cecho("StatusBar", "<green>SP:["..spCur.."("..spDelta..")/"..spMax.."]")
cecho("StatusBar", "<green>E:["..essCur.."("..essDelta..")/"..essMax.."]")
with the same colour tag for all, the weird spaces disappear.
I have scrutinized these commands(?) and i don't see anything wrong with them, which is why i thought it could be an error from cecho itself.
Any thoughts?
Also, if there's a better way of doing what i want, feel free to correct me.
I literally just started learning how to do this a couple days back. Except for zmud/cmud's method, i have no prior knowledge of any sort of coding language, if you can even call zmud/cmud's way a coding language.
Thanks
P.s. The main reason i thought of trying this client out is because of the mapper, which is also the main reason i'm using zmud/cmud. How's the mapper coming along?