Player´s army

Users who are viewing this thread

I custom made a script for someone, but don't know if it works or not
http://forums.taleworlds.com/index.php/topic,116181.msg2807192.html#msg2807192
 
I got that, when I conquer town all villages gives my troop tree to me, but there is only one litle problem- when I recruit troops it shows picture of faction recruits to which village belonged before I took it, and says, for example, you have 1 rhodok recruit. I took it from here:

http://forums.taleworlds.com/index.php/topic,82591.0.html

just copied script village recruit troops, or something like that.
 
The newly conquered village will still have the old troop type. It should be refreshed on the next trigger (wait a week to be sure). It use the same condition as in my script.
 
I dont know, but when I go to village and recruit troops, it says you got 1 rhodock recruit, I take him, and than I check my party and there they are, my soldiers (my troop tree) in my party, right after conquering village, week later, always...
 
That's strange. Could be because of the troop name reference for presentation is different with text editing than with MS.
 
I really don't know, but it works, I'm telling you, I have no reason to say something its not. The strangest thing is that works (script recruit volunteers and activate deactivate plyrs faction) with Highlanders, Berserk Prides and LyX's kingdom management ( I got LyX's implemented ).
 
This is the code that I used (the new code replace the single Native line below it):
Code:
	   (try_begin),
			#(eq, "$players_kingdom", "fac_player_supporters_faction"), # Use 2 conditions. This first one limit to having own kingdom
			(party_slot_eq, ":center_no", slot_town_lord, "trp_player"),
			(assign, ":volunteer_troop", "trp_farmer"), # Spd - change troop ID as wish
	   (else_try),
			(faction_get_slot, ":volunteer_troop", ":center_culture", slot_faction_tier_1_troop),
	   (try_end),
	   #(faction_get_slot, ":volunteer_troop", ":center_culture", slot_faction_tier_1_troop), # Spd original
 
do this I have my own faction troops recruit able form any fief I take over. I'm now trying to figure out how to get my AI lords to recruit them as well

http://forums.taleworlds.com/index.php?topic=111689.new#new


My question thread

http://forums.taleworlds.com/index.php/topic,117487.msg2833603.html#msg2833603
 
The lords will recruit from villages as well as the simple_trigger that fill up their party. Since, you already defined your new faction party templates, you will only need to add them to the process.

For village recruitment, modify the script "update_npc_volunteer_troops_in_village". Insert some code that check the onwer faction and assign the proper troop.

For the auto reinforcement, modify script "cf_reinforce_party". This script is used for both hero parties and centers and you will need predefined party_templates which you already have. Again, just check the party faction and assign proper template of the faction.
 
Back
Top Bottom