RPGVX.net
RPGVX.net => RPGVX.net Service => Archiv => Thema gestartet von: Rpg Maker Vx Boy am August 02, 2009, 15:55:44
-
Hallo ich brauche dringend hilfe für mein Kampfmenü
Ich möchte es gerne so haben dass ich wenn ich Kampf drücke
Nur: Skill
Guard
Item
Habe
Schon mal Danke im Voraus
-
über main einfügen.
class Window_ActorCommand < Window_Command
def setup(actor)
s2 = Vocab::skill
s3 = Vocab::guard
s4 = Vocab::item
if actor.class.skill_name_valid # Skill command name is valid?
s2 = actor.class.skill_name # Replace command name
end
@commands = [s2, s3, s4]
@item_max = 4
refresh
self.index = 0
end
end
class Scene_Battle < Scene_Base
def update_actor_command_selection
if Input.trigger?(Input::B)
Sound.play_cancel
prior_actor
elsif Input.trigger?(Input::C)
case @actor_command_window.index
#~ when 0 # Attack
#~ Sound.play_decision
#~ @active_battler.action.set_attack
#~ start_target_enemy_selection
when 0 # Skill
Sound.play_decision
start_skill_selection
when 1 # Guard
Sound.play_decision
@active_battler.action.set_guard
next_actor
when 2 # Item
Sound.play_decision
start_item_selection
end
end
end
end
-
Danke für deine Hilfe
Post zusammen gefügt: August 02, 2009, 16:07:04
Jetzt hab ich doch noch ein Problem wenn ich Dann Skill drücke greift mein Chara ohne
einen Skill auszuwählen an
-
sollte jetzt funktionieren
-
Ja es funktioniert jetzt vielen dank
Dann ist ja alles gut :)
Closed.
MfG, Colo