• Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

General Game Dev Help and Requests

Status
Not open for further replies.
I hope this is the right place.

How do you:
Make an animated title screen.
Make an intro. (Like the battle between Gengar and Nidorino in Fire Red)
Design a Pokedex and other Menus.
Make Pokemon game style battles.

This is for RPG Maker XP.
(2003 answers will help too because I have both of them)
 
Peekimon said:
Thanks, Esai, for your help. I found the code and I'll show it here to help others with the same problem:
To fix the "Enter Hero Name" Problem:
Replace the actual Window_NameInput with:
Code:
#==============================================================================
# ? Window_NameInput
#------------------------------------------------------------------------------
#  ???????????????????????
#==============================================================================

class Window_NameInput < Window_Base
CHARACTER_TABLE =
[
 "A","B","C","D","E",
 "F","G","H","I","J",
 "K","L","M","N","O",
 "P","Q","R","S","T",
 "U","V","W","X","Y",
 "Z","","","","",
 "","","","","",
 "1", "2" ,"3", "4" ,"5",
 "6","7","8","9","0",
 "a", "b", "c", "d","e",
 "f","g","h","i","j",
 "k","l","m","n","o",
 "p","q","r","s","t",
 "u","v","w","x","y",
 "z","","","","",
 "","","","","",
 "!","@","#","$","%",
 "^","&","*","(",")",
 "?","?","?","?","?",
 "?","?","?","?","?",
 "?","?","?","?","?",
 "?","?","?","?","?",
 "","","","","",
 "?","?","?","?","?",
 "-","+","=","/","|",
 ";",":","'","_","?",
 ",",".","<",">","~",
 "`","[","]","{","}",
 "","","","","",
 "","","","","",
 "","","","","",
 "","","","","",
 "","","","","",
 "","","","","",
 "","","","","",
 "","","","","",
]
#--------------------------------------------------------------------------
# ? ?????????
#--------------------------------------------------------------------------
def initialize
  super(0, 128, 640, 352)
  self.contents = Bitmap.new(width - 32, height - 32)
  self.contents.font.name = "Arial"
  @index = 0
  refresh
  update_cursor_rect
end
#--------------------------------------------------------------------------
# ? ?????
#--------------------------------------------------------------------------
def character
  return CHARACTER_TABLE[@index]
end
#--------------------------------------------------------------------------
# ? ??????
#--------------------------------------------------------------------------
def refresh
  self.contents.clear
  for i in 0..179
    x = 4 + i / 5 / 9 * 152 + i % 5 * 28
    y = i / 5 % 9 * 32
    self.contents.draw_text(x, y, 28, 32, CHARACTER_TABLE[i], 1)
  end
  self.contents.draw_text(544, 9 * 32, 64, 32, "Confirm", 1)
end
#--------------------------------------------------------------------------
# ? ?????????
#--------------------------------------------------------------------------
def update_cursor_rect
  # ??????? [??] ???
  if @index >= 180
    self.cursor_rect.set(544, 9 * 32, 64, 32)
  # ??????? [??] ?????
  else
    x = 4 + @index / 5 / 9 * 152 + @index % 5 * 28
    y = @index / 5 % 9 * 32
    self.cursor_rect.set(x, y, 28, 32)
  end
end
#--------------------------------------------------------------------------
# ? ??????
#--------------------------------------------------------------------------
def update
  super
  # ??????? [??] ???
  if @index >= 180
    # ?????
    if Input.trigger?(Input::DOWN)
      $game_system.se_play($data_system.cursor_se)
      @index -= 180
    end
    # ?????
    if Input.repeat?(Input::UP)
      $game_system.se_play($data_system.cursor_se)
      @index -= 180 - 40
    end
  # ??????? [??] ?????
  else
    # ??????????????
    if Input.repeat?(Input::RIGHT)
      # ????????????????
      # ???????????????
      if Input.trigger?(Input::RIGHT) or
         @index / 45 < 3 or @index % 5 < 4
        # ?????????
        $game_system.se_play($data_system.cursor_se)
        if @index % 5 < 4
          @index += 1
        else
          @index += 45 - 4
        end
        if @index >= 180
          @index -= 180
        end
      end
    end
    # ??????????????
    if Input.repeat?(Input::LEFT)
      # ????????????????
      # ???????????????
      if Input.trigger?(Input::LEFT) or
         @index / 45 > 0 or @index % 5 > 0
        # ?????????
        $game_system.se_play($data_system.cursor_se)
        if @index % 5 > 0
          @index -= 1
        else
          @index -= 45 - 4
        end
        if @index < 0
          @index += 180
        end
      end
    end
    # ??????????????
    if Input.repeat?(Input::DOWN)
      # ?????????
      $game_system.se_play($data_system.cursor_se)
      if @index % 45 < 40
        @index += 5
      else
        @index += 180 - 40
      end
    end
    # ??????????????
    if Input.repeat?(Input::UP)
      # ????????????????
      # ???????????????
      if Input.trigger?(Input::UP) or @index % 45 >= 5
        # ?????????
        $game_system.se_play($data_system.cursor_se)
        if @index % 45 >= 5
          @index -= 5
        else
          @index += 180
        end
      end
    end
    # L ???? R ??????????
    if Input.repeat?(Input::L) or Input.repeat?(Input::R)
      # ???? / ???? ??
      $game_system.se_play($data_system.cursor_se)
      if @index / 45 < 2
        @index += 90
      else
        @index -= 90
      end
    end
  end
  update_cursor_rect
end
end

I did not create this code. Someone on RMXP.net did!
It worked! I tried it!
hmm..thats sorta confusing. how does it work, what do we have to do, (or maybe just me) where do i/we put it? not to be rude but jw.. :nervous:
 
Go to tools>>script editor>>Window_NameInput and paste all that code in there.
 
Like Daegon said. I also mentioned that you replace the actual Window_NameInput code.
 
What about my question? I've posted twice and still no answer.
 
Jeff is this your question?
How do you change the color to black (0,0,0,255) in the Name Input Screen? It's not working for me and my default color is gray.

If it is, go to Window_Base and change the "normal_color" to your preferred color
such as:
Code:
def normal_color
    return Color.new(0, 0, 0, 255)
  end

And in both Name_Input and Name_Edit:
Find this:
Code:
self.contents.font.name = $fontface
self.contents.font.size = $fontsize

and before them, put this:
Code:
self.contents.font.color = normal_color
In the Name_Input Screen, the text color would change to your "normal color"
Hope I helped
 
Nope, doesn't work. The default color is still 0, 0, 0, 255 but the name input screen's font color is still white.
 
can someone please answer my questions?please
 
Erm question:
How is the "day/night" thing done?
You use some switches. And then tint the screen to suit the time of day.
For example:
If switch morning is on
>>tint screen (whatever)
If switch night is on
>>tint screen (whatever)

can someone please answer my questions?please
what was it again?
 
Jeff - I think you have to change all the fonts to one color (unsure), because, for me, the input was black and my normal font is black. Ask virtual, he's good in Ruby
 
Well, I've changed all font colors to black now, but the name input font color is still white.
 
Okay. Basically when I put the script in Name_Edit (before self.contents.font.name = $fontface self.contents.font.size = $fontsize), I tested my game and it said error occured. Then, I put the same script also in Name_Input, but couldn't find it, so I placed it before "self.contents.font.name = "Arial"", but still won't work.
 
Well, yes, you put it before the 'self.contents.font.name = "Arial"'...but, for me, it works...but what type of error really showed up?
 
what was it again?[/QUOTE/]
there on page 37 on post number #922
 
Daegon_Kimeron said:
You use some switches. And then tint the screen to suit the time of day.
For example:
If switch morning is on
>>tint screen (whatever)
If switch night is on
>>tint screen (whatever)


what was it again?

Is that how I do it? I'm rubbish at RMXP right now, I've been working with it for a very short time. Is there a GOOD tutorial anywhere I can use? I searched gogole for hours.
 
Jeeze, my current pokemon tilesets are getting boring, I need some new ones for INDOORS.
 
Status
Not open for further replies.
Back
Top