ja ich verwende andere Skripts
das problem ist allerdings folgendes:
wenn ich ESC drücke und ins Menu gehe kann ich dort den Punkt "Quests" anwählen.
danach kann ich acuh noch zwischen "abgeschlossene Quests" und "aktuelle Quests" wählen.
so... nun kommt das problem
unter "aktuelle Quests" wird zwar der Name des Quests angezeigt aber ich kann es nicht auswählen damit ich die beschreibung sehen kann
hier nochmal der quelltext ich hab nen bisschen abgewandelt was die texte der ausgabe angeht:
[div class=\'codetop\']CODE[div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']#======================================================================
====
# ** GameBaker Simple Quest Log
#==========================================================================
# by Solstice
# Version 1 [VX]
# January 26th, 2008
#==========================================================================
module GameBaker
Quests = {}
QuestsOnMenu = true
QuestsMenuReturn = 3
QuestsVocab = ['Quests','Aktuelle Quests','abgeschlossene Quests']
Quests[1] = {}
Quests[1]['Questtitel'] = 'Gemüse sammeln'
Quests[1]['Auftrag'] = "Sammle von jedem Gemüse 10."
Quests[2] = {}
Quests[2]['name'] = 'Chicken Eggs'
Quests[2]['desc'] = 'Collect 5 chicken eggs and visit Farmer Joe.'
end
#==========================================================================
#
# To check for updates or find more scripts, visit:
#
http://www.gamebaker.com/rmvx/scripts/# Our RMXP scripts:
http://www.gamebaker.com/rmxp/scripts/#
# Instructions:
http://www.gamebaker.com/rmvx/scripts/quest-log.php# Discussion/Help:
http://forums.gamebaker.com/showthread.php?t=1199#
#==========================================================================
def gb_givequest(num)
return if $game_system.gamebaker_quests.include?(num)
$game_system.gamebaker_quests += [num]
end
def gb_removequest(num)
if $game_system.gamebaker_quests.include?(num)
$game_system.gamebaker_quests -= [num]
end
if $game_system.gamebaker_questscomplete.include?(num)
$game_system.gamebaker_questscomplete -= [num]
end
end
def gb_endquest(num)
return if $game_system.gamebaker_questscomplete.include?(num)
$game_system.gamebaker_quests -= [num]
$game_system.gamebaker_questscomplete += [num]
end
class Game_System
attr_accessor :gamebaker_quests
attr_accessor :gamebaker_questscomplete
alias gamebaker_questlog_initialize initialize
def initialize
gamebaker_questlog_initialize
@gamebaker_quests = []
@gamebaker_questscomplete = []
end
end
class Window_GBQuests < Window_Selectable
def initialize(complete = false)
super(0, 56, 544, 416 - 152 - 56)
if complete
@quests = $game_system.gamebaker_questscomplete
else
@quests = $game_system.gamebaker_quests
end
refresh
@column_max = 2
@item_max = @quests.size
self.active = false
end
def refresh
for i in
0...@quests.size rect = item_rect(i)
self.contents.clear_rect(rect)
self.contents.draw_text(rect, GameBaker::Quests[@quests
]['Questtitel'])
end
end
end
class Window_GBQuestsBot < Window_Base
def initialize
super(0, 416 - 152, 544, 152)
end
def show_quest(num)
if @num != num
@num = num
begin
text = GameBaker::Quests[num]['Auftrag']
rescue
return
end
end
self.contents.clear
self.contents.draw_text(0,0,300,300,text,0)
end
end
class Scene_GBQuests < Scene_Base
def start
create_menu_background
commands = [GameBaker::QuestsVocab[1],GameBaker::QuestsVocab[2]]
@command_window = Window_Command.new(544,commands,2)
@quests_top = Window_GBQuests.new
@quests_top2 = Window_GBQuests.new(true)
@quests_top2.visible = false
@quests_bot = Window_GBQuestsBot.new
end
def update
@command_window.update
@quests_top.update
@quests_top2.update
if @quests_top.active
update_quests
elsif @quests_top2.active
update_quests2
else
update_command
end
end
def update_command
if Input.trigger?(Input::cool.gif\" style=\"vertical-align:middle\" emoid=\"B)\" border=\"0\" alt=\"cool.gif\" /]
$scene = Scene_Menu.new(GameBaker::QuestsMenuReturn)
return
end
@quests_top.visible = @command_window.index == 0
@quests_top2.visible = @command_window.index == 1
if Input.trigger?(Input::C)
Sound.play_decision
@command_window.active = false
@quests_top.active = @command_window.index == 0
@quests_top2.active = @command_window.index == 1
end
end
def update_quests
if Input.trigger?(Input::cool.gif\" style=\"vertical-align:middle\" emoid=\"B)\" border=\"0\" alt=\"cool.gif\" /]
Sound.play_cancel
@command_window.active = true
@quests_top.active = false
end
num = $game_system.gamebaker_quests[@quests_top.index]
@quests_bot.show_quest(num)
end
def update_quests2
if Input.trigger?(Input::cool.gif\" style=\"vertical-align:middle\" emoid=\"B)\" border=\"0\" alt=\"cool.gif\" /]
Sound.play_cancel
@command_window.active = true
@quests_top2.active = false
end
num = $game_system.gamebaker_questscomplete[@quests_top2.index]
@quests_bot.show_quest(num)
end
def terminate
Sound.play_cancel
dispose_menu_background
@quests_top.dispose
@quests_top2.dispose
@quests_bot.dispose
@command_window.dispose
end
end
if GameBaker::QuestsOnMenu
class Scene_Menu
alias gamebaker_questlog_menuinitialize initialize
def initialize(menu_index = 0)
gamebaker_questlog_menuinitialize(menu_index)
@menu_index += 1 if menu_index == 3 or menu_index == 4
end
def create_command_window
s1 = Vocab::item
s2 = Vocab::skill
s3 = Vocab::equip
s4 = Vocab::status
s5 = GameBaker::QuestsVocab[0]
s6 = Vocab::save
s7 = Vocab::game_end
@command_window = Window_Command.new(160, [s1, s2, s3, s4, s5, s6, s7])
@command_window.index = @menu_index
if $game_party.members.size == 0
@command_window.draw_item(0, false)
@command_window.draw_item(1, false)
@command_window.draw_item(2, false)
@command_window.draw_item(3, false)
end
if $game_system.save_disabled
@command_window.draw_item(5, false)
end
end
def update_command_selection
if Input.trigger?(Input::cool.gif\" style=\"vertical-align:middle\" emoid=\"B)\" border=\"0\" alt=\"cool.gif\" /]
Sound.play_cancel
$scene = Scene_Map.new
elsif Input.trigger?(Input::C)
if $game_party.members.size == 0 and @command_window.index < 4
Sound.play_buzzer
return
elsif $game_system.save_disabled and @command_window.index == 5
Sound.play_buzzer
return
end
Sound.play_decision
case @command_window.index
when 0
$scene = Scene_Item.new
when 1,2,3
start_actor_selection
when 4
$scene = Scene_GBQuests.new
when 5
$scene = Scene_File.new(true, false, false)
when 6
$scene = Scene_End.new
end
end
end
end
end
#==========================================================================
# End of file! You can find more of our scripts at http://www.gamebaker.com
#==========================================================================