Author Topic: Eventing Help: How to make an activate counter?  (Read 625 times)

How do I set events for a brick to make it when you activate the brick, it counts upward on 4 print bricks. (0001 - 9999)?

Eventing Lessons
Today's Lesson: Print Count
Event Effect: The number on a brick increases/decreases.
Events (Increases):
onActivate | <NAMED BRICK> | increamentPrintCount | <Number that you want to increase the number by>
Events (Decrease):
onActivate | <NAMED BRICK> | decreamentPrintCount | <Number that you want to decrease the number by>

Are there several digits?
Event Effect: When the first digit overflows/underflows, the next digit rises/lowers.
Events (Increase):
onActivate | <NAMED BRICK> | increamentPrintCount | <Number that you want to increase the number by>
onPrintCountOverflow | <NAMED BRICK> | increamentPrintCount | <Number that you want the next digit to increase by>

Events (Decrease):
onActivate | <NAMED BRICK> | decreamentPrintCount | <Number that you want the number to decrease by>
onPrintCountUnderflow | <NAMED BRICK> | decreamentPrintCount | <Number that you want the next digit to decrease by>

onPrintCountOverflow | <NAMED BRICK> | increamentPrintCount | <Number that you want the next digit to
onPrintCountUnderflow | <NAMED BRICK> | decreamentPrintCount | <Number that you want the next digit to decrease by>
And to make this clear, these events need to be on the actual Print block, and the "Named Brick" is the next digit. Increasing the 10ths place would increment the 100ths place, decrementing the 10ths place would decrement the 1s place.

[   ]          [ 0 ] [ 0 ] [ 0 ] [ 0 ]

^              \_____________/
Brick with    Print bricks with
event 0          event 1, except
                    with different
                   <NAMED BRICK>
                         values.


Eventing Lessons
Today's Lesson: Print Count
Event Effect: The number on a brick increases/decreases.
Events (Increases):
  • onActivate | <Brick> | increamentPrintCount | <Number that you want to increase the number by>

Events (Decrease):
  • onActivate | <Brick> | decreamentPrintCount | <Number that you want to decrease the number by>


Are there several digits?
Event Effect: When the first digit overflows/underflows, the next digit rises/lowers.
Events (Increase):
  • onActivate | <Brick1> | increamentPrintCount | <Number that you want to increase the number by>
  • [1]onPrintCountOverflow | <Brick2> | increamentPrintCount | <Number that you want the next digit to increase by>
    Events (Decrease):
  • onActivate | <Brick1> | decreamentPrintCount | <Number that you want the number to decrease by>
  • [1] onPrintCountUnderflow | <Brick2> | decreamentPrintCount | <Number that you want the next digit to decrease by>

Code: [Select]
[   ]          [ 0 ] [ 0 ] [ 0 ] [ 0 ]

^              \_____________/
Brick with    Print bricks with
event 1          event 2, except
                    with different
                   <NAMED BRICK>
                         values.


Eventing Lessons
Today's Lesson: Print Count
Event Effect: The number on a brick increases/decreases.
Events (Increases):
[1] onActivate | <Brick> | increamentPrintCount | <Number that you want to increase the number by>
Events (Decrease):
[1] onActivate | <Brick> | decreamentPrintCount | <Number that you want to decrease the number by>

Are there several digits?
Event Effect: When the first digit overflows/underflows, the next digit rises/lowers.
Events (Increase):
[1] onActivate | <Brick1> | increamentPrintCount | <Number that you want to increase the number by>
[2]onPrintCountOverflow | <Brick2> | increamentPrintCount | <Number that you want the next digit to increase by>
Events (Decrease):
[1] onActivate | <Brick1> | decreamentPrintCount | <Number that you want the number to decrease by>
[2] onPrintCountUnderflow | <Brick2> | decreamentPrintCount | <Number that you want the next digit to decrease by>

Sorry about that, look at this one.