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.

A Background summary Script

Alright, so im very bad a scripting, but i'm slowly learning, yay! anyway, I need a script that would add a option on the menu that would tell the back ground of a character... I don't know if this would be hard or not, but if it's to difficult without pay don't worry about it,

Thanks in advance! :grin:
 
on scene menu, find the lines:
s1 =  $data_system.words.item
s2 =
..
s6 = "end game"

and add below them the line: s7 = "background"
change the next line to:
@command_window = Window_Command.new(160, [s1,s2,s3,s4,s5,s6,s7])
now you have another option in the menu- it doesn't do anything, tough.
so, go to the method update_command. you'll see :
when 5 # end game
# Play decision SE
..

add a new line after $scene = Scene_End.new, which says:
when 6
#do whatever you want to happen when the player pressed 'background'.


it's hard to show a lot of text, so I suggest you make an image, and show it using:
@pic = Sprite.new
@pic.bitmap = RPG::Cache.picture("name_of_your_image.png")
@down.z = 101
@pic.x = 0
@pic.y = 0

also, in the last line of 'main' add: @pic.dispose
*the picture must be inside the game project folder.
good luck!
 

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