Guards in the castle/town

正在查看此主题的用户

tzlop

Sergeant
Was just wondering if it is possible to change the type of guards standing in your castle/town?  I mean if I made my own faction and didn't pick one culture over the other, I automatically get Swadian Sergeant as my guards inside my court. 

Would be great if anyone knew, thanks.
 
In Diplomacy it is. When you choose your own culture, every vassal you own will recruit troops of that type.
 
Yeah, but I think he's talking about the guards in his court, not who his vassals recruit.  I don't know of a way you can change the guards; I think they're picked randomly from whomever is in the garrison.
 
JosieJ 说:
Yeah, but I think he's talking about the guards in his court, not who his vassals recruit.  I don't know of a way you can change the guards; I think they're picked randomly from whomever is in the garrison.

Actually, they seem to be Swadian Sergeant default.  Unless I change my kingdom's culture they remain that way for every castle I and my vassals own.  But yeah, seems like it :/
 
Yes, Swadian Sergeant is a default castle guard if you are independent.
You can change it, if you don't mind tweaking .txt files (make backups etc.).

Find this in scripts.txt:
...
enter_court -1
143 21 1 1224979098644774912 2133 2 144115188075856110 1 1911 1 792633534417207302 1941 2 792633534417207302 0 521 3 1224979098644774913 1224979098644774912 11 1261 1 1224979098644774913 1262 0 2204 2 1224979098644774914 1224979098644774912 522 3 1224979098644774915 1224979098644774914 49 4 0 2147483680 2 1224979098644774915 0 2133 2 1224979098644774915 360287970189639719 3 0 1263
...

360287970189639719 means Swadian Sergeant, you can replace it with some other troop, the number should be 360287970189639680+(troop id), where (troop id) is the number of the troop in troops.txt, starting with 0 for the player.
For example Swadian Sergeant has a troop id of 39, so 360287970189639680+39 = 360287970189639719, just as in the file. If you don't screw up, it will work right away.
 
MadVader 说:
Yes, Swadian Sergeant is a default castle guard if you are independent.
You can change it, if you don't mind tweaking .txt files (make backups etc.).

Find this in scripts.txt:
...
enter_court -1
143 21 1 1224979098644774912 2133 2 144115188075856110 1 1911 1 792633534417207302 1941 2 792633534417207302 0 521 3 1224979098644774913 1224979098644774912 11 1261 1 1224979098644774913 1262 0 2204 2 1224979098644774914 1224979098644774912 522 3 1224979098644774915 1224979098644774914 49 4 0 2147483680 2 1224979098644774915 0 2133 2 1224979098644774915 360287970189639719 3 0 1263
...

360287970189639719 means Swadian Sergeant, you can replace it with some other troop, the number should be 360287970189639680+(troop id), where (troop id) is the number of the troop in troops.txt, starting with 0 for the player.
For example Swadian Sergeant has a troop id of 39, so 360287970189639680+39 = 360287970189639719, just as in the file. If you don't screw up, it will work right away.

Thank you very much sir. You are very much appreciated.
 
Hey... I'm sorry for posting in such an old topic, but I would really like some help with this.

I followed MadVader's instructions, to the letter. A total of at least 10 times now. Starting a new game every time... The point where i get to own my land and a city/castle, no matter what I change the town guards to be, they always end up being the default Swadian Sergeant. I don't know what I could possibly be doing wrong, anybody have any suggestions?
 
Since this is related to modding you might have a better chance to get an answer in the modding sub-forum. 
http://forums.taleworlds.com/index.php/board,165.0.html
 
That script.txt may have been changed in one of the game's updates.

If you have the module system set up try finding in module_scripts

      #Adding guards
      (store_faction_of_party, ":center_faction", ":center_no"),
      (faction_get_slot, ":guard_troop", ":center_faction", slot_faction_guard_troop),
      (try_begin),
        (le, ":guard_troop", 0),
        (assign, ":guard_troop", "trp_swadian_sergeant"),
      (try_end),

and changing "trp_swadian_sergeant" to "trp_[something_else]"

I'm not sure that works because I never tried it but that seems like the place to make the change you want.
 
Guys i have same problem i don'nt want to choose culture of my kingdom i just want to add my custom troops as a guard of my castles and cities.
i hate that swedish sergeants i didn't finded how to change my custom kingdom's guard troops in this topic

https://forums.taleworlds.com/index.php/topic,46290.0.html

is any way how to change guards in my castle? it in 1.67/1.66

i tried MadVader's method didnt worked
 
Sorry I'm a little late on this, but I've encountered the same problem playing ACOK 2.2, and have figured out a way to get around this, download morghs editor and then search guard in the troops.txt editor, the first one should be swadian(was for me). now you can proceed to edit the guard's look, and equipment. I do recommend getting used to the editor before this though as it can be hard.
 
Rodrigo Ribaldo 说:
Yes, Swadian Sergeant is a default castle guard if you are independent.
You can change it, if you don't mind tweaking .txt files (make backups etc.).

Find this in scripts.txt:
...
enter_court -1
143 21 1 1224979098644774912 2133 2 144115188075856110 1 1911 1 792633534417207302 1941 2 792633534417207302 0 521 3 1224979098644774913 1224979098644774912 11 1261 1 1224979098644774913 1262 0 2204 2 1224979098644774914 1224979098644774912 522 3 1224979098644774915 1224979098644774914 49 4 0 2147483680 2 1224979098644774915 0 2133 2 1224979098644774915 360287970189639719 3 0 1263
...

360287970189639719 means Swadian Sergeant, you can replace it with some other troop, the number should be 360287970189639680+(troop id), where (troop id) is the number of the troop in troops.txt, starting with 0 for the player.
For example Swadian Sergeant has a troop id of 39, so 360287970189639680+39 = 360287970189639719, just as in the file. If you don't screw up, it will work right away.

How would you format this if, say, the sum of 680 and the troop ID exceeds three digits? I've tried formatting it in 4 digits but it threw errors at me.
 
后退
顶部 底部