So far, this is what I’ve got:
That will read from a Text File that says this:
(@sender) attacks for (# 1,10000 (writefile bosshp.txt, false, (echo)) Damage!
…but I’m only getting a response from the Bot that says the User attacks for X Damage. It’s reading the text file, but inside the text file, there’s a command to writefile of bosshp.txt. That part doesn’t seem to be working. I’m not even sure if I’ve got the command right…
The BossHP.txt file basically starts at 1400000. I want to subtract from that number based on the number generated from the command above, then save the file. What would that command look like…?