LuaAPI.wiki
changeset 1325 14223a7d3c15
parent 1304 41f5508fe01c
child 1326 81f8f7659f50
equal deleted inserted replaced
1324:bb87061fc23f 1325:14223a7d3c15
  1032 
  1032 
  1033 ==== `SkipTurn()` (0.9.24) ====
  1033 ==== `SkipTurn()` (0.9.24) ====
  1034 Forces the current hedgehog to skip its turn.
  1034 Forces the current hedgehog to skip its turn.
  1035 
  1035 
  1036 ==== `EndTurn([noTaunts])` (0.9.23) ====
  1036 ==== `EndTurn([noTaunts])` (0.9.23) ====
  1037 Ends the current turn.
  1037 Ends the current turn immediately.
  1038 
  1038 
  1039 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.
  1039 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.
       
  1040 
       
  1041 === `Retreat(time [, respectGetAwayTimeFactor)` (0.9.25) ===
       
  1042 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.
       
  1043 
       
  1044 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`.
       
  1045 
       
  1046 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 af a turn, the ready phase is not stopped immediately, but the turn will begin in the retreat phase instead.
       
  1047 
       
  1048 Note: If you want the turn to end instantly, it is recommended to use `EndTurn` instead.
  1040 
  1049 
  1041 ==== <tt>!EndGame()</tt> ====
  1050 ==== <tt>!EndGame()</tt> ====
  1042 Makes the game end.
  1051 Makes the game end.
  1043 
  1052 
  1044 === Ammo ===
  1053 === Ammo ===