Editing Mod Hooks

Jump to: navigation, search

Warning: You are not logged in.

Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 33: Line 33:
  
 
* Server_AdvanceTurn_Start (Server_AdvanceTurn.lua)
 
* Server_AdvanceTurn_Start (Server_AdvanceTurn.lua)
** Called whenever the server begins processing a normal turn (not territory picking).  This gives mods an opportunity to insert orders at the start of a turn, before any player's orders are added.  All of the Server_AdvanceTurn_* hooks share global state within a single turn, so global variables can be read and written reliably by mods.
+
** Called whenever the server begins processing a normal turn (not territory picking).  This gives mods an opportunity to insert orders at the start of a turn, before any player's orders are added.  All of the Server_AdvanceTurn_* turns share global state within a single turn, so global variables can be read and written reliably by mods.
 
** Arguments:
 
** Arguments:
 
# [[Mod API Reference:Game|Game]]: Provides read-only information about the game.
 
# [[Mod API Reference:Game|Game]]: Provides read-only information about the game.

Please note that all contributions to Warzone Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Warzone Wiki:Copyrights for details). Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox