# HG changeset patch # User Wuzzy # Date 1687938073 0 # Node ID 6f6f15fb33d51582a49df0adcc1cd17dc875248d # Parent 1bd9936f6b010abc3794483b3f8134b2e48a45da LuaGameplay: fix syntax error for Retreat function diff -r 1bd9936f6b01 -r 6f6f15fb33d5 LuaGameplay.wiki --- a/LuaGameplay.wiki Wed Jun 28 06:03:32 2023 +0000 +++ b/LuaGameplay.wiki Wed Jun 28 07:41:13 2023 +0000 @@ -31,10 +31,10 @@ Normally, a “Coward” taunt may be played and an announcer message may be shown (depending on the situation). Set the optional `noTaunts` parameter to `true` to force the engine to never play a taunt or show a message. `noTaunts` is `false` by default. -=== Retreat(time [, respectGetAwayTimeFactor) === +=== Retreat(time [, respectGetAwayTimeFactor]) === Forces the current turn into the retreating phase, as if the hog made an attack. That is, the current hedgehog is unable to attack or select a weapon, only movement is possible until the retreat time is up. -The retreat time must be set with `time` in milliseconds. By default, this time is automatically multiplied with get-away time percentage from the game scheme for seamless integration with schemes. If you want to ignore the game scheme for some reason and set the retreat time no matter what, set `respectGetAwayTimeFactor` to `false`. +The retreat time must be set with `time` in milliseconds. By default, this time is automatically multiplied with get-away time percentage from the game scheme for seamless integration with schemes. If you want to ignore the game scheme and set the retreat time to a fixed value, set `respectGetAwayTimeFactor` to `false`. If the current hedgehog was busy doing an attack, the attack is aborted, no shot is made. If this function is called in the ready phase of a turn, the ready phase continues normally, but the turn will begin in the retreat phase instead.