ifPrintCount = # (VCE Help)

Author Topic: ifPrintCount = # (VCE Help)  (Read 1085 times)

I know it's possible through VCE to get it so if a print count hits a certain number it can trigger events.
There wasn't really a good explanation on this, and here's what I want to do with it:

~Situation~
When you click Button 1, itsself and buttons 2-10 will disappear while button 1 will play sound somewhere. After they disappear the print counter is suppose to go up to 5 and it needs to make the buttons reappear after hitting 5.

it may be easier to do something like

[0]onactivate>namedbrick[button1]>disappear[5]
...
[0]onactivate>namedbrick[button10]>disappear[5]
[0]onactivate>namedbrick[counter]>setprintcount[0]
[1000]onactivate>namedbrick[counter]>setprintcount[1]
[2000]onactivate>namedbrick[counter]>setprintcount[2]
[3000]onactivate>namedbrick[counter]>setprintcount[3]
[4000]onactivate>namedbrick[counter]>setprintcount[4]
[5000]onactivate>namedbrick[counter]>setprintcount[5]

first lines are to disappear the buttons
next lines are to set the counter to the desired numbers

it's also fairly straight forward to do it with a loop and VCE or default printcount shenanigans
but it's also a lot easier to just fake it like that


But I need the print to trigger an event when it hits a certain number.

[5000]onactivate>trigger whatever you wanted?

if you're a bit more descriptive as to what you're trying, I could give more help

When you click button 1 it will play a sound. It and buttons 2-10 will dissappear and a print counter will start going up to 5. Once it hits five the buttons will reappear.

When you click button 1 it will play a sound. It and buttons 2-10 will dissappear and a print counter will start going up to 5. Once it hits five the buttons will reappear.
add
onactivate>self>playsound
to the start of
[0]onactivate>namedbrick[button1]>disappear[5]
...
[0]onactivate>namedbrick[button10]>disappear[5]
[0]onactivate>namedbrick[counter]>setprintcount[0]
[1000]onactivate>namedbrick[counter]>setprintcount[1]
[2000]onactivate>namedbrick[counter]>setprintcount[2]
[3000]onactivate>namedbrick[counter]>setprintcount[3]
[4000]onactivate>namedbrick[counter]>setprintcount[4]
[5000]onactivate>namedbrick[counter]>setprintcount[5]

onactivate > self > vce_ifValue > <var:br:printcount> == (number)
onvariabletrue > [outcome]

onactivate > self > vce_ifValue > <var:br:printcount> == (number)
onvariabletrue > [outcome]
This is what I was looking for.

This is what I was looking for.
just note that you may be overcomplicating it