• Anmelden

1

Sonntag, 16. Mai 2010, 00:53

Kleines Menü + Questlog. [Erledigt]

Hallo Community!

//EDIT: Hab ein fertigen Questlog genommen, und mein Menüedit selbst geschrieben :D

Ich wollte hier mal nach einer Sache fragen,
da ich der Zeit noch keine Ahnung von Ruby habe.

Und zwar geht es um dieses Menüscript:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#  This class performs menu screen processing. (edited by Playm)
#==============================================================================
 
class Scene_Menu
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize(menu_index= 0)
  end
  #--------------------------------------------------------------------------
  # * Main Processing
  #--------------------------------------------------------------------------
  def main
	# Map im Hintergrund
	@spriteset = Spriteset_Map.new
	# Make command window
	s1 = "Weiter"
	s2 = "Beenden"
	@command_window = Window_Command.new(160, [s1, s2])
	@command_window.index = 0
	@command_window.x = 240
	@command_window.y = 160
	# If save is forbidden
	if $game_system.save_disabled
  	# Disable save
  	@command_window.disable_item(0)
	end
	# Execute transition
	Graphics.transition
	# Main loop
	loop do
  	# Update game screen and input information
  	Graphics.update(); Input.update();
  	# Frame update
  	update
  	# Abort loop if screen is changed
  	break if($scene != self)
	end
	# Prepare for transition
	Graphics.freeze
	# Dispose of windows
	@command_window.dispose
	@spriteset.dispose
  end
  #--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  def update
	# Update windows
	@command_window.update
	# If B button was pressed
	if Input.trigger?(Input::B)
  	# Play cancel SE
  	$game_system.se_play($data_system.cancel_se)
  	# Switch to map screen
  	$scene = Scene_Map.new
  	return
	end
	# If C button was pressed
	if Input.trigger?(Input::C)
  	# Branch by command window cursor position
  	case @command_window.index
  	when 0 then $scene= Scene_Map.new
  	when 1 then command_shutdown
  	end
	end
  end
  #--------------------------------------------------------------------------
  # * Process When Choosing [Beenden] Command
  #--------------------------------------------------------------------------
  def command_shutdown
	# Play decision SE
	$game_system.se_play($data_system.decision_se)
	# Fade out BGM, BGS, and ME
	Audio.bgm_fade(800)
	Audio.bgs_fade(800)
	Audio.me_fade(800)
	# Shutdown
	$scene = nil
  end
end


Wer könnte mir da evtl. einen Questlog einbauen?

Der Questlog sollte folgendermaßen aussehen.

Angenommen ich hol mir von einem NPC einen Quest. (Name z.B. = Zettelquest)
Bei diesem Quest muss man bsw. 20 Zettel sammeln.
Im Questlog steht nun:

Zettelquest:

Töte Geister und sammle 0/20 Zettel.

MFG Calvin
Hakuna Matata~ :thumbsup:

Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »Leertaste« (16. Mai 2010, 00:53)


Social Bookmarks