LUA Handbuch zu EEP: Unterschied zwischen den Versionen

Aus EEP Handbuch
Wechseln zu: Navigation, Suche
 
(10 dazwischenliegende Versionen des gleichen Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
    <h1>System-Variables</h1>
+
 
 
+
 
      
 
      
    <table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;">
+
[[System Variables]]<br>  
        <tr>
+
[[System Function]]<br>  
            <th colspan="2">EEPVer</th>
+
[[Signal Functions]]<br>  
            <th style="padding: 10px;">EEPVer</th>
+
[[Switch Point Functions]]<br>  
        </tr>
+
[[Storage Functions]]<br>  
        <tr>
+
[[Train Functions]]<br>  
            <td scope="row">Type: </td>
+
[[Rolling Stock Functions]]<br>  
            <td style="padding: 10px;">Variable</td>
+
[[Structure Functions]]<br>  
            <td rowspan="4" style="font: 15px Courier New, sans-serif; padding: 10px;">
+
[[Cargo Functions]]<br>
                <pre>
+
[[Track Functions]]<br>  
    if EEPVer < 11 then
+
[[Camera Functions]]<br>  
        print( "Train control via Lua not possible!" )
+
[[Layout Functions]]<br>  
    end
+
[[Virtual Train Depot Functions]]<br>  
                </pre>
+
[[Sound Functions]]<br>
 
+
[[Tip Text Functions]]<br>  
            </td>
+
[[TextureText Functions]]<br>
        </tr>
+
[[Info Text Functions]]<br>
        <tr>
+
[[Tag Text Functions]]<br>
            <td scope="row">Used in: </td>
+
            <td style="padding: 10px;">Script</td>
+
        </tr>
+
        <tr>
+
            <td scope="row">Assigned by: </td>
+
            <td style="padding: 10px;">EEP</td>
+
        </tr>
+
        <tr>
+
            <td scope="row">Requirements: </td>
+
            <td style="padding: 10px;">EEP 10.2 Plug-In 2</td>
+
        </tr>
+
        <tr>
+
            <td scope="row">Purpose: </td>
+
            <td colspan="2" style="padding: 10px;">EEP assignes the version number of EEP to this variable.</td>
+
        </tr>
+
    </table>
+
 
+
 
+
    <br />
+
    <br />
+
    <br />
+
    <table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;">
+
        <tr>
+
            <th colspan="2">EEPTime</th>
+
            <th style="padding: 10px;">EEPTime</th>
+
        </tr>
+
        <tr>
+
            <td scope="row">Type</td>
+
            <td style="padding: 10px;">Variable</td>
+
            <td rowspan="4" style="font: 15px Courier New, sans-serif; padding: 10px;">
+
                if EEPTime == alteZeit + 50 then
+
                <div style="text-indent:20px;">print( "Exactly 50 seconds have passed" )</div>
+
                <div style="text-indent:20px;">alteZeit = EEPTime</div>
+
                elseif EEPTime > alte Zeit + 50 then
+
                <div style="text-indent:20px;">print( "More than 50 seconds have passed" )</div>
+
                <div style="text-indent:20px;">alteZeit = EEPTime</div>
+
                else
+
                <div style="text-indent:20px;">print( "50 seconds didn't expired yet" )</div>
+
                end
+
            </td>
+
        </tr>
+
        <tr>
+
            <td scope="row">Used in: </td>
+
            <td style="padding: 10px;">Script</td>
+
        </tr>
+
        <tr>
+
            <td scope="row">Assigned by: </td>
+
            <td style="padding: 10px;">EEP</td>
+
        </tr>
+
        <tr>
+
            <td scope="row">Requirements: </td>
+
            <td style="padding: 10px;">EEP 10.2 Plug-In 2</td>
+
        </tr>
+
        <tr>
+
            <td scope="row">Purpose: </td>
+
            <td colspan="2" style="padding: 10px;">EEP writes the actual time to this variable. The value counts the number of seconds that passed since midnight (EEP-time).</td>
+
        </tr>
+
    </table>
+
 
+
    <br />
+
    <br />
+
    <br />
+
    <table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;">
+
        <tr>
+
            <th colspan="2">EEPTimeH</th>
+
            <th style="padding: 10px;">EEPTimeH</th>
+
        </tr>
+
        <tr>
+
            <td scope="row">Type: </td>
+
            <td style="padding: 10px;">Variable</td>
+
            <td rowspan="4" style="font: 15px Courier New, sans-serif; padding: 10px;">
+
                print("It is now: "..EEPTimeH..":"..EEPTimeM.." o'clock")
+
            </td>
+
        </tr>
+
        <tr>
+
            <td scope="row">Used in: </td>
+
            <td style="padding: 10px;">Script</td>
+
        </tr>
+
        <tr>
+
            <td scope="row">Assigned by: </td>
+
            <td style="padding: 10px;">EEP</td>
+
        </tr>
+
        <tr>
+
            <td scope="row">Requirements: </td>
+
            <td style="padding: 10px;">EEP 10.2 Plug-In 2</td>
+
        </tr>
+
        <tr>
+
            <td scope="row">Purpose: </td>
+
            <td colspan="2" style="padding: 10px;">EEP writes the current EEP hour into this variable.</td>
+
        </tr>
+
    </table>
+
 
+
 
+
    <br />
+
    <br />
+
    <br />
+
    <table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;">
+
        <tr>
+
            <th colspan="2">EEPTimeM</th>
+
            <th style="padding: 10px;">EEPTimeM</th>
+
        </tr>
+
        <tr>
+
            <td scope="row">Type: </td>
+
            <td style="padding: 10px;">Variable</td>
+
            <td rowspan="4" style="font: 15px Courier New, sans-serif; padding: 10px;">
+
                print("It is now: "..EEPTimeH..":"..EEPTimeM.." o'clock")
+
            </td>
+
        </tr>
+
        <tr>
+
            <td scope="row">Used in: </td>
+
            <td style="padding: 10px;">Script</td>
+
        </tr>
+
        <tr>
+
            <td scope="row">Assigned by: </td>
+
            <td style="padding: 10px;">EEP</td>
+
        </tr>
+
        <tr>
+
            <td scope="row">Requirements: </td>
+
            <td style="padding: 10px;">EEP 10.2 Plug-In 2</td>
+
        </tr>
+
        <tr>
+
            <td scope="row">Purpose: </td>
+
            <td colspan="2" style="padding: 10px;">EEP writes the current EEP minute into this variable.</td>
+
        </tr>
+
    </table>
+
 
+
 
+
    <br />
+
    <br />
+
    <br />
+
    <table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;">
+
        <tr>
+
            <th colspan="2">EEPTimeS</th>
+
            <th style="padding: 10px;">EEPTimeS</th>
+
        </tr>
+
        <tr>
+
            <td scope="row">Type: </td>
+
            <td style="padding: 10px;">Variable</td>
+
            <td rowspan="4" style="font: 15px Courier New, sans-serif; padding: 10px;">
+
                if EEPTimeS == 15 then
+
                <div style="text-indent:20px;">EEPSetSignal( 1 , 1 )  -- switch traffic light 1 to green</div>
+
                elseif EEPTimeS == 45 then
+
                <div style="text-indent:20px;">EEPSetSignal( 1 , 2 )  -- switch traffic light 1 to red</div>
+
                end
+
            </td>
+
        </tr>
+
        <tr>
+
            <td scope="row">Used in: </td>
+
            <td style="padding: 10px;">Script</td>
+
        </tr>
+
        <tr>
+
            <td scope="row">Assigned by: </td>
+
            <td style="padding: 10px;">EEP</td>
+
        </tr>
+
        <tr>
+
            <td scope="row">Requirements: </td>
+
            <td style="padding: 10px;">EEP 10.2 Plug-In 2</td>
+
        </tr>
+
        <tr>
+
            <td scope="row">Purpose: </td>
+
            <td colspan="2" style="padding: 10px;">EEP writes the current EEP second into this variable.</td>
+
        </tr>
+
    </table>
+

Aktuelle Version vom 10. September 2018, 05:16 Uhr


System Variables
System Function
Signal Functions
Switch Point Functions
Storage Functions
Train Functions
Rolling Stock Functions
Structure Functions
Cargo Functions
Track Functions
Camera Functions
Layout Functions
Virtual Train Depot Functions
Sound Functions
Tip Text Functions
TextureText Functions
Info Text Functions
Tag Text Functions