# sequential-ness

Member, PRO Posts: 486

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

• London, UK.Member Posts: 12,822
edited June 2017

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

• Member, PRO Posts: 486

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

• London, UK.Member Posts: 12,822

@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)

• Member, PRO Posts: 486
edited June 2017

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

• London, UK.Member Posts: 12,822

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

Not at all !

It's just a random letter !!

• Member, PRO Posts: 486

@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?

• Member Posts: 2,313

Something like this?

# ✮ Available for hire! support@gsinvention.com ✮

• Member, PRO Posts: 486

@-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.

• Encounter Bay, South AustraliaMember Posts: 1,390
edited June 2017

@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.