Function DebugGimmeEnum
- Line
- 72
- Location
- cheats.j
- Constant?
- no
- Type
- function
- Arguments
- nothing
- Returns
- nothing
| 72 | function DebugGimmeEnum takes nothing returns nothing |
| 73 | local player thePlayer = GetEnumPlayer() |
| 74 | call DisplayTextToPlayer(thePlayer, 0, 0, "Player "+I2S(GetPlayerId(GetTriggerPlayer())+1)+" cheated: Give 5000 gold and 5000 lumber to all players") |
| 75 | call SetPlayerState(thePlayer, PLAYER_STATE_RESOURCE_GOLD, GetPlayerState(thePlayer, PLAYER_STATE_RESOURCE_GOLD) + 5000) |
| 76 | call SetPlayerState(thePlayer, PLAYER_STATE_RESOURCE_LUMBER, GetPlayerState(thePlayer, PLAYER_STATE_RESOURCE_LUMBER) + 5000) |
| 77 | endfunction
|