ScarDoc

Start typing to search the SCAR reference.

Function
Modify

Modify_SetUpgradeCost

Sets the cost of an upgrade. This only affects the given player

On this page
Modify_SetUpgradeCost(playerId, upgrade, resourceType, newCost)

Description

Sets the cost of an upgrade. This only affects the given player

Parameters

  • playerIdPlayerIDrequired
  • upgradeUpgradeIDrequired
  • resourceTypeIntegerrequired
  • newCostRealrequired

Returns

modidsmodids or nil if the modifier could not be applied

Source

Declared in the game's script sources at:

scar/modifiers.scar