Latest Posts

Topic: Workers' accidents

dfTruF
Avatar
Joined: 2015-02-15, 21:32
Posts: 17
Ranking
Pry about Widelands
Posted at: 2015-05-18, 10:15

Greetings.

I'm thinking how to add accidents idea for every worker on random map. For workers who produce something or transport something on road. Accident has probability to happen (e.g. from 0.00001% to 2%), after every produced ware unit, or transported into flag. If success then ware unit is deleted from map. How can I handle this for events connected with finished work of every particular settler?

Edited: 2015-05-18, 10:46
Top Quote
GunChleoc
Avatar
Joined: 2013-10-07, 15:56
Posts: 2623
Ranking
One Elder of Players
Location: RenderedRect
Posted at: 2015-05-18, 11:37

I don't think you can do this without programming changes in our C++ engine. The code would need to be added to the Carrier object. You can find the file in src/logic.


Busy indexing nil values

Top Quote
Tibor
Joined: 2009-03-23, 23:24
Posts: 1185
Ranking
One Elder of Players
Location: Slovakia
Posted at: 2016-08-24, 23:12

Accidents of workers might gone unnoticed by a player, maybe players would appreciate disasters like fires over some region when all buildings would turn into ruins - just thinking...


Top Quote
king_of_nowhere
Avatar
Joined: 2014-09-15, 18:35
Posts: 1133
Ranking
One Elder of Players
Posted at: 2016-08-25, 10:21

yeah, players wouldn't even notice worker accidents. Shows how widelands is a realistic simulation of how ruling is done face-smile.png


Top Quote