First, apologies for a probably silly question. I am completely new to ActionScript and don't have the language to find resources on my question.
I am looking to create a game in which numerical values effect outcomes. How would I go about setting a numerical value that changes depending on which option button is chosen, and how would I use this value to determine which ending plays?
For example; a value starting at 0 and a button that increases that value by 1 up to 5 times, then a button to progress to the next screen, which is dependent on the number value. The screen you reach is dependent on the amount of times you clicked the value increasing button.
Please excuse my sloppy explanation. If anybody could answer my question or tell me what keywords I should be using to research this it would be much appreciated.