Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
  • 0
zahraa

2 Requests (Script)

Question

Hi there!

Here are script requests:

1) I want to have a "Option" part in my menu.Option should include:

Screen size

Music On/Off

Sound On/Off

Game difficulty : Easy/Normal/Hard

Mouse Control On/Off

Credits

 

2) I want to add : age,height,weight,a good habit,a bad habit for every character in status part.Also I want it to show character's faceset instead his/her small character.

 

that's it.Please tell me if you need more info.

Thanks

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Status

I can help with your 2nd part easily enough by recommending the Biography add-on by Ace. In it you can have age, race, height, habits, anything you want really. and is easier than add it to Window_Status because it's already cluttered as it is.

 

I can also help you change the sprite in the stats to a face.

Add this to Window_Base

  #--------------------------------------------------------------------------
  # * Draw Actor's Face
  #     actor : actor
  #     x     : draw spot x-coordinate
  #     y     : draw spot y-coordinate
  #--------------------------------------------------------------------------

  def draw_actor_face(actor, x, y)
   face = RPG::Cache.character("Faces/" + actor.character_name, actor.character_hue)
    fw = face.width
    fh = face.height
    src_rect = Rect.new(0, 0, fw, fh)
    self.contents.blt(x - fw / 23, y - fh, face, src_rect)
  end

Then in Window_Status change Line 23

    draw_actor_graphic(@actor, 40, 112)

to

   draw_actor_face(@actor, 40, 112)

Now in your Graphics folder add a new folder called "Faces" and put the face pictures of your characters in there by name like you would their sprite sets. You'll need a fiddle with the x and y values to get it in the right spot.

 

--------

Screen Size:

As for screen sizes, that is something that a lot of people struggle with. RMXP (and other RMs) does really weird things when you re-size the screen, it's recommended by all the pros that you don't bother because it's a huge undertaking to get it right.

 

Music/Sound on/off

I'm sure it can be done, I just don't know how.

 

Mouse Controler

There are a bunch you can find by googling it, I wouldn't bother with an actual option to turn it on and off because if you don't want to use the mouse you just don't use it lol

http://forum.chaos-project.com/index.php?topic=4710.0

http://www.phanxgames.com/forum/printer_friendly_posts.asp?TID=8591

 

Game difficulty

This will require a lot of extra scripting/eventing on your part, I'm sure to make the script itself will be easy enough, but you need to ask yourself if the time required to set everything up is worth it. for every map, every battle you need to set up 3 sets of creature info and make sure they don't break the game by making it too hard. Personally I don't think it's worth doing, but that's up to you.

 

------

 

Credits (in menu)

I edited Credit Script by Noob Saibot

In Scene_Menu add this any where between Line 20-25, this is it's placement in the menu line

    s7 = "Credits"

Edit

   @command_window = Window_Command.new(160, [s1, s2, s3, s4, s5, s6]

by adding s7

    @command_window = Window_Command.new(160, [s1, s2, s3, s4, s5, s6, s7]

add this after $scene = Scene_End.new

      when 6  # Credits
        # Play decision SE
        $game_system.se_play($data_system.decision_se)
        # Switch to item screen
        $scene = Scene_Credits.new

Make a new Scene_Credits above main in the script

CREDITS_FONT = "Times New Roman"
CREDITS_SIZE = 24
CREDITS_OUTLINE = Color.new(0,0,127, 255)
CREDITS_SHADOW = Color.new(0,0,0, 100)
CREDITS_FILL = Color.new(255,255,255, 255)

#==============================================================================
# � Scene_Credits
#------------------------------------------------------------------------------
#  Scrolls the credits you make below. Original Author unknown. Edited by
#  MiDas Mike so it doesn't play over the Title, but runs by calling the following:
#  $scene = Scene_Credits.new
#==============================================================================

class Scene_Credits

# This next piece of code is the credits.
 
CREDIT=<<_END_
#Start Editing
Untitled Project

Director
---------------
MiDas Mike

Scripts
---------------
SephirothSpawn
Deke
Dubealex
Momomomo? (yes, that's their name)
Wachunga
Near Fantastica
Datriot
MeisMe
rpgmaker
CogWheel
BudsieBuds

Graphics
---------------
Tana
zanyzora
ccoa
Enterbrain
TR-the-one-and-only

Music and sound
---------------
Andrew Estrada
DoomWorld.com
IcePlug
Andy Smith
Enterbrain
Joe Gallagher
drenrin2120

Mapping
---------------
MiDas Mike

Storyline
---------------
MiDas Mike

Beta Testers
---------------


Special Thanks
---------------
Unlimited Adventures - "Without that game, this game would never
have made a start. UA is where Journey of Heroes first started."

Trickster - "Thanks for fixing the scripts. I greatly appreciate your
help in this project."

---------------

Thank you for playing this game. We hope you enjoyed it. Watch for
other titles by MiDas Productions in the future..

#Stop Editing
_END_
def main
#-------------------------------
# Animated Background Setup
#-------------------------------
@sprite = Sprite.new
#@sprite.bitmap = RPG::Cache.title($data_system.title_name)
@backgroundList = ["001-Title01"] #Edit this to the title screen(s) you wish to show in the background. They do repeat.
@backgroundGameFrameCount = 0
# Number of game frames per background frame.
@backgroundG_BFrameCount = 3.4
@sprite.bitmap = RPG::Cache.title(@backgroundList[0])
#------------------
# Credits Setup
#------------------
credit_lines = CREDIT.split(/\n/)
credit_bitmap = Bitmap.new(640,32 * credit_lines.size)
credit_lines.each_index do |i|
line = credit_lines[i]
credit_bitmap.font.name = CREDITS_FONT
credit_bitmap.font.size = CREDITS_SIZE
x = 0
credit_bitmap.font.color = CREDITS_OUTLINE
credit_bitmap.draw_text(0 + 1,i * 32 + 1,640,32,line,1)
credit_bitmap.draw_text(0 - 1,i * 32 + 1,640,32,line,1)
credit_bitmap.draw_text(0 + 1,i * 32 - 1,640,32,line,1)
credit_bitmap.draw_text(0 - 1,i * 32 - 1,640,32,line,1)
credit_bitmap.font.color = CREDITS_SHADOW
credit_bitmap.draw_text(0,i * 32 + 8,640,32,line,1)
credit_bitmap.font.color = CREDITS_FILL
credit_bitmap.draw_text(0,i * 32,640,32,line,1)
end
@credit_sprite = Sprite.new(Viewport.new(0,50,640,380))
@credit_sprite.bitmap = credit_bitmap
@credit_sprite.z = 9998
@credit_sprite.oy = -430
@frame_index = 0
@last_flag = false
#--------
# Setup
#--------
# ME?BGS ??????
Audio.bgm_play("Audio/BGM/013-Theme02.mid", 100, 100) #Play custom BGM
Audio.me_stop
Audio.bgs_stop
Audio.se_stop
# ?????????
Graphics.transition
# ??????
loop do
# ????????
Graphics.update
# ???????
Input.update
# ??????
update
# ????????????????
if $scene != self
break
end
end
# ?????????
Graphics.freeze
@sprite.dispose
@credit_sprite.dispose
end
#Checks if credits bitmap has reached it's ending point
def last?
return (@frame_index >= @credit_sprite.bitmap.height + 480)
end
def last
if not @last_flag
@last_flag = true
@last_count = 0
else
@last_count += 1
end
if @last_count >= 300
$scene = Scene_Map.new
end
end
#Check if the credits should be cancelled
def cancel?
if Input.trigger?(Input::C)
$scene = Scene_Menu.new
return true
end
return false
end
#--------------------------------------------------------------------------
# ? ??????
#--------------------------------------------------------------------------
def update
@backgroundGameFrameCount = @backgroundGameFrameCount + 1
if @backgroundGameFrameCount >= @backgroundG_BFrameCount
@backgroundGameFrameCount = 0
# Add current background frame to the end
@backgroundList = @backgroundList << @backgroundList[0]
# and drop it from the first position
@backgroundList.delete_at(0)
@sprite.bitmap = RPG::Cache.title(@backgroundList[0])
end
return if cancel?
last if last?
@credit_sprite.oy += 1
end
end

Change The names at the top

 

Change For a BG

@backgroundList = ["001-Title01"]

 

Change For a BGM

Audio.bgm_play("Audio/BGM/013-Theme02.mid", 100, 100)

 

((My edit brings the scene back to Scene_Menu))

 

Hope these help

Share this post


Link to post
Share on other sites
  • 0

Sorry for late reply,I was studying for my geography exam :\ 

 

Status:

Biography add-on by bigace is a very nice script but there's only one problem.I want to remove character's image at background and use windows skin instead an image for its BG.

My second problem in status solved.Now i can add a character's face instead sprite.Thanks a lot

Option:

About screen size,I saw games (like aveyond or millennium if you played)which have screen size option.

Game difficulty

I use this script to set game difficulty


#---------------------------------------------------
# Adjust damage for difficult level   
#---------------------------------------------------
def adjust_difficulty(user)
  return if [0, nil, "", "Miss"].include?(self.damage)

  # Determine damage adjustment
  if user.is_a?(Game_Actor)
    # actors are 25% stronger on easy, 25% weaker on difficult
    adjust = [1.25, 1, 0.75][$game_variables[1]]
  else
    # enemies are 25% weaker on easy, 25% stronger on difficult
    adjust = [0.75, 1, 1.25][$game_variables[1]]
  end

  # Adjust damage (take into account whether it's REAL damage, or healing)
  if self.damage > 0
    self.damage = [1, (self.damage * adjust).to_i].max
  else
    self.damage = [-1, (self.damage * adjust).to_i].min
  end
end

When you add this script at the end of Game_Battler 3 it changes difficulty of all battles in game.You just need to choose a variable (Number 1 in this script) and set it to 0 or 1 or 2 to select game difficulty (I guess u knew how does it work :) )

Credit:

That script is good but i want to access 'credits' via option,not menu

Overall,I want to have an option like this: ( but with less options)

0xpmd3uui86wywl2d78d.png

Aveyond 3 DP

Thanks for your help and sorry for my awful English

Edited by zahraa

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...