1: !ripadd is an alias of !commands edit (!ripadd uses !commands edit to function). The output of any alias of !commands edit cannot be changed. It will always return
@$(user) -> The command "someCommand" has been edited successfully.
If you really want !ripadd to also display the edited value in !rip then I can suggest a complete overhaul to your death counter system, though it’s a bit more complex than what you have currently and will take some work on your end to set up.
2: !rip doesn’t have a $(count) variable. It’s a simple response that’s being edited by !ripadd which itself DOES have a $(count) variable. !ripadd and !ripset are setting conflicting values in !rip because they’re functioning independently of each, ie. !ripadd and !ripset both edit !rip but !ripset isn’t doing anything to edit the $(count) variable in !ripadd. What I suggest is deleting !ripset then copying and pasting this into chat:
!ripset will no longer directly edit !rip but now it will control the $(count) variable in !ripadd. For example, to set the value in !rip to 42, type:
!ripset 42 !ripadd
If you’re not a big fan of running two commands to achieve this, again, I can suggest the overhaul to your commands setup I mentioned above.
3: If you followed my instructions in point 2, you now have a way to set the $(count) variable in !ripadd as well as the value in !rip to 0. Just type:
I’m completely open to an overhaul. I’m not really experienced at nightbot so I’ll take what I can get. The end goal would be to have something like what I have in streamelements where i have a single !rip command that increments the counter and displays the current value and a !ripset command to set it back to 0 at the beginning of the stream or start of a new game.
Try the current solution I have setup. It should work fine for what you need (commands to display deaths count, increment count, and set specific count). However if you’re really persistent on having one command, !ripadd, increment the value AND display the new value, then let me know.