Thank you Kalarhan. My little add-on owes so much to you and I am very grateful for your help. It looks like I have my weekend work set out for me now
Hi Kalarhan. It's been ages since I asked you about this addition of a new companion I made. I lost my old modules file so I cannot for the life of me remember how to modify show_companions on presentations.py. I have been reconstructing my add-on, and found all the notes I had for everything but this bit. I also tend to be weakest at the graphics side of the game .
# Grid with companions using gear without a horse
(troop_set_slot, "trp_temp_array_c", 6, 295),
(troop_set_slot, "trp_temp_array_c", 11, 296),
(troop_set_slot, "trp_temp_array_c", 5, 297),
(troop_set_slot, "trp_temp_array_c", 9, 298),
(troop_set_slot, "trp_temp_array_c", 13, 299),
(troop_set_slot, "trp_temp_array_c", 4, 300),
(troop_set_slot, "trp_temp_array_c", 10, 301),
(troop_set_slot, "trp_temp_array_c", 14, 302),
(troop_set_slot, "trp_temp_array_c", 8, 303),
(troop_set_slot, "trp_temp_array_c", 7, 304),
(troop_set_slot, "trp_temp_array_c", 15, 305),
(troop_set_slot, "trp_temp_array_c", 2, 306),
(troop_set_slot, "trp_temp_array_c", 12, 307),
(troop_set_slot, "trp_temp_array_c", 1, 308),
(troop_set_slot, "trp_temp_array_c", 0, 309),
(troop_set_slot, "trp_temp_array_c", 3, 310),
(try_for_range, ":slot_no", 0, 16),
(troop_get_slot, ":npc", "trp_temp_array_c", ":slot_no"),
(troop_get_slot, ":companion_ocupation", ":npc", slot_troop_occupation),
# jump to next row after 2 companions and right side after 8
(try_begin),
(eq, ":counter", 2),
(gt, ":y", 450),
(assign, ":x", 700),
(assign, ":y", 0),
(assign, ":counter", 0),
(else_try),
(eq, ":counter", 2),
(val_add, ":y", 157),
(val_sub, ":x", 150*2),
(assign, ":counter", 0),
(try_end),
(try_end),
kalarhan said: