Where to modify to allow player map icon to change when troops get larger?

Users who are viewing this thread

ahseph

Sergeant at Arms
Hi, I am playing Gekokujo 3.1 beta and tried to put in Sugoroku 3.1.12. Everything works great except Sugoroku seems to lose the feature of player/enemy lords having "larger troops" map icon. I have some knowledge of editing with notepad++, using blender, openbrf, know how to edit or modified OSP stuffs to put in game. Have not done animations nor touch python stuffs.

Appreciate greatly if someone can point me to where this feature is?

Gekokujo 3.1 Beta New Feature:
- The player map icon changes to a lordly one if they have 60+ troops as an independent or 30+ troops as a vassal

I believe the map icons resource is from http://www.mbrepository.com/file.php?id=2675
but i don't think this download contains the code for upgrading player / enemy lords' map icons..

Please help.

Thank you!
 
There's a trigger that fires every frame to refresh the player's map icon. Currently it only checks if the player has a horse equipped, you need to calculate the party size and assign the proper icon.
Code:
      (try_begin),
        (ge, ":cur_horse", 0),
        (assign, ":new_icon", "icon_player_horseman"),
      (else_try),
        (assign, ":new_icon", "icon_player"),
      (try_end),
 
Hi Somebody,

Thank you so much for your reply. But can you share where to add this code? Or where to find this code?
Do I need to fire python or what software should I use?

Cheers.
 
Back
Top Bottom