-
April 10, 2011, 03:30 AM
#1
Laetus
Unit experience bonus from buildings
In building_units_allowed_tables, I have a particular unit being built by a Fort. I now want to give it an xp bonus via another building (say some Dojo). In game, the (Dojo) building tooltip shows that it allows the unit and shows the unit with the extra chevrons, but in the Que - and when I build it, it doesn't receive the xp bonus.
Anyone know if what I'm trying to do is possible?
Any help is appreciated. Thanks!
-
April 10, 2011, 03:41 AM
#2
Re: Unit experience bonus from buildings
It should be possible. The db table you want is likely building_effects_junction. There are a couple bonuses in there such as mod_unit_xp_bow_warrior_monks. There are only 4 different unit types given xp bonuses though: bow warrior monks, battlefield ninja, ships, and naginata warrior monks. You would probably have to guess the entries for other unit types, unless someone else knows what they are, or there is a list of them somewhere. Hope that helps some.
-
April 10, 2011, 07:48 AM
#3
Laetus
Re: Unit experience bonus from buildings
building_effects_junction looks like it has potential, but I'm not having any luck guessing what the field should be. I wonder if that field is a lua function. I'll grep through lua files and maybe get lucky. Thanks again, and if anyone knows otherwise please chime in!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules