Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module BATTLE_HELP_WINDOW
- #==================================================================#
- # add new skill type descriptions using the following template #
- # and edit the existing ones #
- # Battle_desc[skill type id] = "Description here" #
- # #
- # #
- # #
- #==================================================================#
- Battle_desc = {} #no touchy
- # Skill type descriptions
- Battle_desc[1] = "Special skills\nwith swords and shit"
- Battle_desc[2] = "Yer a wizard harry"
- # Default basic commands
- Battle_desc[:item] = "throw \\i[350]s at the enemy or something"
- Battle_desc[:fight] = "engage the enemy in fisticuffs"
- Battle_desc[:escape] = "lets see if you can run faster than\nthe enemies"
- # Yanfly commands
- Battle_desc[:combatlog] = "combatlog?\nthis is madness!"
- Battle_desc[:party] = "open up your list of friends"
- Battle_desc[:autobattle] = "Aloe at butt"
- Battle_desc[:execute] = "etucexe"
- Battle_desc[:equip] = "dammit I got mustard on my axe"
- end
- class Window_ActorCommand < Window_Command
- include BATTLE_HELP_WINDOW
- alias actorcommandhelpwindow_initialize initialize
- alias actorcommandhelpwindow_update update
- alias actorcommandhelpwindow_open open
- alias actorcommandhelpwindow_close close
- alias actorcommandhelpwindow_dispose dispose
- def initialize( *args )
- actorcommandhelpwindow_initialize( *args )
- @battleactorcommandhelpwindow = Window_Help.new
- @battleactorcommandhelpwindow.visible = false
- end
- def update
- actorcommandhelpwindow_update
- @battleactorcommandhelpwindow.y += 25 unless @battleactorcommandhelpwindow.y >= 0
- if @actor
- case current_symbol
- when :skill
- htext = Battle_desc[current_ext]
- when :attack
- htext = $data_skills[@actor.attack_skill_id].description
- when :guard
- htext = $data_skills[@actor.guard_skill_id].description
- when :use_skill
- htext = $data_skills[current_ext].description
- when :use_item
- htext = $data_items[current_ext].description
- else
- htext = Battle_desc[current_symbol]
- end
- @battleactorcommandhelpwindow.set_text( htext )
- if self.visible && self.active
- @battleactorcommandhelpwindow.visible = true
- else
- @battleactorcommandhelpwindow.visible = false
- end
- end
- end
- def open
- actorcommandhelpwindow_open
- @battleactorcommandhelpwindow.y = -400
- @battleactorcommandhelpwindow.visible = true
- end
- def close
- actorcommandhelpwindow_close
- @battleactorcommandhelpwindow.visible = false
- end
- def dispose
- actorcommandhelpwindow_dispose
- @battleactorcommandhelpwindow.dispose unless @battleactorcommandhelpwindow.disposed?
- end
- end
- class Window_PartyCommand < Window_Command
- include BATTLE_HELP_WINDOW
- alias partycommandhelpwindow_initialize initialize
- alias partycommandhelpwindow_update update
- alias partycommandhelpwindow_open open
- alias partycommandhelpwindow_close close
- alias partycommandhelpwindow_dispose dispose
- def initialize( *args )
- partycommandhelpwindow_initialize( *args )
- @battlepartycommandhelpwindow = Window_Help.new
- @battlepartycommandhelpwindow.visible = false
- end
- def update
- partycommandhelpwindow_update
- @battlepartycommandhelpwindow.y += 25 unless @battlepartycommandhelpwindow.y >= 0
- htext = Battle_desc[current_symbol]
- @battlepartycommandhelpwindow.set_text( htext )
- @battlepartycommandhelpwindow.visible = true if (!$game_message.visible && self.active)
- end
- def open
- partycommandhelpwindow_open
- @battlepartycommandhelpwindow.y = -400
- @battlepartycommandhelpwindow.visible = true
- end
- def close
- partycommandhelpwindow_close
- @battlepartycommandhelpwindow.visible = false
- end
- def dispose
- partycommandhelpwindow_dispose
- @battlepartycommandhelpwindow.dispose unless @battlepartycommandhelpwindow.disposed?
- end
- end
- class Window_ConfirmCommand < Window_Command
- include BATTLE_HELP_WINDOW
- alias confirmcommandhelpwindow_initialize initialize
- alias confirmcommandhelpwindow_update update
- alias confirmcommandhelpwindow_open open
- alias confirmcommandhelpwindow_close close
- alias confirmcommandhelpwindow_dispose dispose
- def initialize( *args )
- confirmcommandhelpwindow_initialize( *args )
- @confirmhelpwindow = Window_Help.new
- @confirmhelpwindow.visible = false
- end
- def update
- confirmcommandhelpwindow_update
- @confirmhelpwindow.y += 25 unless @confirmhelpwindow.y >= 0
- htext = Battle_desc[current_symbol]
- @confirmhelpwindow.set_text( htext )
- @confirmhelpwindow.visible = true if self.active
- end
- def open
- confirmcommandhelpwindow_open
- @confirmhelpwindow.y = -400
- @confirmhelpwindow.visible = true
- end
- def close
- confirmcommandhelpwindow_close
- @confirmhelpwindow.visible = false
- end
- def dispose
- confirmcommandhelpwindow_dispose
- @confirmhelpwindow.dispose unless @confirmhelpwindow.disposed?
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement