KidStein said:I didn't see this questions asked before so... I think I found some sort of bug. When I create a new troop that upgrades from an existing troop, the new troop doesn't wear the armor I assigned them. It seems to alternate between a bunch of different armors the troop it upgraded from had. I tried going through and changing the armors set to the already existing unit, but that didn't seem to fix anything.
Oddly enough, this issue seems to be specific to the mod 1257 AD. I've created troops in other mods with this editor and it worked just fine. So is this a bug I can fix somehow?
Edit: One thing to note. When I first start up a new game or load my saved game, the troops I created are shown to be wearing the armor I want them to. But once I go into a battle, they start wearing armor I DONT want them to. And then I never see the armor I gave them again.
It sure does.peenerz said:Does this work with version 1.166? I just bought the game from steam during Christmas and it came like that...
Deathwhisper said:adiSal said:The problem is many of them don`t have any pole-arms to use in the first place. But the weird part is that if an unit has in it`s pool of possible items a pole-arm or two and a sword or any "secondary" weapon they all receive the secondary weapon but not all receive a pole-arm. And that`s what I`m asking, how can i force then to get a pole-arm as well as a secondary weapon as archers do?
You could use this script :
Code:("force_weapon", [(store_script_param, ":agent", 1), (try_begin), (this_or_next|multiplayer_is_server), (neg|game_in_multiplayer_mode), (agent_is_alive, ":agent"), (agent_is_non_player, ":agent"), (agent_get_troop_id, ":troop", ":agent"), (eq, ":troop", "trp_YOUR_TROOP"), #rename it to be your own troop (troop_get_inventory_capacity, ":cap", ":troop"), (try_for_range, ":i", 0, ":cap"), (troop_get_inventory_slot, ":item", ":troop", ":i"), (ge, ":item", 0), (item_get_type, ":type", ":item"), (ge, ":type", itp_type_one_handed_wpn), (le, ":type", itp_type_polearm), (neg|agent_has_item_equipped, ":agent", ":item"), (agent_equip_item, ":agent", ":item"), (try_end), #try inventory (try_end), ]),
It will force all the listed troops to spawn with all their melee weapons, including their polearm.
ModestyBlaise said:Is there a way i can know what an item i want to edit looks like? For example, there are many different items called "Hat" so it's hard to know which hat i am editing if i don't know what it looks like.
Muglos said:Hello.
How do I add money to my companions inventory using this mod?