![]() |
|
King`s Bounty: Warriors of the North Next game in the award-winning King’s Bounty series |
|
Thread Tools | Display Modes |
#25
|
|||
|
|||
![]() Quote:
![]()
By the way, I couldn't resist looking up what the recruiter skill does, here is the ignore list (from ADDON_ARENA.LUA): Code:
local unit_ignore = ",dragon_rider,horseamazon,clown,powerman,ork_scout,priestes,blackdragon,bonedragon,dragon_ice,greendragon,reddragon,vampires_cloud,girl_with_flower,ice_minion,subturn_handler,digged_brontor,infernodragon1,infernodragon2,infernodragon3,".. "dummydoll,movingsphere,phoenix,phoenix_young,phoenix_old,griffin_spirit,gobot2,evilbook1,evilbook2,evilbook3,ram,orb1,orb2,orb3,lava_golem,lava_golem1,lava_golem2,lava_golem3,lava_golem4,lava_golem5"; If you have a Necromancer and they Raise Dead, then the following additional units can be added to your army (they are added without any skills so long as the Necromancer is in your army (the Necromancer is not a pawn and its belligerency is 1, i.e. human): Code:
if name == "necromant" then addUnits(3*size*lead/100, {"skeleton", "archer", "zombie", "zombie2"}); end; Since I had just Dragon Riders (in the exclude list) and ArchDemons as the only troops in my army and since I had ArchDemons also in one of my reserve slots, it would always select the ArchDemons (since that was the only troop in my army that it could pick that was not in the ignore list and it adds at least one - this was even with having Puppeteer and summoning troops from the ArchDemons and Call of Nature spell). If I also had a spare reserve slot, then one of my summoned units would go there. So if you want to recruit troops of a certain type, having them in more than one slot will increase your chances of picking them and as @zjazd18 mentions, putting a unit in the reserve slot will effectively force it to pick that troop, but only if they are added to the list with the above restrictions. If you don't have the Puppeteer skill, then you should be able to have 4 out of your 5 troops in your army and to the list; however, if you have a Dark Knight in reserve and they are in unit slot 3 and it starts at 4 (cycling to 3 last), then they won't be added to the list. Putting them in 2 army slots guarantees them being added to the list and since you have an army in reserve it should then pick them. At least, that's what it looks like the code does. By the way, I was confusing the Puppeteer skill with the Recruiter skill as the Puppeteer skill allows adding of summoned units to your army. Here is the code that adds them to a table that serves as a list of possible candidates to add to your army: Code:
table.insert( tab_verbovka, { l = math.floor(size*lead*skill_power_puppeteer/100), n = name } ) With respect to Phantomed units, as long as they are temporary and not pawns and their belligerency is 1 then there is the possibility of adding them via the Puppeteer skill. As far as I can tell, Phantomed units meet this criteria (my only question mark is their belligerency, but I think it is 1 since that means they are controlled by a human). So I think the Puppeteer skill is another way to grow your army via the Phantom spell. Someone will have to try it and let me know if they are able to get Phantomed units added to their army via Puppeteer. From what I can tell, the above seems right with respect to how I think the code works. The only way to tell, though, is by running it through the LUA debugger. I don't have the time right now, but I may try to do this in the future... /C\/C\ |
|
|