Toggle Add (+1 when state selected) Subtract (-1 when state normal)

Is there a way to use only one object and a couple triggers to toggle a number variable.

Say I have variable NumCount = 0

And a bunch of objects with a selected state.

I want to +1 NumCount whenever an object state is selected, then -1 if an object state is unselected (back to normal).

Sounds simple on paper... but my brain, coffee and storyline ain't getting along on this one.

Thanks!

Ryan

P.S. Not a robot.

7 Replies
Paris Granville

I think I figured it out. IYou have to use not= to selected.

Paris Granville
K-12 World Language
Competency Credits Coordinator
bellevue school district
12111 NE 1st Street
Bellevue, WA 98005
PHONE: 425.456.4051 | FAX: 425.456.4176 | granvillep@bsd405.org

Bellevue School District Mission: To provide all students with an exemplary college preparatory education so they can succeed in college, career and life.