Latest Posts

Topic: Lua: Access to Prefer Rookies/Heros

kaputtnik
Avatar
Joined: 2013-02-18, 20:48
Posts: 2086
Ranking
One Elder of Players
Location: Germany
Posted at: 2020-12-31, 11:30

I want to create an addon which sets for each new military building the following values:

  1. Amount of soldiers = 1
  2. Prefer Rookies

Those settings should be valid until the user changes them.

As far i can see there is no possibility to access the prefer rookies/heros setting. How can this be accessed?


Top Quote
Nordfriese
Avatar
Joined: 2017-01-17, 18:07
Posts: 1433
Ranking
One Elder of Players
Location: 0x55555d3a34c0
Posted at: 2020-12-31, 11:59

Lua support for these properties is not implemented yet, but it can be extracted from PR #3662 where it is already implemented. I am going to extract all the new Lua functions from the scenario editor branch into a new branch as soon as the PR list is a bit shorter again…


Top Quote
Nordfriese
Avatar
Joined: 2017-01-17, 18:07
Posts: 1433
Ranking
One Elder of Players
Location: 0x55555d3a34c0
Posted at: 2021-01-03, 23:01

https://github.com/widelands/widelands/pull/4584


Top Quote