###################################################################################
# Banner Selection
###################################################################################
("Banner_selection",
[],
"Select your kingdom banner.",
[
(start_presentation, "prsnt_banner_selection"),
(start_presentation, "prsnt_custom_banner"),
(else_try),
(change_screen_return, 0),
(try_end),
(set_show_messages, 1),
]),
COGlory said:Question. Is there a way to find out with Thorgrims map editor, where a position on the x/y axis would be, so I could then place cities and towns there via module_parties.py
Thanks!
Lumos said:Anyone knows how I can spawn agents at entry points during a mission? Not at the beginning, but during the mission.
Yeah, mounted will make them travel as horsemen. Not sure which one gives the cav cost.COGlory said:I believe (not 100% sure) that tf_guaruntee_horse means that in battle, he will have a horse.
feuerzeuge said:Is there a way to determine the body armour of a troop's currently equipped armour? Furthermore, is it possible to check if an agent has a shield equipped? Not a specific shield - just any shield, in general. Furthermore, has anyone figured out how armor affects damage? I'm trying to get it to apply to area damage.
Highelf said:feuerzeuge said:Is there a way to determine the body armour of a troop's currently equipped armour? Furthermore, is it possible to check if an agent has a shield equipped? Not a specific shield - just any shield, in general. Furthermore, has anyone figured out how armor affects damage? I'm trying to get it to apply to area damage.
For the shield; there are two operations you can use: agent_has_item_equiped (something like that) and agent_get_wielded_item (something like that)
get_wielded is for the actual stuff inhand, whereas the first operation will be true even if you dont have the actual item in your hands (but for example your shield on your back). If you use value 1 (left hand) in agent_get_wielded_item and check what is in the left hand and store it to, say ":shieldwielded", you can then go
(try_for_range, ":shield", shieldbegin, shieldend),
here shieldbegin is the first shield item and shield end is the last. You'll have to check items.py for that. Then you compare them:
(eq, ":shieldwielded", ":shield")
To see if any of the shield items are currently in the left hand.
Not sure about the rest.
feuerzeuge said:Thank you very much. On the same note, is it possible to check whether an agent is wearing armour? I have a script to check the body armour of targets of area fire, but it returns an error (and conveniently sets the variable to zero) when no body armour is equipped. This works, of course, but I'd rather avoid having that in on release day.
dunde said:We can't change Armour and helmet in battle, so it's safe to check what agent wear from troop.
I use the improved autoloot source hereCode:(agent_get_troop_id, ":troop_id", ":agent"), (troop_get_inventory_slot, ":armor",":troop_id", ek_body), ..... work with item (improved autoloot source by rubik provide a way to set armor value to a slot)
dunde said:feuerzeuge said:Thank you very much. On the same note, is it possible to check whether an agent is wearing armour? I have a script to check the body armour of targets of area fire, but it returns an error (and conveniently sets the variable to zero) when no body armour is equipped. This works, of course, but I'd rather avoid having that in on release day.
Checking body armour, take a look here :
dunde said:We can't change Armour and helmet in battle, so it's safe to check what agent wear from troop.
I use the improved autoloot source hereCode:(agent_get_troop_id, ":troop_id", ":agent"), (troop_get_inventory_slot, ":armor",":troop_id", ek_body), ..... work with item (improved autoloot source by rubik provide a way to set armor value to a slot)
About the shield, I agree to use
(agent_get_wielded_item,":left_hand",":agent",1),
(item_get_type,":type",":left_hand"),
(eq, ":type", itp_type_shield),
Cumandante said:My game is crashing at new game loading, last text I can see is "Loading Map File". There are no build_module errors, no error message and I did not touch any map file. Last I edited was module_troops.
Does anyone have a clue?