---
title: EMREEL
slug: emreel
description: Learn about variables, methods, and events in VPX, a feature-packed pinball software. Discover how to adjust variables like width, height, and image, and explore the various methods available for enhancing gameplay. Dive into the world of events and explo
createdAt: 2019-11-29T05:18:34.000Z
---

:::hint{type="warning"}
## Mostly Depriciated due to new technology

Most people use Pinup System or UltraDMD instead
:::

## Variables

*Variables are items in vpx you can set, adjust or call.*

| Call                  | Detail                                                                                                                                                                    | Example |
| --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
| Name(string)          |                                                                                                                                                                           |         |
| Width(float)          |                                                                                                                                                                           |         |
| Height(float)         |                                                                                                                                                                           |         |
| X(float)              |                                                                                                                                                                           |         |
| Y(float)              |                                                                                                                                                                           |         |
| Range(float)          |                                                                                                                                                                           |         |
| BackColor(OLE\_COLOR) |                                                                                                                                                                           |         |
| Image(string)         | picture name                                                                                                                                                              |         |
| Reels(float)          |                                                                                                                                                                           |         |
| Spacing(float)        |                                                                                                                                                                           |         |
| IsTransparent(bool)   |                                                                                                                                                                           |         |
| Sound(string)         |                                                                                                                                                                           |         |
| Steps(float)          |                                                                                                                                                                           |         |
| TimerEnabled(bool)    |                                                                                                                                                                           |         |
| TimerInterval(int)    | set interval for triggering the timer (1 equals 1000 timer calls per second, 1000 equals 1 timer call per second, -1 makes it dependent on the FPS that a user can reach) |         |
| UpdateInterval(int)   |                                                                                                                                                                           |         |
| UserValue(any)        | can store any user defined value for re-use later-on                                                                                                                      |         |
| UserImageGrid(bool)   |                                                                                                                                                                           |         |
| ImagesPerGridRow(int) |                                                                                                                                                                           |         |
| Visible(bool)         |                                                                                                                                                                           |         |

## Methods

*Methods are procedures or actions that you can fire in VPX.*

| Call                                     | Detail | Example |
| ---------------------------------------- | ------ | ------- |
| AddValue(int value)                      |        |         |
| ResetToZero()                            |        |         |
| SpinReel(int ReelNumber, int PulseCount) |        |         |
| SetValue(int value)                      |        |         |

## Events

| Event   | Detail | Example |
| ------- | ------ | ------- |
| \_Init  |        |         |
| \_Timer |        |         |
|         |        |         |

```javascript
        dispinterface IDispReelEvents
        {
        properties:
        methods:
                [id(DISPID_GameEvents_Init)]  void Init();
                [id(DISPID_TimerEvents_Timer)]  void Timer();
        }
```

