Keypad confusion

Zubric
25 Jan 2020, 19:19

I keep thinking there a better way to do this. I have a keypad with four buttons, each changing a display's number to unlocks keys. 1(-1),2(+2),3(-3),4(+4) Currently, I'm just using four separate objects to trigger the Value change. I thought of maybe using a Show menu tieing the number change to as Attribute, which would then be used in an IF statement, but that just leads to players having to do an extra step each time they 'press' a button.

So, is the objects route the best way to go about this? still new to lists, so unsure if that would help or just extra steps of code.

just an example of when a player "press" a button

mainnumber.Reset = mainnumber.Reset + 1 //will reset counter if reaching a value.//
mainnumber.Counter = mainnumber.Counter - 1
Counter reset