User Tools

Site Tools


xmlscripting:xmldb-fr

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
xmlscripting:xmldb-fr [2023/03/18 14:11] – [Exemples généraux de script XML] phil45xmlscripting:xmldb-fr [2023/03/18 14:31] (current) – [Loc Commands] phil45
Line 11: Line 11:
 \\ \\
 \\ \\
-=====Command Examples===== +=====Exemples de commandes===== 
-| :!: The quotes on this page can not be used in XML. \\ ToDoPrefix and suffix the examples with double % chars in the Wiki source. \\ Wrong: <lc id="test"/> \\ Right: %%<lc id="test"/>%% |+| :!: Les guillemets sur cette page ne peuvent pas être utilisées en XML. \\ À fairePréfixe et suffixe les exemples avec double caractère dans les sources du Wiki. \\ Mauvais: <lc id="test"/> \\ Bon: %%<lc id="test"/>%% |
 \\ \\
  
-==== Loc Commands==== +==== Commandes Locomotive==== 
-Within foreach table loops (no ID is requiredits for all that match the conditions) ^ Within if  or as single command outside a loop (ID is required)^ Remarks ^  +Dans les boucles de table foreach (pas d'identifiant requisc'est pour tout ce qui correspond aux conditions) ^ Dans if ou en tant que commande unique en dehors d'une boucle (identifiant requis)^ Remarques ^  
-| %%<lc cmd="gotoblock"  blockid="Sbf"/>%%                 | <lc id="V200" cmd="gotoblock"  blockid="Sbf"/>          | set the destination block "Sbf"  |  +| %%<lc cmd="gotoblock"  blockid="Sbf"/>%%                 | <lc id="V200" cmd="gotoblock"  blockid="Sbf"/>          | définition du bloc de destination "Sbf"  |  
-| <lc cmd="useschedule" scheduleid="Nirvana"/>         | <lc id="V200" cmd="useschedule" scheduleid="Nirvana"/> set the schedule to "Nirvana"    |  +| <lc cmd="useschedule" scheduleid="Nirvana"/>         | <lc id="V200" cmd="useschedule" scheduleid="Nirvana"/> définition de l'horaire pour "Nirvana"    |  
-| <lc cmd="go"/>                                       | <lc id="@loco" cmd="stop"/>                             Loc start/stop                   |  +| <lc cmd="go"/>                                       | <lc id="@loco" cmd="stop"/>                             Démarrage/Arrêt de la locomotive                   |  
-| <lc cmd="gotoblock"  blockid="@var6"/>               | <lc id="V200" cmd="gotoblock"  blockid="@var6"/>        | set the destination block to the var6 Text           |  +| <lc cmd="gotoblock"  blockid="@var6"/>               | <lc id="V200" cmd="gotoblock"  blockid="@var6"/>        | définition du bloc de destination à la variable texte var6           |  
-| <lc cmd="gotoblock"  blockid="$tx1"/>                | <lc id="V200" cmd="gotoblock"  blockid="$tx1"/>         set the destination block to the tx1 Textfield Text  |  +| <lc cmd="gotoblock"  blockid="$tx1"/>                | <lc id="V200" cmd="gotoblock"  blockid="$tx1"/>         définition du bloc de destination à la variable du champ de texte tx1  |  
-| <lc cmd="useschedule" scheduleid="@var6"/>           | <lc id="V200" cmd="useschedule" scheduleid="@var6"/>      | set the schedule to the var6 Text                  |  +| <lc cmd="useschedule" scheduleid="@var6"/>           | <lc id="V200" cmd="useschedule" scheduleid="@var6"/>      | définition de l'horaire à la variable texte var6                  |  
-| <lc cmd="useschedule" scheduleid="Nirvana"/>         | <lc id="V200" cmd="useschedule" scheduleid="Nirvana"/> set the schedule to the tx1 Textfield Text           |  +| <lc cmd="useschedule" scheduleid="Nirvana"/>         | <lc id="V200" cmd="useschedule" scheduleid="Nirvana"/> définition de l'horaire à la variable du champ texte tx1           |  
-| <lc cmd="go"/>                                       | <lc id="@var6" cmd="stop"/> or <lc id="$tx1" cmd="stop"/> | Loc @var6 or Loc $tx1 start/stop                   |  +| <lc cmd="go"/>                                       | <lc id="@var6" cmd="stop"/> or <lc id="$tx1" cmd="stop"/>Démarrage/Arrêt Loc @var6 ou Loc $tx1                   |  
-| <lc cmd="velocity" v="5"/>                           | <lc id="V200" cmd="velocity" v="5"/>                    | set the velocity to 5                                |  +| <lc cmd="velocity" v="5"/>                           | <lc id="V200" cmd="velocity" v="5"/>                    | définition de la vitesse à 5                                |  
-| -not available- (only one loc can be in a a block)   | <lc id="loco1" cmd="block" blockid="b1"/>               puts the loc with ID loco1 in Block "b1"             |  +| -Pas disponible- (seul une locomotive peut être dans un bloc)   | <lc id="loco1" cmd="block" blockid="b1"/>               mettre la locomotive avec l'identifiant loco1 dans le bloc "b1"             |  
-| -not available- (only one loc can be in a a block)   | <lc bkid="bk1" ... /> or <lc bkid="@var6" ... /> or <lc bkid="$tx1" ... />                                     the lcid of the loc in Block bk1 / @var6 (Variabletext)  /$tx1 (Textfieldtext)     | +| -not available- (only one loc can be in a a block)   | <lc bkid="bk1" ... /> ou <lc bkid="@var6" ... /> ou <lc bkid="$tx1" ... />                                     l'identifiant de la locomotive du bloc bk1 / @var6 (Variabletext)  /$tx1 (Textfieldtext)     | 
-| <fn fnchanged="3" f3="true"/>                        | <fn id="loco1" fnchanged="3" f3="true"/>                | Functions true/false                                 |+| <fn fnchanged="3" f3="true"/>                        | <fn id="loco1" fnchanged="3" f3="true"/>                | Fonctions vrai/faux                                 |
  
-Commands: go, stop, velocity, velocity2, percent dispatch, swap, blockside, carcount, min, mid, cruise, max, consist, assigntrain, releasetrain, binstate_on, binstate_off, class, x-go, pomwrite+Commandes: go, stop, velocity, velocity2, percent dispatch, swap, blockside, carcount, min, mid, cruise, max, consist, assigntrain, releasetrain, binstate_on, binstate_off, class, x-go, pomwrite
 \\ \\
 \\ \\
xmlscripting/xmldb-fr.1679145102.txt.gz · Last modified: 2023/03/18 14:11 by phil45