So I used this link to make a counter Adding a command that adds the amount specified to a counter and that works well. It is a kill counter for Valo, I altered it a bit so it says ‘The counter value is (value) of targetvalue’ but I also want a percentage behind it so you can see more clearly how close we are to getting the goal.
Thanks for answering, I can’t seem to do it right tho
This is the code I used before $(eval a=$(urlfetch json https://twitch.center/customapi/quote/list?token=?????&no_id=1).split(~);a.unshift(0);The counter value is ${a.reduce((b,c)=>b+parseInt(c)||b)}/30.069 kills. Next Milestone = 15.000 kills)
This is the code after your reply $(eval a=$(urlfetch json https://twitch.center/customapi/quote/list?token=?????&no_id=1).split(~);a.unshift(0);The counter value is ${a.reduce((b,c)=>b+parseInt(c)||b) t=30069; c=a.reduce((x,y)=>x+parseInt(y)||x); p=c*100/t;} (${p}%) Next Milestone = 15.000 kills)
Hope you can see where I made the mistake.
Thanks for the help