Latest Posts

Topic: Debug-Script

MarkMcWire
Avatar
Joined: 2017-02-08, 21:06
Posts: 204
Ranking
Widelands-Forum-Junkie
Location: Eisenach, Germany
Posted at: 2020-11-19, 18:49

Update with typo-fix.


Attachment: debug.lua (14.8 KB)

My widelands project: https://github.com/MarkMcWire/widelands

Top Quote
MarkMcWire
Avatar
Joined: 2017-02-08, 21:06
Posts: 204
Ranking
Widelands-Forum-Junkie
Location: Eisenach, Germany
Posted at: 2021-01-04, 19:16

Latest version.


Attachment: debug.lua (16.0 KB)

My widelands project: https://github.com/MarkMcWire/widelands

Top Quote
MarkMcWire
Avatar
Joined: 2017-02-08, 21:06
Posts: 204
Ranking
Widelands-Forum-Junkie
Location: Eisenach, Germany
Posted at: 2021-01-08, 15:33

New version with scripts to change warehouse ware/worker policies.


Attachment: debug.lua (21.8 KB)

My widelands project: https://github.com/MarkMcWire/widelands

Top Quote
MarkMcWire
Avatar
Joined: 2017-02-08, 21:06
Posts: 204
Ranking
Widelands-Forum-Junkie
Location: Eisenach, Germany
Posted at: 2021-01-19, 07:55

New version. Replaced "force_" with "place_". And there is a new function, with which one can replace all buildings of certain name or type with another building. So you can replace for example all "europeans_castle" on map from player 1 with "europeans_tower" or something like that. Or you can replace all conquered militarysites from player2 with a militarysite of your own tribe.

Edited: 2021-01-19, 07:56

Attachment: debug.lua (18.8 KB)

My widelands project: https://github.com/MarkMcWire/widelands

Top Quote