Game logic - Time trigger – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|19}}}}" to "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|13}}}}")
 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=Description=
=Description=
Delayed trigger which fires after given time period.
Delayed trigger which fires after given time period.
*cycle mode - triggers after certain delay
*at specific time mode - triggers at specific in-game hour during the (game) day


=Settings=
= Properties =
*Time - length cycle / specific time
=== Enabled ===
*Type - real seconds / in-game hours / at specific time in game-day
*Trigger runs when se to enabled. Disabling it will not reset it to initial state.
*Repeat count - number of cycles


===At specific time in game-day===
=== Time ===
*24 hour format (0 - 24)
*Defines the time when Trigger fires according to selected type (see below)
*Decimal format → 23.9 = 23:54


=Events=
=== Type ===
*OnTrigger - fires at the start of each cycle
*'''Real time seconds''' - time will define length of cycle in real seconds
*'''In-game hours'''  - time will define length of cycle in game hours
*'''At specific time in game-day''' - trigger will execute at specific game hour
**24 hour format (0 - 24)
**Decimal format → 23.9 = 23:54


=Instructions=
=== Repeat count ===
*Get elapsed time - elapsed time of current repeat cycle
*Number of cycles
*Get remaining time - remaining time of current repeat cycle
 
*Set remaining time - set remaining time of current cycle, next cycle will follow se time trigger value (time)
= Time trigger events =
*Get total elapsed time - returns total elapsed time of all cycles
*[[Ylands:Tile - Time Trigger On Trigger|On Trigger]]
 
= Related instructions =
*[[Ylands:Tile - Game logic enabled|Get / Set Enabled]]
*[[Ylands:Tile - Time trigger elapsed time|Get Elapsed Time]]
*[[Ylands:Tile - Time trigger remaining time|Get / Set Remaining Time]]
*[[Ylands:Tile - Time trigger total elapsed time|Get Total Elapsed Time]]




----
----
{{Ylands scripting navbox}}
{{Navbox/Ylands}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|13}}}}
 
[[Category: Game Logic]]
[[Category: Ylands 0.10]]

Latest revision as of 14:21, 24 November 2023

Description

Delayed trigger which fires after given time period.

Properties

Enabled

  • Trigger runs when se to enabled. Disabling it will not reset it to initial state.

Time

  • Defines the time when Trigger fires according to selected type (see below)

Type

  • Real time seconds - time will define length of cycle in real seconds
  • In-game hours - time will define length of cycle in game hours
  • At specific time in game-day - trigger will execute at specific game hour
    • 24 hour format (0 - 24)
    • Decimal format → 23.9 = 23:54

Repeat count

  • Number of cycles

Time trigger events

Related instructions