Wait and both kinds of until loops; blocks run directly

Script runs are resumable threads saved with the game; Rhai is gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Richard ZinkandClaude Opus 5.5 committed 2026-11-05 18:57:36 +01:00
1 parent 95cf3ce81c
commit d17668f3b2
13 files changed
+466 -686

No files matched your search

+7
View File
@@ -1331,3 +1331,10 @@ demo.m2.title = Neu gewürfelt
demo.m2.story = Diese Karte wird für jeden Durchgang der Kampagne neu gewürfelt. Besiege alle Helden.
demo.m2.start = Eine Zufallskarte. Selbst ich habe sie noch nie gesehen.
demo.m2.wave = Zwei Minuten sind um: Die Helden kommen.
blk.until = Wiederhole bis
blk.dountil = Wiederhole, prüfe danach: bis
blk.wait = Warte
blk.w_seconds = Sekunden
blk.help.until = Führt die Blöcke darin immer wieder aus, bis die Bedingung gilt - geprüft vor jedem Durchlauf; gilt sie schon, läuft der Inhalt gar nicht.
blk.help.dountil = Führt die Blöcke darin aus, prüft dann die Bedingung und wiederholt, bis sie gilt - der Inhalt läuft mindestens einmal.
blk.help.wait = Hält dieses Skript einige Sekunden an, danach geht es mit dem nächsten Block weiter (auch in Schleifen).
+7
View File
@@ -1332,3 +1332,10 @@ demo.m2.title = Rolled Anew
demo.m2.story = This map is rolled anew for every run of the campaign. Defeat every hero.
demo.m2.start = A random map. Even I have never seen it before.
demo.m2.wave = Two minutes are over: the heroes come.
blk.until = Repeat until
blk.dountil = Repeat, then check: until
blk.wait = Wait
blk.w_seconds = seconds
blk.help.until = Runs the blocks inside again and again until the condition holds - checked before each run, so if it already holds the inside does not run at all.
blk.help.dountil = Runs the blocks inside, then checks the condition and repeats until it holds - the inside always runs at least once.
blk.help.wait = Pauses this script for some seconds, then it goes on with the next block (also inside loops).
+7
View File
@@ -1332,3 +1332,10 @@ net.coop_editor = Editor campaign
net.coop_builtin = Built-in campaign
net.coop_editor_mission = Editor campaign {0}: mission {1} ({2})
net.coop_editor_none = No mission of the editor campaign fits co-op (map at least 72x72, a goal besides rival masters)
blk.until = Repetir hasta
blk.dountil = Repetir y luego: hasta
blk.wait = Esperar
blk.w_seconds = segundos
blk.help.until = Ejecuta los bloques de dentro una y otra vez hasta que se cumpla la condición; se comprueba antes de cada vuelta, así que si ya se cumple no se ejecuta nada.
blk.help.dountil = Ejecuta los bloques de dentro, luego comprueba la condición y repite hasta que se cumpla; el contenido se ejecuta al menos una vez.
blk.help.wait = Detiene este script unos segundos y luego sigue con el siguiente bloque (también dentro de bucles).
+7
View File
@@ -1332,3 +1332,10 @@ net.coop_editor = Editor campaign
net.coop_builtin = Built-in campaign
net.coop_editor_mission = Editor campaign {0}: mission {1} ({2})
net.coop_editor_none = No mission of the editor campaign fits co-op (map at least 72x72, a goal besides rival masters)
blk.until = Ripeti finché
blk.dountil = Ripeti, poi controlla: finché
blk.wait = Attendi
blk.w_seconds = secondi
blk.help.until = Esegue i blocchi interni più volte finché la condizione è vera; viene controllata prima di ogni giro, quindi se è già vera il contenuto non viene eseguito.
blk.help.dountil = Esegue i blocchi interni, poi controlla la condizione e ripete finché è vera; il contenuto viene eseguito almeno una volta.
blk.help.wait = Mette in pausa questo script per alcuni secondi, poi prosegue con il blocco successivo (anche nei cicli).
+7
View File
@@ -1332,3 +1332,10 @@ net.coop_editor = Editor campaign
net.coop_builtin = Built-in campaign
net.coop_editor_mission = Editor campaign {0}: mission {1} ({2})
net.coop_editor_none = No mission of the editor campaign fits co-op (map at least 72x72, a goal besides rival masters)
blk.until = Повторять, пока не
blk.dountil = Повторять, затем проверить: пока не
blk.wait = Ждать
blk.w_seconds = сек.
blk.help.until = Снова и снова выполняет блоки внутри, пока условие не станет верным; проверка перед каждым проходом, поэтому если оно уже верно, блоки не выполняются.
blk.help.dountil = Выполняет блоки внутри, затем проверяет условие и повторяет, пока оно не станет верным; блоки выполняются хотя бы один раз.
blk.help.wait = Приостанавливает этот скрипт на несколько секунд, затем выполняется следующий блок (и внутри циклов).