Trying to create a "count" command with custom inputs

Im trying to create a command for darksouls to count how many souls ive lost, where the user (in this case, a moderator) will type a number after calling the command like this: !almas 100 and the command will store the total amount of souls in a variable.
I thought I could do it like this: !addcom !almas $(eval let almas = 0; almas = almas + $(query); Ha perdido ${almas}; ) but it doesn’t work.
Everytime I call the command it resets the variable almas to 0.
Any Ideas?

You can do it with this API [CustomAPI] Quote system
If you want me to write out a command that can do it let me know.

Sure! i’d really appreciate that!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.