Help with user entered scoring

jamiller87jamiller87 Member Posts: 1
edited November -1 in Working with GS (Mac)
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?

Comments

  • outasiteoutasite Member Posts: 417
    Attributes
    >>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.
  • outasiteoutasite Member Posts: 417
    Wait wow, I don't even think I answered the correctly at all. Can I have some more info. Sorry hah.
    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.
Sign In or Register to comment.