Help with user entered scoring

I was wondering if it was possible somehow for a user to enter a wager, and have that wager added or subtracted to their score.
I'm thinking that I would need to define an actor where the user enters the text of his/her wager, then define two different buttons as game.Score+(user-entered-score-amount-actor-name) and game.Score-(user-entered-score-amount-actor-name), but i'm just not sure how to create that actor.
Any thoughts?
I'm thinking that I would need to define an actor where the user enters the text of his/her wager, then define two different buttons as game.Score+(user-entered-score-amount-actor-name) and game.Score-(user-entered-score-amount-actor-name), but i'm just not sure how to create that actor.
Any thoughts?
Comments
>>MONEY
>>WAGER
{event} Player has 2000 gold
{event} Player wages 200 gold in a 2:1 odds game of dice.
>>WAGER = 200
>>MONEY = MONEY - WAGER
{event} Player has 1800 gold
{event} Player wins
>>MONEY = MONEY + WAGER + (WAGER*2)
{event} Player has 2400 gold
{event} Player wages 400 gold in a 2:1 odds game of dice.
>>WAGER = 200
>>MONEY = MONEY - WAGER
{event} Player has 2000 gold
{event} Player loses
You just have the save the attribute he is using to gamble somewhere else so you know how much to give later on.
Helps to re-read things sometimes I guess.
EDIT: so this is still your answer. Im pretty sure. The question was just worded weird. So the money would be your score, and the wager would be how many points the user would gamble. If he or she would win they would have SCORE + WAGER or if they would lose is would be SCORE - WAGER and so on.
EDIT #2: As far as the actors are concerned, when game/round is over rules will fire asking WIN or LOSE and then go on from there.