Question about Heraldic Armor/Banner

正在查看此主题的用户

dunde

Count
How can we associate banners/heraldic armors/shields to agents spawned with add_visitors_to current_scene?
 
I think that most of the heraldic stuff is done by ti_on_item_init in module_items.py  which calls for a tableau material to be put on the item.  The troop or agent stores the proper heraldic symbol in a slot.  It shouldn't matter if they are added using add_visitor or not.
 
That's the problem. Current glitch of my vision scenes is troops from both side have the same heraldic stuff's banner texture.
 
Normal battles are working ok I assume?
Then a shield_item_set_banner script somehow is not getting correct banner troop ID (usually a lord) for some of the entrants, as it is written for the battles with a player taking part. Although I do not see what particular part of code prevents it from working correctly on your "simulated" battles.
Put a shortcut in the script for your own type of battles and assign banner meshes acc to slot_troop_banner_scene_prop of the lords yourself.
 
Thanks for pointing the right script, Tempered.
And thanks for the idea, GetAssista.
Yes, I should make my own "shield_item_set_banner" script. I think I found the problem. Normal battle automatically link troops spawned with their party, but not for my "simulated" battle. So, for my agents,
  (agent_get_party_id, ":agent_party", ":agent_no"),
always give me ":agent_party" = -1.

EDIT :
It works now, thank guys.
 
后退
顶部 底部