AndracoDragons

Villager
Member
Joined
Jan 24, 2013
Messages
17
Reaction score
3
First Language
english
Primarily Uses
RMMV
 Okay i need some help. I need a script that will make a window that shows actor ones face. Now i could just use the show picture option in the event menu but its not that simple. What I need it to do is to show Actor 1's as it currently is in that window. Even when that is changed with the Change Actor Graphic option from the event menu. I also need it to remain where it is as multiple texts and choice options happen and end. Pretty much i need it to only go away when I want it to go away. A modified screen shot is available so you can see what i would like at least graphically. If a script already exists I'm sorry i couldn't find it i searched for hours (i really did i am not exaggerating.)

scriptrequest.png
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,006
First Language
Tagalog
Primarily Uses
RMVXA
-EDIT-
 
Last edited by a moderator:

MeowFace

Meow
Veteran
Joined
Feb 22, 2015
Messages
1,034
Reaction score
186
First Language
Meowish
Primarily Uses
Although you said "permanent" on the topic's title, what you later described is more like you want a full controllable window that only show and close on the timing you wanted.

This tutorial here shows you how to create a window using only eventing

http://forums.rpgmakerweb.com/index.php?/topic/38406-eventing-tutorial-for-creating-custom-text-windows/#entry381693

And to show an actor's picture, skip part 2 and part 3 in that tutorial and use this script call after part 1:

@win.draw_face("facefilename", index_number, x, y, true)facefilename = the file name you use for face

index_number = the index number of the face file 0 1 2 3/4 5 6 7

x,y the the position you want it in the window

true/false in the last part is whether you want it to be semi-transparent. true = no transparent, false = semi-transparent
 

AndracoDragons

Villager
Member
Joined
Jan 24, 2013
Messages
17
Reaction score
3
First Language
english
Primarily Uses
RMMV
Although you said "permanent" on the topic's title, what you later described is more like you want a full controllable window that only show and close on the timing you wanted.
I mean permanent in context to when other events are happening. I also need it to show Actor 1's face, because that is what is changing and i need the changes to be visible through out the process. For what you discribed, i would do create the box and then instead of 

@win.draw_face("facefilename", index_number, x, y, true)

I would put 

@win.draw_face(Actor_id "1", index_number, x, y, true)

But i do not know if that is possibe or if that would even work. i need to show actor 1's face and for it update or refresh as the face changes in relation to when event command "change actor graphic" is used no matter how many times that may be.
 

MeowFace

Meow
Veteran
Joined
Feb 22, 2015
Messages
1,034
Reaction score
186
First Language
Meowish
Primarily Uses
Actor_id "1" will not work, because you need to put a File Name string there.

Try use $game_actors[1].face_name instead.

and you will need $game_actors[1].face_index to get the index.

Try put this code into an event's script call and you should see it working.

@win = Window_Base.new(0,0,120,120)@win.draw_face($game_actors[1].face_name, $game_actors[1].face_index, 0, 0, true)

For details on how to change things (size,position), refreshing a window's content and closing the windows. Check that tutorial for details.
 
Last edited by a moderator:

AndracoDragons

Villager
Member
Joined
Jan 24, 2013
Messages
17
Reaction score
3
First Language
english
Primarily Uses
RMMV
Thanks i got it working with your help Would you like me to use "MeowFace" to credit you or is there something else you would prefer? (this isn't for a commercial game just a free one)
 

MeowFace

Meow
Veteran
Joined
Feb 22, 2015
Messages
1,034
Reaction score
186
First Language
Meowish
Primarily Uses
No credit is not needed. Congratulations on your progress!
 

Latest Threads

Latest Posts

Latest Profile Posts

To be released 2021/10/21
Now that I made this "What the MZ RTP is missing" spreadsheet it's itching me to fill some the gaps D:
Aaaaand I completely forgot about the RMMV Chicken Rave my brother decided to implement in a parody of my VERY FIRST UNFINISHED project. We could not escape the chicken rave... The chickens would block the ladder...
I love how I can look up a problem I'm having with my game, find a post from like six years ago that addresses the issue, and the solution provided still works in RPG Maker.
It's times like those that my life feels really easy XD
Change costumes with equipment!

Forum statistics

Threads
115,949
Messages
1,094,292
Members
151,207
Latest member
majinludde
Top