$game_message icon

● ARCHIVED · READ-ONLY
Started by fuzzalicious 9 posts View original ↗
  1. Im making a custom dialogue with $game_message and would like to display an icon within the dialog,

    is it possible or would i have to go about it some other way? 
  2. Anything is possible with scripts - in this case, there is no default text code for icon display, but there are several advanced text systems that add such text codes - or you could script a sequence for the icon if you know the engine scripts.
  3. Can't you add control characters to the dialog like $game_message.add("\i[item.icon_index]")?

    I've also tried using win=Window_Base.new(0, 88, 544, 160)

    win.draw_icon(1, 80, 20, 1)

    which works, but it only seems to stay open for 3 seconds for some reason.
  4. $game_message already has the ability to use icons. You just add \I[#] where # is the icon index. Take a look at Window_Base (and maybe Window_Message) to see how it handles it, if you're stopping it from doing its default behaviour.


    I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.


    Maybe you should explain why you're making a custom dialogue and what you're doing that's different to the default message system. That might help us understand a little better, which SHOULD allow us to give better assistance :)
  5. use \\i[index]
  6. Im make a custom dialogue to have random people sell random things. 

    If I used the default I don't think I could use a random face?

    So far Ive tried item_id = rand($data_weapons.size), item = $data_weapons[item_id]

    $game_message.add( \i[item.icon_index], \\i[item.icon_index],

    "\i[item.icon_index]", "\\i[item.icon_index]" without any luck.

    Ahh, it seems icon_index is the culprit, it gets written out instead of interpreted as a number.

    It did however work when using it in Window_Base.
  7. \\i[#{item.icon_index}]
  8. Awesome, thanks :D
  9. This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.