Skip to content

Current questions and answers regarding the map editor.

User Avatar
#1126
Auto-translated
KioM
Where does ChangeResource come from? Is there a SetPlayerResource?
ChangeResource: Changes the amount of a specified resource for the player who owns the specified hero. A "floating" message appears from this hero, indicating the resource change.
playerID: Player ID
resourceKindID: Resource type ID
quantity: Amount (cannot be a negative value)
heroName: Hero name