Thanks a ton.
I basically have a command on PhantomBot that says !bossatk that reads from a Text File called bossatk.txt
Then I have a text file called bosshp.txt with the number 1800000 and a second text file called viewerhp.txt at 98000. Neither of these numbers can exceed these two values.
Basically, when a User attacks, I need the command to either say that the User has attacked for (#1,10000) Damage, or the user was countered for (#1,10000) Damage. Whether they Attack or whether they are countered, that’s random. If the User attacks, then the number is subtracted from bosshp.txt. If the User is countered, then that number is reduced from viewerhp.txt, then saves the file.
Finally, I have a !bossrstr command that will choose a number from (#1,10000) and add the resulting number to viewerhp.txt and save the file (notifying the User how much was restored)