collapse collapse

 Community


 User Info




Willkommen Gast. Bitte einloggen oder registrieren.

 Partnerseiten

rpgvx.net

Das Forum ist offline

Autor Thema: Problem mit Questlog  (Gelesen 3022 mal)

Copyman

  • Gast
Problem mit Questlog
« am: April 05, 2008, 22:43:54 »
Hallo erstmal, also ich bin neu hier und habe ersst gestern angefangen mit dem VX zu arbeiten und habe demnach nch nicht so viel erfahrung damit, zumal ich den XP ausgelassen habe. Mit den Makern vorher habe ich mich relativ gut ausgekannt.

Aber nun zu meinem Problem:

Ich habe mir dieses Questlogscript eingebaut.
Es funktioniert soweit auch ganz gut, nur das ich wenn ich eine Quest eingebaut habe diese im menü nicht auswählen kann.
Ich hoffe jemand kann mir helfen.

Problem mit Questlog

ERZENGEL

  • Gast
Problem mit Questlog
« Antwort #1 am: April 06, 2008, 12:40:29 »
Benützt du andere Skripte die das Menü erweitern bzw. verändern?
Steht bei dir in Zeile 11: QuestsOnMenu = true?

Auch wenn ich dich jetzt mit Fragen überrumple, herzlich willkommen im Forum  happy.gif\" style=\"vertical-align:middle\" emoid=\"^_^\" border=\"0\" alt=\"happy.gif\" /]
« Letzte Änderung: April 06, 2008, 12:41:49 von ERZENGEL »

Problem mit Questlog

Copyman

  • Gast
Problem mit Questlog
« Antwort #2 am: April 06, 2008, 13:20:11 »
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
#==========================================================================
« Letzte Änderung: April 06, 2008, 13:21:41 von Copyman »

Problem mit Questlog

Copyman

  • Gast
Problem mit Questlog
« Antwort #3 am: April 07, 2008, 08:41:06 »
Hat jemand ne idee woran es liegen kann???

Mir würde auch helfen wenn jmd. ein anderes funktionierendes Questlog hat.

Wäre dann auch nett wenn der dann erklärt wie er es gemacht hat.
also aufrufen im spiel dann etc.

Problem mit Questlog

Lordki

  • Gast
Problem mit Questlog
« Antwort #4 am: April 07, 2008, 10:48:17 »
Wäre für mein Game auch ganz interresant, also ich würde auch gerne wissen wie das genau funzt ^^

Problem mit Questlog

Cege

  • Gast
Problem mit Questlog
« Antwort #5 am: April 07, 2008, 18:59:33 »
Das ist bei dem Skript soweit ich weis normal...
Das selbe Prob hatte ich auch...
Versuchs mit dem Skript hier!!!

Ist zwar etwas komplizierter aber es funktioniert wenigstens ;)
Hab ich auch schonma hier iwo gepostet ^^

Problem mit Questlog

Copyman

  • Gast
Problem mit Questlog
« Antwort #6 am: April 07, 2008, 19:14:39 »
Das Scrit hab ich acuh schona usprobiert aber irgendwie krieg ich das nicht zum laufen, entweder ich kann nichtmal Testspiel machen weil sofort n Fehler kommt oder der Fehler kommt wenn ich Neues Spiel acmhe, der kommt mit irgendwas immer nicht klar

Problem mit Questlog

Cege

  • Gast
Problem mit Questlog
« Antwort #7 am: April 07, 2008, 19:40:29 »
Ähm... schonmal versucht die .rvproj und die .exe datei mit einem funktionierendenskript auszutauschen?
Müsste eigendlich funzen...

Problem mit Questlog

Copyman

  • Gast
Problem mit Questlog
« Antwort #8 am: April 07, 2008, 19:51:28 »
Dann is aber alles was ich bisher an meinem Spiel gemacht hab verloren

Problem mit Questlog

Cege

  • Gast
Problem mit Questlog
« Antwort #9 am: April 07, 2008, 19:55:08 »
Ne sollst ja nur die beiden datein von einem funktionierenden game in die demo von dem skript ersetzen (nich tauschen, sorry falsch ausgedrückt ^^) mit deinem game sollst garnix machen ^^ da kannst ja später nur den skript reinkopieren ;)

Problem mit Questlog

Copyman

  • Gast
Problem mit Questlog
« Antwort #10 am: April 07, 2008, 19:57:59 »
achso, also ich soll jetz die beiden dateien von meinem spiel in den ordner von der demo amcehn und die demosachen somit überschrieben ?

Problem mit Questlog

Cege

  • Gast
Problem mit Questlog
« Antwort #11 am: April 07, 2008, 20:12:55 »
jop dann müsste es Spielbar sein... Aber nur die beiden Dateien die ich dir gesagt hab, obwohl die .rvproj auch ausreichen dürfte ^^

Problem mit Questlog

Copyman

  • Gast
Problem mit Questlog
« Antwort #12 am: April 07, 2008, 20:16:40 »
hab grad gemacht, und nu, nachdem ich das ersetzt hb ?

Problem mit Questlog

Cege

  • Gast
Problem mit Questlog
« Antwort #13 am: April 07, 2008, 20:43:23 »
Ja kommt der fehler immernoch?
Wenn ja habi auch kein plan.. musst vllt ma die fehlermeldung Posen dann kann man dir auch eher helfen

 


 Bild des Monats

rooftop party

Views: 4436
By: papilion

 Umfrage

  • Wer soll das BdM gewinnen?
  • Dot Kandidat 1
  • 3 (25%)
  • Dot Kandidat 2
  • 1 (8%)
  • Dot Kandidat 3
  • 2 (16%)
  • Dot Kandidat 4
  • 0 (0%)
  • Dot Kandidat 5
  • 6 (50%)
  • Stimmen insgesamt: 12
  • View Topic

 Schnellsuche





SimplePortal 2.3.3 © 2008-2010, SimplePortal