Yanfly Shop menu, Adding Icons to Character Names.

I am trying to use this script https://yanflychannel.wordpress.com/rmvxa/menu-scripts/ace-shop-options/
Just got some face portraits in the form of icons and i wanted to try using them.
 


So I want to add Icons to where the actors names are at the bottom right under "In Possesion" Please can someone help out!? I could use help editing the script. Or perhaps you could do a quick edit for me thanks so much! I wanted to Have the icons before the name with a space between them and the text. so it would look like:  


[ICON] Eric


[ICON] Natalie


[ICON] Terence


[ICON] Ernest



 
aso-03.jpg
Are you adding 24x24 icons for each actor? How do you determine which icon to show? Is it a specific icon from the iconset or some other icon?
Each actor needs its own Icon. The indexes of the icons are 5232- 5238. They are speicifc Icons from the set. The indexes below show the actors name and the id of the actor and the icon that should show. Sorry for not including relevant information.

Actor id1: 5235, katsumi,
Actor id2: 5238, sakura
Actor id3:  5234, himiko
Actor id4:  5236, minamoto
Actor id5: 5237, sayuri
Actor id6: 5232, ayame


Shiggy made this for me. I can draw a single icon there but its not unique to the actors with this:

Code:
[COLOR=rgb(0,0,136)]class[/COLOR][COLOR=rgb(0,0,0)] [/COLOR][COLOR=rgb(102,0,102)]Window_ShopStatus[/COLOR][COLOR=rgb(0,0,0)] [/COLOR][COLOR=rgb(102,102,0)]<[/COLOR][COLOR=rgb(0,0,0)] [/COLOR][COLOR=rgb(102,0,102)]Window_Base[/COLOR][COLOR=rgb(0,0,0)]
	[/COLOR][COLOR=rgb(0,0,136)]def[/COLOR][COLOR=rgb(0,0,0)] draw_actor_equip_info[/COLOR][COLOR=rgb(102,102,0)]([/COLOR][COLOR=rgb(0,0,0)]dx[/COLOR][COLOR=rgb(102,102,0)],[/COLOR][COLOR=rgb(0,0,0)] dy[/COLOR][COLOR=rgb(102,102,0)],[/COLOR][COLOR=rgb(0,0,0)] actor[/COLOR][COLOR=rgb(102,102,0)])[/COLOR][COLOR=rgb(0,0,0)]
		enabled [/COLOR][COLOR=rgb(102,102,0)]=[/COLOR][COLOR=rgb(0,0,0)] actor[/COLOR][COLOR=rgb(102,102,0)].[/COLOR][COLOR=rgb(0,0,0)]equippable[/COLOR][COLOR=rgb(102,102,0)]?([/COLOR][COLOR=rgb(0,102,102)]@item[/COLOR][COLOR=rgb(102,102,0)])[/COLOR][COLOR=rgb(0,0,0)]
		change_color[/COLOR][COLOR=rgb(102,102,0)]([/COLOR][COLOR=rgb(0,0,0)]normal_color[/COLOR][COLOR=rgb(102,102,0)],[/COLOR][COLOR=rgb(0,0,0)] enabled[/COLOR][COLOR=rgb(102,102,0)])[/COLOR][COLOR=rgb(0,0,0)]
		draw_icon[/COLOR][COLOR=rgb(102,102,0)]([/COLOR][COLOR=rgb(0,102,102)]100[/COLOR][COLOR=rgb(102,102,0)],[/COLOR][COLOR=rgb(0,0,0)]dx[/COLOR][COLOR=rgb(102,102,0)],[/COLOR][COLOR=rgb(0,0,0)]dy[/COLOR][COLOR=rgb(102,102,0)],[/COLOR][COLOR=rgb(0,0,0)]enabled[/COLOR][COLOR=rgb(102,102,0)])[/COLOR][COLOR=rgb(0,0,0)]
		draw_text[/COLOR][COLOR=rgb(102,102,0)]([/COLOR][COLOR=rgb(0,0,0)]dx [/COLOR][COLOR=rgb(102,102,0)]+[/COLOR][COLOR=rgb(0,0,0)] [/COLOR][COLOR=rgb(0,102,102)]32[/COLOR][COLOR=rgb(102,102,0)],[/COLOR][COLOR=rgb(0,0,0)] dy[/COLOR][COLOR=rgb(102,102,0)],[/COLOR][COLOR=rgb(0,0,0)] contents[/COLOR][COLOR=rgb(102,102,0)].[/COLOR][COLOR=rgb(0,0,0)]width[/COLOR][COLOR=rgb(102,102,0)],[/COLOR][COLOR=rgb(0,0,0)] line_height[/COLOR][COLOR=rgb(102,102,0)],[/COLOR][COLOR=rgb(0,0,0)] actor[/COLOR][COLOR=rgb(102,102,0)].[/COLOR][COLOR=rgb(0,0,0)]name[/COLOR][COLOR=rgb(102,102,0)])[/COLOR][COLOR=rgb(0,0,0)]
		item1 [/COLOR][COLOR=rgb(102,102,0)]=[/COLOR][COLOR=rgb(0,0,0)] current_equipped_item[/COLOR][COLOR=rgb(102,102,0)]([/COLOR][COLOR=rgb(0,0,0)]actor[/COLOR][COLOR=rgb(102,102,0)],[/COLOR][COLOR=rgb(0,0,0)] [/COLOR][COLOR=rgb(0,102,102)]@item[/COLOR][COLOR=rgb(102,102,0)].[/COLOR][COLOR=rgb(0,0,0)]etype_id[/COLOR][COLOR=rgb(102,102,0)])[/COLOR][COLOR=rgb(0,0,0)]
		draw_actor_param_change[/COLOR][COLOR=rgb(102,102,0)]([/COLOR][COLOR=rgb(0,0,0)]dx[/COLOR][COLOR=rgb(102,102,0)],[/COLOR][COLOR=rgb(0,0,0)] dy[/COLOR][COLOR=rgb(102,102,0)],[/COLOR][COLOR=rgb(0,0,0)] actor[/COLOR][COLOR=rgb(102,102,0)],[/COLOR][COLOR=rgb(0,0,0)] item1[/COLOR][COLOR=rgb(102,102,0)])[/COLOR][COLOR=rgb(0,0,0)] [/COLOR][COLOR=rgb(0,0,136)]if[/COLOR][COLOR=rgb(0,0,0)] enabled
	[/COLOR][COLOR=rgb(0,0,136)]end[/COLOR][COLOR=rgb(0,0,0)]
[/COLOR][COLOR=rgb(0,0,136)]end[/COLOR]
Actor_Icons = {
# actor ID => Icon Index
# Add and change more as needed
1 => 2,
2 => 4,
3 => 6,
4 => 8
}

class Window_ShopStatus < Window_Base
def draw_actor_equip_info(dx, dy, actor)
enabled = actor.equippable?(@item)
change_color(normal_color, enabled)
draw_icon(Actor_Icons[actor.id], dx,dy,enabled)
draw_text(dx + 32, dy, contents.width, line_height, actor.name)
item1 = current_equipped_item(actor, @item.etype_id)
draw_actor_param_change(dx, dy, actor, item1) if enabled
end
end


Just set up your icons at the top.
This assumes actors are not generated dynamically during the game.
🙂  Himeworks solved this one! Thanks so much everyone you can close this topic and list himeworks answer! Shiggy solved it on the other forum too! Wow double solutions you guys rock! 
FEYJzfH.gif

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-shop-menu-adding-icons-to-character-names.56626/