Editing Mod API Reference:GameOrderCustom
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 6: | Line 6: | ||
* '''Payload''' ''string'': Data the mod wishes to store along with this order, but does not want players to see. | * '''Payload''' ''string'': Data the mod wishes to store along with this order, but does not want players to see. | ||
* '''CostOpt''' ''Table<[[Mod API Reference:ResourceType|ResourceType]] (enum),integer>'': Defines how much gold the order will cost the player in a [[Commerce]] game. This should only be set in commerce games. If CostOpt is set to nil, then it's assumed to be the same as having a cost of 0. The game will take care of taking the player's resources away correctly, both on the client and server, when inserting an order with a cost into their orders list. | * '''CostOpt''' ''Table<[[Mod API Reference:ResourceType|ResourceType]] (enum),integer>'': Defines how much gold the order will cost the player in a [[Commerce]] game. This should only be set in commerce games. If CostOpt is set to nil, then it's assumed to be the same as having a cost of 0. The game will take care of taking the player's resources away correctly, both on the client and server, when inserting an order with a cost into their orders list. | ||
− | |||
[[Mod_Security|Mod security]] should be applied to [[Mod_Hooks|Mod Hooks]] working with this card | [[Mod_Security|Mod security]] should be applied to [[Mod_Hooks|Mod Hooks]] working with this card |