📓
TFS Guide
  • Preface
  • Progress
  • Unique TFS Concepts
  • Interface - Actions
    • Registration
    • Scripting
    • Revscriptsys
  • Interface - Chatchannels
    • Registration
    • Scripting
  • Interface - Creaturescripts
    • Registration
    • Scripting
    • Revscriptsys
  • Interface - Events
    • Registration
    • Scripting
  • Interface - Globalevents
    • Registration
    • Scripting
    • Revscriptsys
  • Interface - Monster
    • Registration
    • Scripting
    • Revscriptsys
  • Interface - Movements
    • Registration
    • Scripting
    • Revscriptsys
  • Interface - NPC
    • Registration
    • Scripting
  • Interface - Spells
    • Registration
    • Scripting
  • Interface - Talkactions
    • Registration
    • Scripting
  • Interface - Weapons
    • Registration
    • Scripting
  • Source Editing
    • Creating new events
    • Creating new Lua functions
  • Function Documentation
    • Game
Powered by GitBook
On this page
  • Structure
  • Examples

Was this helpful?

  1. Interface - Globalevents

Registration

Structure

  • name: Unique name identifier for the global event.

  • type:

  • startup

    shutdown

    record

  • time: Specific time (24-hour format) when the event shall execute.

  • interval: Time interval (in milliseconds) in-between each event execution.

  • script: Lua script file name & location (base directory is data/globalevents/scripts/)

Examples

<globalevent name="something" interval="1000" script="something_event.lua" />

<globalevent time="12:00" script="on_time.lua" />

<globalevent type="startup" script="custom_on_startup.lua" />
PreviousScriptingNextScripting

Last updated 5 years ago

Was this helpful?