Jump to content



Tutorial info Visit support topic

  • Added on: Dec 18 2014 01:43 AM
  • Date Updated: Dec 18 2014 03:04 AM
  • Views: 9085
 


* * * * *
2 Ratings

How to Add High Score Post-It note to EM table apron

How to add a High Score POst it note to the EM table apron

Posted by gtxjoe on Dec 18 2014 01:43 AM
Files to use with this tutorial - https://www.dropbox.... addon.zip?dl=0
 
Demo table attached
===================
Open and run "High Score PostIt 1.2.vpt" to see a demo of the High Score Post-It note
Press Left Flipper to increase game score
Press Plunger to simulate end of game.  Score will be checked against current High Score
To enter Initials, use left and right flipper to changeletter.  Press Start button to select letter
 
 
How to add to an EM table
=========================
Overview:  Copy post-it note table objects, import Post-it images, copy Post-It script from template table, set High Score filename, add 2 lines of code to your existing table script
 
 
1. Open the table you want to add the Post-It to.
 
2. Open "High Score PostIt 1.2.vpt", click on Backdrop button on left
 
3. Copy and paste the High Score Post-It objects from the backdrop (items in the top right of table) to the desired table's backdrop (drag a box around them and Ctrl-C to copy. Adjust location if needed
 
4. Import the 4 Post-It note image files into the table using the Import Manager
 
5. From the Post-It template table, click on Script and copy the High Score Post-It section starting at line 100 and paste it into the bottom of the desired table
 
6. You are done with the Post-It template table, so close it
 
7. In your table script, modify the Highscore filename, "xxxxHighscorePostIt.txt" at the top of the Post-It script.  Filename must be unique for each table
 
8. Now add this line to the top of the KeyDown sub:
    If PostItHighScoreCheck(keycode) then Exit Sub
 
9. Now you will need to add one of the following lines below to the bottom of the Game Over sub of the table.  Note:  Each table is different, you will have to figure out the scoring variable and the game over/match over subroutine
 
   To find the Game Over sub, search for GameOver or MatchOver or GameOn or Endgame or Over
 
   Now the find the name of the score variable/variables, usually Score, Score(1), Score1, PlayerScore, etc
 
   Copy one of these lines to the bottom of the Game Over sub and replace xxxx below with the variable used to track the scores
    CheckNewHighScorePostIt1Player xxxx '1 player table
    CheckNewHighScorePostIt2Player xxx1, xxx2 '2 player table
    CheckNewHighScorePostIt3Player xxx1, xxx2, xxx3 '3 player table
    CheckNewHighScorePostIt4Player xxx1, xxx2, xxx3, xxx4 '4 player table
 
 
Note:  This can be used with ROM games that use LED or Reel scoring, but you have to do extra work to extract the scores.  This is not covered here, but there is one example attached.  Post a message and we can investigate
 
 
Troubleshooting
If Post-It not visible, 
Make sure you imported the Post-It images in step 3
Iin backdrop Options, make sure Enable EMReels is checked.  If you check and additions items are displayed, move them off the table)
 
 
 If you have trouble with a table, post here to discuss
 
 
I don't know who to credit for the Post-It Note feature (let me know).  I took one version of it and tried to make it as easy as possible to add to a table