[SOLVED] Drawing a picture

Hello everybody,

I would like to ask how to draw a picture in scripts.

Is this a complicated process or something?

What I want is to simply draw a picture in main menu, something like draw_icon(iconid, dx, dy), but instead of icon, I want to draw a picture at set X, Y and Z coordinates.

What I'm trying to do is to add an icon and background to the class name (in actor status, near his name).

Any help is appreciated. =)
It is in there on start, but this thread has a lot of neat stuff too.

Since what you look for  is a script call eqivalent, take a look.

http://forums.rpgmakerweb.com/index.php?/topic/6248-script-call-equivalent-of-events/

Nice question by the way. I wonder what you  are you up to. 😉  

Show Picture

screen.pictures[index].show(file_name, upperleft/center, x, y, x zoom, y zoom, opacity, blend type)

Move Picture

screen.pictures[n].move(0/1 (top left or center), x, y, zoom1, zoom2, opacity, blend type (0,1, 2), wait)
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.
It is in there on start, but this thread has a lot of neat stuff too.

Since what you look for  is a script call eqivalent, take a look.

http://forums.rpgmakerweb.com/index.php?/topic/6248-script-call-equivalent-of-events/

Nice question by the way. I wonder what you  are you up to. 😉

Show Picture

screen.pictures[index].show(file_name, upperleft/center, x, y, x zoom, y zoom, opacity, blend type)

Move Picture

screen.pictures[n].move(0/1 (top left or center), x, y, zoom1, zoom2, opacity, blend type (0,1, 2), wait)
Thanks for info!

But I'm having problems with setting that.

I'll explain what I want to achieve:

I want to display an icon (picture) near class name of each actor.

Spoiler
RqKgN9S.png


Don't mind the total mess, it's just an example.
I'm using YANFLY_Ace Menu Engine, that overwrites the drawing actor stuff method.

Here is a small, yet important part of the script I'm talking about:

Spoiler
class Window_Base < Window

  

  #--------------------------------------------------------------------------

  # overwrite method: draw_actor_simple_status

  #--------------------------------------------------------------------------

  def draw_actor_simple_status(actor, dx, dy)

    dy -= line_height / 2

    draw_actor_name(actor, dx, dy)

    draw_actor_level(actor, dx, dy + line_height * 1)

    draw_actor_icons(actor, dx, dy + line_height * 2)

    dw = contents.width - dx - 124

    

# Here is what I'm trying to do.

    if how to check actor ID?

    draw_icon(106, dx - 40, dy)

    elsif will this even work here?

    draw_icon(107, dx - 40, dy)

    else # and how to refresh while changing formation?

    draw_icon(108, dx - 40, dy)

    end

   
The icon drawing works perfectly (like on image).

And there's the problem - how to draw a picture instead of icon? I tried that "Show Picture", but it kept throwing errors at me (probably I'm just too stupid to use that correctly; I'm really new to scripting so bear with me please)

The possible workaround could be drawing few icons near each other, but it would take much space in icon set.

And new questions appear:

- How to check the actor ID and use that to draw different icons/pics for each actor?

- How to refresh icons/pics when changing party formation?

- Is this even possible?

I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.
I'm really sorry about that, I knew I posted that in a wrong place, but I couldn't find the proper subforum (I was searching for RGSS3 script support, didn't realized RGSSx is a proper place for that - Worked 16 hours without breaks on game/reading forums, then posted that here- I was really tired as balls)
So you need to customize your menu.

I hope someone with experience on this will see what you wanna do.
Problem solved, everything is fine. =)
Thanks Dreadshadow for that link, it will be useful later. =P

Thanks for help! =)
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.

Original thread: https://forums.rpgmakerweb.com/threads/solved-drawing-a-picture.42540/