GameSalad

sequential-ness

Hi y'all..

So I'm trying to have this happen: player receives a bonus if they hit the same target three times in a row. For example: there are five targets called "Target A" "Target B" etc. They get a point for each of them. But if the player hits three "Target A" 's in row, they receive double points. Anyone know whether this can be done?

Comments

  • SocksSocks London, UK.Posts: 12,698Member, PRO
    edited June 15

    When player hits A
    -- XA + 1
    -- XB = 0
    -- XC = 0
    --When XA = 3
    ----Increase points by 2
    ----XA = 0
    --Otherwise
    ----Increase points by 1

    When player hits B
    -- XA = 0
    -- XB + 1
    -- XC = 0
    --When XB= 3
    ----Increase points by 2
    ----XB = 0
    --Otherwise
    ----Increase points by 1

    When player hits C
    -- XA = 0
    -- XB = 0
    -- XC + 1
    --When XC = 3
    ----Increase points by 2
    ----XC = 0
    --Otherwise
    ----Increase points by 1

  • monkeyboy+simianmonkeyboy simian Posts: 421Member, PRO

    Thanks @Socks .. I know this adds to my list of stupid questions.. but.. what does the X stand for?

  • SocksSocks London, UK.Posts: 12,698Member, PRO

    @monkeyboy simian said:
    Thanks @Socks .. I know this adds to my list of stupid questions.. but.. what does the X stand for?

    X is for 'Xylidic'

    (An acid derived from xylic acid or related compounds)

  • monkeyboy+simianmonkeyboy simian Posts: 421Member, PRO
    edited June 15

    @Socks I'm guessing that my question was really stupid

  • SocksSocks London, UK.Posts: 12,698Member, PRO

    @monkeyboy simian said:
    @Socks I'm guessing that my question was really stupid

    Not at all !

    It's just a random letter !!

  • monkeyboy+simianmonkeyboy simian Posts: 421Member, PRO

    @Socks .. Thanks, you are kind to me. I'm struggling (of course) with how to apply what you've done. Would it be with the expression editor?

  • monkeyboy+simianmonkeyboy simian Posts: 421Member, PRO

    @-Timo- I think, yes. I'm really grateful for that. I'm also disappointed that after using GS for I think 4 years now, that I can't work this stuff out yet. My feebleness of mind is so lame. Thanks, I shall now try and digest what you've done.

  • PhilipCCPhilipCC Encounter Bay, South AustraliaPosts: 1,217Member, PRO
    edited June 16

    @monkeyboy simian said:
    @-Timo- ...I'm also disappointed that after using GS for I think 4 years now, that I can't work this stuff out yet.

    I've been here for 5 years or more, I think :/ , and I would have struggled to work that out by myself. That's the best thing about GS Forum, ask an intelligent question and someone will step up and help out. :)

Sign In or Register to comment.