I have a plethora of problems. My largest is I have a gauge that I want to track the amount of hints given to someone (in an escape room) and I can't figure out how to progress the gauge by one with the click of a button.
the import data:
[{"id":"5e29b817.d4c428","type":"tab","label":"Escape Room","disabled":false,"info":"Contains elements related to the overall game flow; Timer, TV, Clues, etc."},{"id":"d25a80d0.08b9d","type":"ui_template","z":"5e29b817.d4c428","group":"491a180e.3ad668","name":"","order":0,"width":0,"height":0,"format":"\n <span class=\"value\" style=\"color:{{msg.timeColour}}; font-size:xxx-large; text-align:center;\">\n {{msg.formattedTimeRemaining}}\n </span>","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":true,"templateScope":"local","x":980,"y":280,"wires":[[]]},{"id":"b660c811.219ec8","type":"ui_text_input","z":"5e29b817.d4c428","name":"","label":"","tooltip":"","group":"62e6c708.07cc78","order":1,"width":0,"height":0,"passthru":false,"mode":"text","delay":300,"topic":"hint","topicType":"global","x":960,"y":400,"wires":[["536cdae1.f962e4"]]},{"id":"37eb3bf5.406924","type":"inject","z":"5e29b817.d4c428","name":"Setup","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":true,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":300,"y":220,"wires":[["72f6f7a7.8c6728"]]},{"id":"cd10a7bf.5c6eb8","type":"inject","z":"5e29b817.d4c428","name":"loop","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"1","crontab":"","once":true,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":320,"y":280,"wires":[["1d12aea6.3bf661"]]},{"id":"72f6f7a7.8c6728","type":"change","z":"5e29b817.d4c428","name":"","rules":[{"t":"set","p":"gameState","pt":"global","to":"stopped","tot":"str"},{"t":"set","p":"timeRemaining","pt":"global","to":"3600000","tot":"num"},{"t":"set","p":"currentTime","pt":"global","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":470,"y":220,"wires":[[]]},{"id":"1d12aea6.3bf661","type":"function","z":"5e29b817.d4c428","name":"","func":"var currentTime = msg.payload;\nvar lastTickTime = global.get(\"lastTickTime\") || currentTime;\nvar timeRemaining = global.get(\"timeRemaining\") || 0;\nvar gameState = global.get(\"gameState\");\n\nif (gameState == \"playing\"){ \n\n timeRemaining -= (currentTime - lastTickTime);\n\n global.set(\"timeRemaining\",timeRemaining);\n}\n\nmsg.timeRemaining = timeRemaining;\nglobal.set(\"lastTickTime\",currentTime);\n\nnode.status({fill:\"green\",shape:\"dot\",text:timeRemaining});\n\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":490,"y":280,"wires":[["eb656b50.6333e8"]]},{"id":"89c67c42.7642a","type":"inject","z":"5e29b817.d4c428","name":"Play","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":300,"y":380,"wires":[["ffa6754c.b97008"]]},{"id":"f6ab8768.d93698","type":"inject","z":"5e29b817.d4c428","name":"Stop","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":290,"y":460,"wires":[["accfa413.995d88"]]},{"id":"ffa6754c.b97008","type":"change","z":"5e29b817.d4c428","name":"","rules":[{"t":"set","p":"gameState","pt":"global","to":"playing","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":510,"y":380,"wires":[[]]},{"id":"accfa413.995d88","type":"change","z":"5e29b817.d4c428","name":"","rules":[{"t":"set","p":"gameState","pt":"global","to":"stopped","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":520,"y":460,"wires":[[]]},{"id":"af5f575e.6c7688","type":"change","z":"5e29b817.d4c428","name":"","rules":[{"t":"set","p":"timeRemaining","pt":"global","to":"3600000","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":530,"y":540,"wires":[[]]},{"id":"7a00753f.d49e0c","type":"inject","z":"5e29b817.d4c428","name":"Reset","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":290,"y":540,"wires":[["af5f575e.6c7688"]]},{"id":"34647f99.9b66","type":"ui_text","z":"5e29b817.d4c428","group":"c6c81e60.c68ef","order":0,"width":"6","height":"3","name":"","label":"Time Remaining","format":"{{msg.formattedTimeRemaining}}","layout":"col-center","x":1020,"y":240,"wires":[]},{"id":"9a45cced.fd4a2","type":"ui_button","z":"5e29b817.d4c428","name":"","group":"c6c81e60.c68ef","order":1,"width":0,"height":0,"passthru":false,"label":"Start","tooltip":"","color":"black","bgcolor":"light green","icon":"","payload":"","payloadType":"str","topic":"topic","topicType":"msg","x":290,"y":340,"wires":[["ffa6754c.b97008"]]},{"id":"600f7eb9.fa218","type":"ui_button","z":"5e29b817.d4c428","name":"","group":"c6c81e60.c68ef","order":2,"width":0,"height":0,"passthru":false,"label":"Pause","tooltip":"","color":"black","bgcolor":"yellow","icon":"","payload":"","payloadType":"str","topic":"topic","topicType":"msg","x":280,"y":420,"wires":[["accfa413.995d88"]]},{"id":"bf7ebec8.db518","type":"ui_button","z":"5e29b817.d4c428","name":"","group":"c6c81e60.c68ef","order":3,"width":0,"height":0,"passthru":false,"label":"Reset","tooltip":"","color":"white","bgcolor":"black","icon":"","payload":"","payloadType":"str","topic":"topic","topicType":"msg","x":280,"y":500,"wires":[["af5f575e.6c7688"]]},{"id":"eb656b50.6333e8","type":"function","z":"5e29b817.d4c428","name":"Format time as hh:mm:ss","func":"\nvar t = msg.timeRemaining/ 1000;\nvar h = Math.floor(t/3600);\nvar m = Math.floor(t%3600 / 60);\nvar s = Math.floor(t%3600 % 60);\n\n// ensure leading zeros\nmsg.formattedTimeRemaining = (\"0\" + h).slice(-2) + \":\" + (\"0\" + m).slice(-2) + \":\" + (\"0\" + s).slice(-2);\n\n\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":730,"y":280,"wires":[["d25a80d0.08b9d","34647f99.9b66"]]},{"id":"536cdae1.f962e4","type":"ui_text_input","z":"5e29b817.d4c428","name":"","label":"{{msg.clue}}","tooltip":"","group":"491a180e.3ad668","order":0,"width":"6","height":"2","passthru":true,"mode":"text","delay":300,"topic":"clue","topicType":"msg","x":1120,"y":400,"wires":[["9ddd8302.b58ec"]]},{"id":"c459466b.a2c028","type":"ui_audio","z":"5e29b817.d4c428","name":"","group":"2bf34bb3.6727c4","voice":"","always":"","x":620,"y":940,"wires":[]},{"id":"bc8e30be.91fef","type":"inject","z":"5e29b817.d4c428","name":"Play","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":390,"y":720,"wires":[["4e858e8d.69739"]]},{"id":"ef8666c0.50a118","type":"inject","z":"5e29b817.d4c428","name":"Stop","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":370,"y":800,"wires":[["d2479b19.12efc8"]]},{"id":"4c29963e.f7aa58","type":"inject","z":"5e29b817.d4c428","name":"Reset","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":380,"y":880,"wires":[["2bd1fbb3.b3eb84"]]},{"id":"1baba770.ec60e9","type":"ui_button","z":"5e29b817.d4c428","name":"","group":"3346acfc.8202b4","order":1,"width":0,"height":0,"passthru":false,"label":"Start","tooltip":"","color":"Black","bgcolor":"light green","icon":"","payload":"","payloadType":"str","topic":"topic","topicType":"msg","x":380,"y":680,"wires":[["4e858e8d.69739"]]},{"id":"8b7be3ba.68768","type":"ui_button","z":"5e29b817.d4c428","name":"","group":"3346acfc.8202b4","order":2,"width":0,"height":0,"passthru":false,"label":"Pause","tooltip":"","color":"Black","bgcolor":"Yellow","icon":"","payload":"","payloadType":"str","topic":"topic","topicType":"msg","x":370,"y":760,"wires":[["d2479b19.12efc8"]]},{"id":"33f12f47.0e565","type":"ui_button","z":"5e29b817.d4c428","name":"","group":"3346acfc.8202b4","order":3,"width":0,"height":0,"passthru":false,"label":"Reset","tooltip":"","color":"White","bgcolor":"Black","icon":"","payload":"","payloadType":"str","topic":"topic","topicType":"msg","x":370,"y":840,"wires":[["2bd1fbb3.b3eb84"]]},{"id":"4e858e8d.69739","type":"change","z":"5e29b817.d4c428","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":630,"y":720,"wires":[[]]},{"id":"d2479b19.12efc8","type":"change","z":"5e29b817.d4c428","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":640,"y":780,"wires":[[]]},{"id":"2bd1fbb3.b3eb84","type":"change","z":"5e29b817.d4c428","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":640,"y":860,"wires":[[]]},{"id":"f3fe8e86.6c0e9","type":"comment","z":"5e29b817.d4c428","name":"Music","info":"","x":510,"y":640,"wires":[]},{"id":"7ab4cceb.6f3a64","type":"comment","z":"5e29b817.d4c428","name":"Timer","info":"","x":370,"y":180,"wires":[]},{"id":"66cf977d.4979d8","type":"comment","z":"5e29b817.d4c428","name":"Hint","info":"","x":890,"y":340,"wires":[]},{"id":"501bcd6b.46c1a4","type":"ui_form","z":"5e29b817.d4c428","name":"","label":"","group":"970bebfa.e5ca08","order":0,"width":0,"height":0,"options":[{"label":"Name","value":"Group Name","type":"text","required":true,"rows":null},{"label":"Time","value":"Time Remaining","type":"text","required":true,"rows":null},{"label":"Clues","value":"Clues Used","type":"number","required":true,"rows":null},{"label":"Date","value":"Date","type":"date","required":true,"rows":null},{"label":"Escaped?","value":"Did they escape?","type":"checkbox","required":true,"rows":null}],"formValue":{"Group Name":"","Time Remaining":"","Clues Used":"","Date":"","Did they escape?":false},"payload":"","submit":"submit","cancel":"cancel","topic":"topic","topicType":"msg","splitLayout":"","x":970,"y":700,"wires":[["6a40be50.95396"]]},{"id":"23051269.a5479e","type":"comment","z":"5e29b817.d4c428","name":"Leaderboard","info":"","x":960,"y":660,"wires":[]},{"id":"967b13ab.763dc","type":"ui_table","z":"5e29b817.d4c428","group":"fc893c6c.aaeff","name":"Leaderboard","order":1,"width":0,"height":0,"columns":[],"outputs":1,"cts":true,"x":1290,"y":700,"wires":[[]]},{"id":"6a40be50.95396","type":"ui_ui_control","z":"5e29b817.d4c428","name":"","events":"all","x":1120,"y":700,"wires":[["967b13ab.763dc"]]},{"id":"cf69cd12.a1fab","type":"file in","z":"5e29b817.d4c428","name":"","filename":"","format":"utf8","chunk":false,"sendError":false,"encoding":"none","x":490,"y":940,"wires":[["c459466b.a2c028"]]},{"id":"365b795d.91a556","type":"function","z":"5e29b817.d4c428","name":"","func":"\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":350,"y":940,"wires":[["cf69cd12.a1fab"]]},{"id":"452c4c7a.0bf3d4","type":"ui_button","z":"5e29b817.d4c428","name":"","group":"62e6c708.07cc78","order":0,"width":0,"height":0,"passthru":false,"label":"Hint 3","tooltip":"","color":"black","bgcolor":"red","icon":"","payload":"","payloadType":"str","topic":"hintCount","topicType":"msg","x":890,"y":540,"wires":[["3d90ee1a.918262"]]},{"id":"c07c0237.b25c1","type":"ui_button","z":"5e29b817.d4c428","name":"","group":"62e6c708.07cc78","order":2,"width":0,"height":0,"passthru":true,"label":"Hint 1","tooltip":"","color":"Black","bgcolor":"forest green","icon":"","payload":"payload","payloadType":"global","topic":"","topicType":"str","x":850,"y":460,"wires":[["a82f6540.efe2a8"]]},{"id":"45fc503.1b33db","type":"ui_button","z":"5e29b817.d4c428","name":"","group":"62e6c708.07cc78","order":3,"width":0,"height":0,"passthru":false,"label":"Hint 2","tooltip":"","color":"black","bgcolor":"yellow","icon":"","payload":"","payloadType":"str","topic":"hintCount","topicType":"msg","x":870,"y":500,"wires":[["66f7c5ae.6af9fc"]]},{"id":"f89884e2.c64778","type":"ui_gauge","z":"5e29b817.d4c428","name":"Hints allowed","group":"59b49b1a.fdf564","order":0,"width":0,"height":0,"gtype":"gage","title":"Hints Permitted","label":"","format":"Hints","min":"1","max":"3","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"2","x":1330,"y":520,"wires":[]},{"id":"bc54804.b359e8","type":"ui_button","z":"5e29b817.d4c428","name":"","group":"62e6c708.07cc78","order":7,"width":0,"height":0,"passthru":false,"label":"Reset","tooltip":"","color":"White","bgcolor":"Black","icon":"","payload":"","payloadType":"str","topic":"hintCount","topicType":"global","x":910,"y":580,"wires":[["4f3a2eec.b52f7"]]},{"id":"66f7c5ae.6af9fc","type":"change","z":"5e29b817.d4c428","name":"","rules":[{"t":"set","p":"hintCount","pt":"msg","to":"2","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":1070,"y":500,"wires":[[]]},{"id":"3d90ee1a.918262","type":"change","z":"5e29b817.d4c428","name":"","rules":[{"t":"set","p":"hintCount","pt":"msg","to":"3","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":1090,"y":540,"wires":[[]]},{"id":"4f3a2eec.b52f7","type":"change","z":"5e29b817.d4c428","name":"","rules":[{"t":"set","p":"hintCount","pt":"msg","to":"0","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":1130,"y":580,"wires":[[]]},{"id":"9ddd8302.b58ec","type":"ui_template","z":"5e29b817.d4c428","group":"491a180e.3ad668","name":"","order":0,"width":0,"height":0,"format":" <span class=\"me.item.value\" style=\"color:{{msg.clue}}; font-size:xxx-large; text-align:center;\">\n {{msg.clue}}\n </span>\n","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":true,"templateScope":"local","x":1300,"y":400,"wires":[[]]},{"id":"a82f6540.efe2a8","type":"function","z":"5e29b817.d4c428","name":"","func":"IDK what i'm doing\nreturn msg;","outputs":1,"noerr":7,"initialize":"","finalize":"","x":1090,"y":460,"wires":[["f89884e2.c64778"]]},{"id":"491a180e.3ad668","type":"ui_group","name":"","tab":"f976c216.1eb41","order":1,"disp":true,"width":"6","collapse":false},{"id":"62e6c708.07cc78","type":"ui_group","name":"Clues","tab":"5c030594.084acc","order":2,"disp":true,"width":"6","collapse":false},{"id":"c6c81e60.c68ef","type":"ui_group","name":"Timer","tab":"5c030594.084acc","order":1,"disp":true,"width":"6","collapse":false},{"id":"2bf34bb3.6727c4","type":"ui_group","name":"Clues","tab":"f976c216.1eb41","order":2,"disp":true,"width":"6","collapse":false},{"id":"3346acfc.8202b4","type":"ui_group","name":"Music","tab":"5c030594.084acc","order":5,"disp":true,"width":"6","collapse":false},{"id":"970bebfa.e5ca08","type":"ui_group","name":"LeaderBoard","tab":"5c030594.084acc","order":3,"disp":true,"width":"6","collapse":false},{"id":"fc893c6c.aaeff","type":"ui_group","name":"Leaderboard","tab":"c79bed56.dc9bd","order":1,"disp":true,"width":"6","collapse":false},{"id":"59b49b1a.fdf564","type":"ui_group","name":"","tab":"f976c216.1eb41","order":3,"disp":true,"width":"6","collapse":false},{"id":"f976c216.1eb41","type":"ui_tab","name":"Escape Room","icon":"dashboard","order":2,"disabled":false,"hidden":false},{"id":"5c030594.084acc","type":"ui_tab","name":"Game Master","icon":"dashboard","disabled":false,"hidden":false},{"id":"c79bed56.dc9bd","type":"ui_tab","name":"LeaderBoard","icon":"dashboard","order":3,"disabled":false,"hidden":false}]