Jump to content

Recommended Posts

Posted

I waded into the script of a VPX table in order to try and enhance the sound code to be similar to the sounds I heard in other tables. At that time I was unable to find much on how all this stuff works and spent a good deal of time looking, cutting, pasting, and trying things.

 

I thought I would document what I learned so that others might have a starting point or an on-ramp to VPX scripting.

 

This is the first in a series on VPX scripting. As an example I use the VPX table, Teacher’s Pet for what I hope is a gentle introduction — geared to the person for whom scripting (and perhaps even programming itself) is new.

 

VPX Scripting — Part 1

Posted

Great work JC and very useful!

This will make it much easier for those just starting out and for those who already know a little about VPX....

great initiative, thank you for your dedication and all your work

hugs

Teisen

  • 9 months later...
Posted

These are wonderfully written John. Thanks so much!  I have one question if anyone knows it. Can you reference an outside VBscript file that can override a Sub or gets inserted in the running code?

 

Occasionally I want to add a bit of code for my Firebutton to work as a Launch button. It's no big deal to assign a custom button map. It's just a few lines. When I update my tables I often have to update the script too. Then I have to find the button section and add the code again. It would be great if I could just reference another script at the top or bottom of the original table script. It seems like it would save me time.
https://www.vpforums.org/index.php?showtopic=45388

 

Maybe VPX has a method for this already. I export all my scripts into my tables folder. Does VPX already have a way to do small override for parts of scripts?

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...