Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

I just cant script

Listen, im dieing to have the script to show character faces, and the script to show the other party members following you! but... everytime i try i screw up my scripts, i just cant figure it out. ive read both scripts countless times.

can anyone please be so kind as to copythe ENTIRE script sections where they go, so i can just erase those sections and paste, instead of trying to edit them. or is there some easier way?

its like the scripts are made so that only scripters understand them.
 

Mac

Member

Face script is easy, just put this below def draw_actor_name in Window_Base:-

Code:
  # Face Graphic #
  def draw_actor_face(actor, x, y)
  bitmap = RPG::Cache.picture("MenuFace/#{actor.id}")
   cw = bitmap.width 
   ch = bitmap.height 
   src_rect = Rect.new(0, 0, cw, ch)
   self.contents.blt(x - cw/5, y - ch, bitmap, src_rect)
 end

Then where you want it to display use the segment:-

Code:
draw_actor_face(actor, x - 60 ,y + 160)
 
sorry not getting you, can you show me an example? like copy and paste that part of the script so i can see where? i really hate screwing up my script..

and umm also, once i do that, how will i select the face graphics? i mean will it have a new option or somthing?
 

Mac

Member

What you do is create a folder in the Pictures folder called MenuFace, and then whatever number in the database the character is name the face that number and put it in the folder.

And please top double posting, just edit your original post. Read the forum guidelines
 
Alright more help... my characters name is colt. he is number 001. do i save his pic as 001:colt or jsut 001. also how do i let the game know who is talking so it knows wich characters picture to show?

oh and when i open my menu it still gives me an error message.
 
ummm wow..... my games really messed up now, can you explain how adding that code messed up my battles? i can understand it messing up my menu's, and i can understand me not being able to figure it out, but whenver i enter a battle the game freezes, and i didnt even touch that part of the script
 

mawk

Sponsor

Mac;137845 said:
What you do is create a folder in the Pictures folder called MenuFace, and then whatever number in the database the character is name the face that number and put it in the folder.

And please top double posting, just edit your original post. Read the forum guidelines

So, this would make it possible to display faces in text boxes? Would there be any text issues, or would the text avoid wrapping over the face in the first place?
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top