Score Motors
Score motors are used in electro-mechanical games to add points to a player's score. They consist of multiple cams that are stacked on top of each other. Each cam has different patterns around the edges, and switches sit at different positions in order to open or close at specific times when the motor runs and thus the cams rotate.
A typical score motor, found in Gottlieb and early Bally machines.
The score motor assembly sits typically at the bottom of the cabinet. The produced switch sequences are used when the game needs to do several things in a specific order. Although its main purpose is triggering the score reel relays, it is often used to drive other mechanisms as well.
Scoring in an EM
There are two different modes of operation:
- The player scores single points, e.g. one, ten, hundred, and so on. In this case, a pulse is directly sent to the coil driving the corresponding score wheel, which increases its position by one.
- The player scores multiple points, like five, twenty, or 300. In this case, the score motor starts and the appropriate numbers of coil pulses are triggered by the switches around cams. For example, if a player scores fifty points, the score motor runs and enables the ten point relay to pulse five times. With each pulse of the ten point relay, the 10's score reel coil fires, which advances the score reel one position.
Another property of a score motor is that it has no state, i.e. it doesn't know the actual score. This means that while the motor is running and the player scores multiple points, they are ignored. For single points, it depends on the machine, some allow single-point scoring while the motor is running, some don't.
Note
For an in-depth look at score motors, check out the fantastic article Animated Score Motor circuits from EM Pinball Machines at Fun With Pinball.
Player Experience
The way the scoring works results in a very particular timing of when exactly the score reels move during the game. Since in most games, chimes and bells are fired when the reel position changes, the player not only sees, but also hears these patterns. This means that accurate timing is essential for an authentic gaming experience.
Setup
VPE provides a component that accurately simulates the behavior described above. It handles score resets and add points, all while performing accurate timing that can be specified by the table author.
To setup a score motor, select any game object, click on Add Component in the inspector and select Visual Pinball -> Mechs -> Score Motor.
Next, configure the score motor. The inspector shows the following options:
- Steps defines how many steps the score motor pulses for one turn.
- Duration defines the length of time it takes the score motor to completely cycle.
- Block Scoring defines if single point scoring is blocked while the score motor is running. As mentioned before, multiple point scores are always blocked while the score motor is running.
- Increase by # defines the behavior of the score motor for all of its the possible outputs. This gives the table author control over the timing and execution of
Wait
(pause) orIncrease
(add points) actions. The example in the screenshot shows a motor where when the player scores 30 points, it pulses on the first three actions of the score motor.
Note
The minimum amount of Steps
for a score motor is 5
. Increase by 5
will not be shown under Reel timing by increase
if Steps
is set to 5, as all actions would be Increase
.
By default, the score motor is configured to:
- 6 Steps
- 769 ms total run time
Next, associate the score motor with the score reel display by selecting it in its inspector.
Usage
Score motors are primarily used in EMs, so we'll focus on how to use them in Visual Scripting. Programming a game with a score motor is a bit more complicated than with traditional displays for one reason: Scores might get blocked due to the motor being active, so you cannot solely rely on a score variable being updated.
To make this less cumbersome, we've added an On Display Changed node that emits the actual value of the display when it has been updated (after potentially blocking scores).
Give you've already set up your score reel display, the recommended approach is the following:
- Add an Add Score event in the Visual Scripting GLE's inspector.
- Add a Score player variable in the same inspector.
- In your graph, whenever you do scoring, use a Trigger Pinball Event node and set the Add Score event to be emitted.
- In your graph, at a centralized location, create an On Pinball Event node, select the Add Score event, and link it to an Update Display node.
- Just beneath, add an On Display Changed node, select your score reel, and link the node to Set Player Variable node, with Score to be updated.
- Use the Clear Display node when the game starts, in order to reset the score reels to zero.
This setup allows you to:
- Easily add scores in your game logic by triggering an Add Score event.
- Subscribe to the Score variable in order to trigger score-dependent game logic, while taking into consideration eventually blocked scores by the motor.
Warning
If you're working on an original EM game, make sure to only emit scores that a score motor can actually handle. For example, it's impossible to score anything higher than five points (or 50, 500, ...) at once. It's also impossible to score a combination of multiple points at once, like 150.
Finally, you might want to hook up other events to the score motor's behavior. For example, in Gottlieb's Volley, some lamps are toggled off while the motor is running. In order to achieve that, the score motor component exposes two switches:
- The Motor Running switch is activated when the motors starts and deactivated when it stops.
- The Motor Step Switch pulses on each step.
In order to hook into those switches, you'll have to create them in the GLE inspector and link them to the corresponding switches in the Switch Manager.
Then, in your graphs, add your logic behind the corresponding On Switch Changed node(s).