ScarDoc

Start typing to search the SCAR reference.

Function
Modify

Modify_PlayerUpkeep

Modifies the upkeep for a player's resource. Possible math types are MUT_Multiplication, MUT_Addition.

On this page
Modify_PlayerUpkeep(playerId, resourceType, scalefactor, mathtype)

Description

Modifies the upkeep for a player's resource. Possible math types are MUT_Multiplication, MUT_Addition.

Parameters

  • playerIdPlayerIDrequired
  • resourceTypeIntegerrequired
  • scalefactorRealrequired
  • mathtypeIntegeroptional

Returns

modidsmodids or nil if the modifier could not be applied

Source

Declared in the game's script sources at:

scar/modifiers.scar