Jump to content



Photo
- - - - -

EM reel in B2S Designer with my own reel images, how to script this ?

EM reel b2S

  • Please log in to reply
2 replies to this topic

#1 jejepinball

jejepinball

    Enthusiast

  • Members
  • PipPipPip
  • 65 posts

  • Flag: ---------

  • Favorite Pinball: Theatre Of Magic, Metallica, Goldrake, Archer (Pinball FX)

Posted 07 October 2021 - 10:00 PM

Hi, I created a backglass in the designer with an EM reel with my own images (image for the value 0 to 9).

The EM reel has only 1 reel count and I want to script it for display all the 9 values.

Here my code in VIsual Pinball :

Controller.B2SSetReel 1,4 'I want to set the value 4 to my EM reel

My problem is when I set the value 0, the value 3 appear to the EM reel
when I set the value 4, the value 2 appear :

0 -> 3

1 -> 6

2 -> 1

3 -> 9

4 -> 2

5 -> 9

6 -> 5

7 -> 7

9 -> 1

 

Where is the problem ? I shouldn't use B2SSetReel ? Second parameter don't correspond to a simple value ?



#2 wiesshund

wiesshund

    VPF Legend

  • Members
  • PipPipPipPipPipPipPip
  • 11,871 posts

  • Flag: United States of America

  • Favorite Pinball: How many can i have?

Posted 08 October 2021 - 08:04 AM

Controller.B2SSetScorePlayer PU, Score(CurrentPlayer)

 

PU being the value of the player up

Score(currentplayer) being the score value of the current player

 

You can call your variables what ever you want of course

 

Controller.B2SSetScorePlayer 1, 4 

to do what you wanted to do above


If you feel the need to empty your wallet in my direction, i don't have any way to receive it anyways

Spend it on Hookers and Blow


#3 jejepinball

jejepinball

    Enthusiast

  • Members
  • PipPipPip
  • 65 posts

  • Flag: ---------

  • Favorite Pinball: Theatre Of Magic, Metallica, Goldrake, Archer (Pinball FX)

Posted 08 October 2021 - 05:31 PM

Controller.B2SSetScorePlayer PU, Score(CurrentPlayer)

 

PU being the value of the player up

Score(currentplayer) being the score value of the current player

 

You can call your variables what ever you want of course

 

Controller.B2SSetScorePlayer 1, 4 

to do what you wanted to do above

Hi, Thank you for your answer, but it doesn't work !

But the use of B2SSetScorePlayer gave me an idea : the problem was in the designer, I did not have "B2S score type" for the reel. If I choose "B2S score type" at Scores and "B2S player no" at Player 1, my script with B2SSetReel works !

Now, I can use B2SSetReel or B2SSetScorePlayer.







Also tagged with one or more of these keywords: EM reel, b2S