
So I want to have a macro that decrements a value and then says what the new value is in the chat. All of my attempts so far result in setattr doing its thing and then the "echo" to chat showing the value from before setattr. My first attempt was simple: !setattr --sel --ccp|[[@{selected|ccp}-1]]
@{selected|character_name} spent 1 Character Creation Point and has @{selected|ccp} remaining. I figured setattr was asynchronous and so I introduced a delay using the Store Commands script, or at least I think I did. @{selected|ccp} !setattr --sel --ccp|[[@{selected|ccp}-1]] !store -1000 @{selected|character_name} spent 1 Character Creation Point and has @{selected|ccp} remaining. !run !clearstore But even with the delay it was giving me the pre-setattr value, and even if I jacked the delay up to 3000ms. I've tried to google this several different ways but no luck. What's the best practice here?