Jump to content
Zum Start hinzufügen

Weitere Informationen

3D-Modellbahn Studio

Eine Vollbild-App auf Ihrem Startbildschirm mit Push-Benachrichtigungen und mehr.

So installieren Sie diese App auf iOS und iPadOS
  1. Tippen Sie auf das Teilen-Symbol in Safari
  2. Scrollen Sie durch das Menü und tippen Sie auf Zum Startbildschirm hinzufügen.
  3. Tippen Sie oben rechts auf Hinzufügen.
So installieren Sie diese App auf Android
  1. Tippen Sie auf das 3-Punkte-Menü (⋮) in der oberen rechten Ecke des Browsers.
  2. Tippen Sie auf Zum Startbildschirm hinzufügen oder App installieren.
  3. Bestätigen Sie durch Tippen auf Installieren.

Empfohlene Beiträge

Geschrieben

Hi all,

Using V6. Could anyone let me know, how to create an event which triggers when something else happened 3 times. (For example, signal turns red when train completed 3 laps on the layout.)

Geschrieben

Hello, I just made this in V6, please study this. You may always ask extra information how this is done..  
Kind regards, Herman

count problem in V6.mbp

Attention In V6 you have to program a signal to work. That is not explained here, we can help with that, but it is another thing. ( before a red signal trains do not stop in V6, exept when it  is done by EV ) If possible take the step to V7 or V8 where signal handling is effective done by the 3MBStudio.

Bearbeitet von Herman
extra info signal V6

Geschrieben

Hello,

With a small extension you can automatically stop the train after 3 turns and set the counter back to 0. Set the signal to green , start the trains again and the game starts from the beginning.

Kind regards

streit_ross

Count problem in V6 (1).mbp

Bearbeitet von streit_ross

Geschrieben

Herman and streit_ross both beat me to it  (y)

 

Still, here's my example:    counter variable example.mbp

When the signal is set to "clear", I set an object variable with the name "counter" to a value of 3
This object variable is stored in the signal. But any variable - object or module - will do the trick.

Upon leaving the contact, I reduce the value in that variable by 1

1218956586_counter1.jpg.b648d2783049c63491a8ed255c9bc8c1.jpg

 

and every time the variable changes, I

  • write it's value into a text field 
  • check if the value is 0 or less
  • and change the state of the signal to "stop" if that's the case.
    The two second delay before the signal change is for beauty only and not required

1238135385_counter2.jpg.6f89cd3bc86cc3fd7de9aa06d10be9ac.jpg

Kind regards
Goetz

 

Bearbeitet von Goetz
spelling

Geschrieben
  • Autor

Gentleman!

Thank you very much for your detailed answers!

Have a great day!

Erstelle ein Benutzerkonto oder melde dich an, um zu kommentieren

Push-Benachrichtigungen konfigurieren

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.