script help please

Slippery Jim

Pinball Wizard
Joined
Dec 13, 2018
Messages
87
Reaction score
33
Points
25
Favorite Pinball Machine
Stern Dracula
Can someone help with a script please? I want to have a 2 digit segment display that does one thing only. That is to display the amount of time left for the ball saver feature. IE I want it to count down as soon as it starts (on my table it starts when the ball travels through the plunger lane gate) Mine is set for 25 seconds, but turns off when the ball drains, you still get the second chance but so you only get one ball saver per ball.
A few years back Popotte showed me it was possible, but that was on another forum which no longer exists and I have lost his messages.

Ideally Id like it to flash when down to ten seconds left, but I will be happy with just the countdown
 
@Popotte

It looks like you are the best person to answer this. I don't have a clue myself.
 
You have just to activate a 1000ms timer (BallSaverTimer) when the ball travels through the plunger lane gate and to display on your 2 digit display a variable named (for example) MyTimer initialized to 25.
Sub BallSaverTimer_Expired()
MyTimer = MyTimer -1
Display MyTimer on your segment
If MyTimer > 0 Then Exit Sub
MyTimer.Enabled = False
blank your display
End Sub

Sub Drain()
If MyTimer > 0 Then
MyTimer.Enabled = False
Blank your display
go to create a new ball
Exit Sub
End If
 
Don't forget to disable the timer if you tilt. And reset the display to blank.
 
General chit-chat
Help Users
You can interact with the ChatGPT Bot in any Chat Room and there is a dedicated room. The command is /ai followed by a space and then your ? or inquiry.
ie: /ai What is a EM Pinball Machine?
  • No one is chatting at the moment.
  • Chat Bot Mibs Chat Bot Mibs:
    DrazeScythe has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Torntabittz has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    brotherboard has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    GARRY040 has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    BL2K has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Chilldog has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    rodneyfitz has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    ace19120 has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Tomasaco has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Greek_Jedi has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Beermano has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    02browns has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    nitram1864 has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    aeponce has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    JEAN LUC has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    lorenzom has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    maxangelo19 has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Dragonslapper has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    royaljet has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Tyfox has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Goldtopboy has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    slick267 has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    dabreeze has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Spike has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Tofa has left the room.
      Chat Bot Mibs Chat Bot Mibs: Tofa has left the room.
      Back
      Top