#### Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

# sequential-ness

Posts: 486Member, PRO

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?

• London, UK.Posts: 12,820Member
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

• Posts: 486Member, PRO

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

• London, UK.Posts: 12,820Member

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

• Posts: 486Member, PRO
edited June 2017

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

• London, UK.Posts: 12,820Member

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

Not at all !

It's just a random letter !!

• Posts: 486Member, 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?

• Posts: 2,320Member, PRO

Something like this?

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

• Posts: 486Member, 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.

• Encounter Bay, South AustraliaPosts: 1,341Member, BASIC
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.