Mod API Reference:IncomeMod

From Warzone Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "'''IncomeMod''': Used to modify a player's income. Income is defined as the number of armies the player receives in a turn (or gold in a commerce game). * '''Message''' ...")
 
Line 1: Line 1:
'''IncomeMod''': Used to modify a player's income.  Income is defined as the number of armies the player receives in a turn (or gold in a [[commerce]] game).
+
'''IncomeMod''': Used to modify a player's income.  Income is defined as the number of armies the player receives in a turn (or gold in a [[commerce]] game).  For these to have an effect, they should be passed to a [[Mod API Reference:GameOrderEvent|GameOrderEvent]].
  
 
* '''Message''' ''string'':  The message displayed to the player whose income is modified.  This will be displayed in the Income Breakdown Dialog.
 
* '''Message''' ''string'':  The message displayed to the player whose income is modified.  This will be displayed in the Income Breakdown Dialog.

Revision as of 23:52, 11 January 2022

IncomeMod: Used to modify a player's income. Income is defined as the number of armies the player receives in a turn (or gold in a commerce game). For these to have an effect, they should be passed to a GameOrderEvent.

  • Message string: The message displayed to the player whose income is modified. This will be displayed in the Income Breakdown Dialog.
  • Mod integer: The number of armies (or gold) to add, or subtract if negative.
  • PlayerID PlayerID: The ID of the player whose income is being modified. This must be an ID of a player in the current game.
  • BonusID Nullable<BonusID>: Optionally, a bonus ID. If specified, these armies/gold can only be only deployed within a single bonus, like in a Local Deployment game. Or if Mod is negative, this will reduce armies that were required to be deployed to this bonus.

Functions

  • WL.IncomeMod.Create(pid PlayerID, mod integer, msg string, bonusIDOpt Nullable<BonusID>) (static) returns IncomeMod:
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox