Also ich habe folgendes Problem:
Ich habe ein Stationskommando welches nur einmal aufrufbar sein soll. Das Kommando ist ein endlosscript. Jetzt möchte ich aber das dieses Kommando pro station nur einmal aufgerufen werden kann.
Ich habe folgende Abfrage im Script:
Code: Select all
* Stationstasks 1 - 10
$task.min = 10
$task.max = 19
$task.curr = $task.min
* Scanne ob Script aktiv
while $task.curr <= $task.max
if [THIS] -> is script MeinSkript on stack of task= $task.curr
* Wenn ja script beenden und meldung ausgeben
display subtitle text: text= 'Kommando auf dieser station schon aktiv' duration= 7000 ms
return [FALSE]
end
* nächstes Kommando 'scannen'
inc $task.curr =
end
* Wenn script nicht aktiv dann starte
...(scriptcode)