Editing Mod Developers Guide

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 75: Line 75:
 
Never assume any state will persist, unless specifically called out in the documentation.  For example, don't write to a global variable in one hook and access it in another.
 
Never assume any state will persist, unless specifically called out in the documentation.  For example, don't write to a global variable in one hook and access it in another.
  
If you try to in a single-player game, you may find that global state does persist.  However, don't be tempted to rely on this, since globals are always wiped in multi-player, and globals will also get wiped in single-player if someone saves and re-loads their game.  Therefore, ensure you code as if globals will never persist between hook calls, except where explicitly allowed.
+
If you try to in a single-player game, you may find that global state does persist.  However, don't be tempted to rely on this, since globals are always wiped in multi-player, and globals will also get wiped in single-player if someone saves and re-loads their game.  Therefore, ensure you code as if globals will never persist between hook calls, except where expliclty allowed.
  
 
== Data Storage ==
 
== Data Storage ==

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