제작의뢰

Extra Form
사용 제작툴 RMVXA
의뢰 부문 기능 구현
마감일 2016-06-14

습작님이 제작하신 메뉴제작툴로 만든 현재 사용중인 메뉴 스크립트 입니다...

 

class Scene_Menu < Scene_MenuBase
  def start
    super
    create_command_window
    create_gold_window
    create_location_window
    create_status_window
  end
  def create_gold_window
    @gold_window = Window_Gold.new
  end
  def create_location_window
    @location_window = Window_Location.new
  end
  def create_command_window
    @command_window = Window_MenuCommand.new
    @command_window.set_handler(:item,    method(:command_item))
    @command_window.set_handler(:skill,    method(:command_personal))
    @command_window.set_handler(:equip,    method(:command_personal))
    @command_window.set_handler(:status,    method(:command_personal))
    @command_window.set_handler(:custom_scene_0,    method(:command_custom_scene_0))
    @command_window.set_handler(:common_event_69,    method(:command_common_event_69))
    @command_window.set_handler(:common_event_70,    method(:command_common_event_70))
    @command_window.set_handler(:common_event_71,    method(:command_common_event_71))
    @command_window.set_handler(:continue,    method(:command_continue))
    @command_window.set_handler(:game_end,    method(:command_game_end))

    @command_window.set_handler(:cancel,    method(:return_scene))
  end
  def create_status_window
    @status_window = Window_MenuStatus.new(160, 0)
  end
  def command_custom_scene_0
    SceneManager.call(Scene_Status_Distribution)
  end
  def command_common_event_69
    $game_temp.reserve_common_event(69)
    SceneManager.goto(Scene_Map) if $game_temp.common_event_reserved?
  end
  def command_common_event_70
    $game_temp.reserve_common_event(70)
    SceneManager.goto(Scene_Map) if $game_temp.common_event_reserved?
  end
  def command_common_event_71
    $game_temp.reserve_common_event(71)
    SceneManager.goto(Scene_Map) if $game_temp.common_event_reserved?
  end
  def command_continue
    SceneManager.call(Scene_Load)
  end
end
class Window_MenuCommand < Window_Command
  def initialize
    super(0, 0)
    self.opacity = 255 if SceneManager.scene_is?(Scene_Menu)
    select_last
  end
  def window_width
    return 160
  end
  def window_height
    return 272
  end
  def make_command_list
    add_command(Vocab::item,   :item,   main_commands_enabled)
    add_command(Vocab::skill,   :skill,   main_commands_enabled)
    add_command(Vocab::equip,   :equip,   main_commands_enabled)
    add_command(Vocab::status,   :status,   main_commands_enabled)
    add_command('스테이터스분배',   :custom_scene_0)
    add_command($data_common_events[69].name,   :common_event_69)
    add_command($data_common_events[70].name,   :common_event_70)
    add_command($data_common_events[71].name,   :common_event_71)
    add_command(Vocab::continue,   :continue,   main_commands_enabled)
    add_command(Vocab::game_end,   :game_end)

  end
  def alignment
    return 0
  end
end
class Window_MenuStatus < Window_Selectable
  def initialize(x, y)
    super(x, y, window_width, window_height)
    @pending_index = -1
    self.opacity = 0 if SceneManager.scene_is?(Scene_Menu)
    refresh
  end
  def window_width
    return 384
  end
  def window_height
    return 267
  end
  def item_height
    return (height - standard_padding * 2) / 1
  end
  def draw_item(index)
    actor = $game_party.members[index]
    enabled = $game_party.battle_members.include?(actor)
    rect = item_rect(index)
    draw_item_background(index)
    draw_actor_simple_status(actor, rect.x, rect.y)
  end
  def draw_actor_simple_status(actor, x, y)
    draw_actor_name(actor, x + 10, y + 97)
    draw_actor_level(actor, x + 11, y + 123)
    draw_actor_icons(actor, x + 8, y + 63)
    draw_actor_class(actor, x + 84, y + 124)
    draw_actor_hp(actor, x + 10, y + 149)
    draw_actor_mp(actor, x + 10, y + 173)
    draw_actor_tp(actor, x + 10, y + 194)
  end
  def draw_actor_name(actor, x, y, width = 112)
    change_color(hp_color(actor))
    draw_text(x, y, width, 24, actor.name)
  end
  def draw_actor_level(actor, x, y)
    change_color(system_color)
    draw_text(x, y, 32, line_height, Vocab::level_a)
    change_color(normal_color)
    draw_text(x + 56 - 24, y, 24, 24, actor.level, 2)
  end
  def draw_actor_icons(actor, x, y, width = 96)
    icons = (actor.state_icons + actor.buff_icons)[0, ((24/24)*width)/24]
    icons.each_with_index {|n, i| draw_icon(n, x + 24 * (i % (width / 24)), y + 24 * (i / (width / 24))) }
  end
  def draw_actor_class(actor, x, y, width = 112)
    change_color(normal_color)
    draw_text(x, y, width, 24, actor.class.name)
  end
  def draw_actor_hp(actor, x, y, width = 124)
    draw_gauge(x, y, width, actor.hp_rate, hp_gauge_color1, hp_gauge_color2)
    change_color(system_color)
    draw_text(x, y, 30, line_height, Vocab::hp_a)
    draw_current_and_max_values(x, y, width, actor.hp, actor.mhp,
    hp_color(actor), normal_color)
    end
  def draw_actor_mp(actor, x, y, width = 124)
    draw_gauge(x, y, width, actor.mp_rate, mp_gauge_color1, mp_gauge_color2)
    change_color(system_color)
    draw_text(x, y, 30, line_height, Vocab::mp_a)
    draw_current_and_max_values(x, y, width, actor.mp, actor.mmp,
    mp_color(actor), normal_color)
  end
end
class Window_MenuActor < Window_MenuStatus
  def initialize
    super(0, 0)
    self.visible = false
  end
  def window_height
    Graphics.height
  end
end
class Window_Gold < Window_Base
  def initialize
    super(0, 368, window_width, 48)
    self.opacity = 255 if SceneManager.scene_is?(Scene_Menu)
    refresh
  end
  def window_width
    return 285
  end
  def refresh
    contents.clear
    change_color(system_color)
    draw_text(4, 0, contents_width - 8, line_height, '소지금')
    cx = text_size(currency_unit).width
    change_color(normal_color)
    draw_text(4, contents_height - line_height, contents.width - 8 - cx - 2, line_height, value, 2)
    change_color(system_color)
    draw_text(4, contents_height - line_height, contents.width - 8, line_height, currency_unit, 2)
  end
end
class Window_Location < Window_Base
  def initialize
    super(285, 368, window_width, 48)
    self.opacity = 255 if SceneManager.scene_is?(Scene_Menu)
    refresh
  end
  def window_width
    return 259
  end
  def refresh
    contents.clear
    change_color(system_color)
    draw_text(4, 0, contents_width - 8, line_height, '위치')
    change_color(normal_color)
    draw_text(4, contents_height - line_height, contents_width - 8, line_height, $game_map.display_name, 2)
  end
  def open
    refresh
    super
  end
end

 

여러가지 스크립트를 대조해보고 제 나름대로 .. 커먼이벤트를 출력하는 윈도우를 만들어보려는둥

해결해보려 노력했지만 도저히 결과가 나오지 않아 의뢰해봅니다...

 

 

현재 스크립트를 사용한 이미지는K-38SS.jpg


위와 같습니다

 

그리구 목표로 하는 메뉴는

 

K-38 복사.jpg


위와 같습니다

 

 

혹시 구현해주실 능력자분 계실까요...?

Atachment
첨부 '2'
  • ?

    script.txt


    날짜&시간 윈도우는 올리신 코드에 없어서 생략하겠습니다.


    캡처.PNG


    아이콘 변경은 빨간색의 아이콘 인덱스를, 게이지 설정은 노랗게 칠한 변수 번호를 바꾸면 됩니다.


    캡처2.PNG

    CG는 ./Graphics/Pictures 폴더에 CG(액터번호) 라는 이름의 파일을 넣으면 됩니다.

    Ex) CG2.png

    CG는 자동으로 오른쪽 정렬됩니다.

  • ?
    Bronya 2015.12.15 15:58

    ㅠㅠㅠ정말 감사합니다
    사실 반쯤 포기하고 있던 부분인데 해결해주시는분이 나타나다니 정말 감동했습니다... 스크립트 잘 쓰겠습니다
    별거 아니겠지만 게임내부에 감사의말이라도 남기겠습니다... 감사합니다

  • ?
    Bronya 2015.12.15 16:33 Files첨부 (1)
    K-38.jpg


    정상적으로 적용 완료되었습니다! 다시한번 감사드립니다!!

  • ?
    달or이 2016.02.17 08:55
    습작님께서 만드신거는 저도 사용 할수 있는 건가요?? 허락을 받아야 하는건가

List of Articles
마감일 분류 제목 사용 제작툴 의뢰 부문
2017-05-31 종료 라이온킹 캐릭터칩 RMXP 기타
2017-01-31 종료 (보수있음) 맵 제작 의뢰합니다~ file 기타 그래픽 제작
2017-06-01 종료 김치워리어 관련 그래픽 제작의뢰 RMVXA 그래픽 제작
2017-05-12 종료 쯔꾸르게임 도트, 그림 담당 해주실 분 2 RMVX 그래픽 제작
2017-02-22 종료 도와주세요!!!! file RMVXA 그래픽 제작
2016-05-01 진행 옛날에 나왔던 만화캐릭터들을 rpgxp로 쓸수 있었으면 좋겠군요 2 RMXP 기타
2017-05-13 종료 (보수있음) 대화창 그라데이션 그려주실분 찾아요 4 file RMMV 그래픽 제작
2016-12-31 종료 일러스트에 맞는 캐릭터칩 만들어주실 분 계신가요? file RMMV 그래픽 제작
2017-05-04 종료 6줄 rgss3 스크립트를 js로 컨버트 4 RMMV 기능 구현
2017-03-06 종료 (보수있음) 집 모양 타일셋 10종 file RMMV 그래픽 제작
2016-09-15 종료 박쥐 얼굴 file RMVXA 그래픽 제작
2016-09-03 종료 스크립트 아시는분..? RMVXA 기능 구현
2016-08-31 종료 기본배경 2 file RMVX 그래픽 제작
2016-08-30 종료 캐릭터 도트제작좀 부탁드립니다..ㅠ RMVX 그래픽 제작
2017-02-20 종료 월드맵 제작의뢰 다시합니다... file RMVXA 기타
2016-08-22 종료 캐릭터가 쓰러진거를 만들고 싶은데요 file RMVX 기타
2016-12-31 종료 효과음 의뢰를 하고싶습니다. file 기타 기타
2016-07-31 종료 화면이 연결되구 캐릭터 걸어다니는게 뚝뚝 끊기네요..ㅠㅠ 1 RMVXA 기능 구현
2016-07-27 종료 캐릭터툴 얼굴 제작부탁 드립니다.. 4 file RMVX 그래픽 제작
2016-07-15 종료 (보수)언더테일 모든칩 3 RMVXA 그래픽 제작
Board Pagination Prev 1 2 3 4 5 6 Next
/ 6