barnamedve Geschrieben 19. Januar 2023 Geschrieben 19. Januar 2023 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.)
Herman Geschrieben 19. Januar 2023 Geschrieben 19. Januar 2023 (bearbeitet) 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 19. Januar 2023 von Herman extra info signal V6
streit_ross Geschrieben 19. Januar 2023 Geschrieben 19. Januar 2023 (bearbeitet) 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 19. Januar 2023 von streit_ross
Goetz Geschrieben 19. Januar 2023 Geschrieben 19. Januar 2023 (bearbeitet) Herman and streit_ross both beat me to it 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 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 Kind regards Goetz Bearbeitet 19. Januar 2023 von Goetz spelling
barnamedve Geschrieben 24. Januar 2023 Autor Geschrieben 24. Januar 2023 Gentleman! Thank you very much for your detailed answers! Have a great day!
Empfohlene Beiträge
Erstelle ein Benutzerkonto oder melde dich an, um zu kommentieren
Du musst ein Benutzerkonto besitzen, um einen Kommentar verfassen zu können
Benutzerkonto erstellen
Neues Benutzerkonto für unsere Community erstellen.
Neues Benutzerkonto erstellenAnmelden
Du hast bereits ein Benutzerkonto? Melde dich hier an.
Jetzt anmelden