IC issues with [VAR100]
LadyCailinBot opened this issue ยท 12 comments
CRAFTBOOK-2926 - Reported by jjkrause
Hey Matthew! I have a variable defined as HockeyBlue and it is assigned a value of 0. When a player scores, a redstone signal powers the sign to add 1 to the score, but it doesn't seem to work. Here is what I have on the sign:
[VAR100]
HockeyBlue
ADD:1
What am I doing wrong again?!?
Comment by jjkrause
No errors in the console. I tried changing ADD:1 to +:1 and +1, the sign just breaks so its invalid.
Running build 3659
Comment by me4502
If you use /cb var add varname amount, does that work? It could just be that the variable you are using isn't in the namespace.
Comment by jjkrause
The variable was created under Global. If I do /craftbook add HockeyBlue 1, it adds one to the variable.
Comment by me4502
I believe it is fixed. I made a few changes and tested it, and it worked. I didn't test it beforehand though so I don't know if it was actually broken for me.
Comment by jjkrause
Just tested with 3677 and it works, kind of. Is it normal that it triggers on signal high AND signal low? If I power the sign with a button, it will add 1 on the powered redstone, then adds another 1 when the signal turns off. Therefore, everytime someone scores, it goes up by 2 instead of 1. I can work with this, but I'm not sure its supposed to work like this.
Comment by me4502
I noticed it did that in the tests, but I'm undecided if it should or not. I'll most likely only allow it on high
Comment by jjkrause
I agree, I think that's the way it should be... only on high signal.
Comment by jjkrause
Confirmed working on build 3679. Excellent, thanks once again!