Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

A script i need

The script i want is sort of one of world of warcraft.

I want when the player has enough level to learn a skill instead of learning it the deafult type i want it if he wants to learn the skills he must go to his class trainer and learn them from there here's an example:

Player one is level 4 the skills he can learn are:
lvl 1: Cross Slash(rank 1) 10 bronze
lvl 4: Healing touch(rank 2) 1 silver, lightning bolt(rank 2) 1 silver

I need it to work with the bronze silver gold script that's here:
(Btw i edited the script to show pictures instead of words)

http://www.rmxp.org/forums/showthread.php?t=2277&highlight=bronze

And here is the part i edited: (Window_Gold)

Code:
#==============================================================================
# ** Game_Party
#------------------------------------------------------------------------------
#  This class handles the party. It includes information on amount of gold 
#  and items. Refer to "$game_party" for the instance of this class.
#==============================================================================

class Window_Gold < Window_Base
  # ------------------------------------
  def initialize
    super(0, 0, 162, 84)
    self.contents = Bitmap.new(width - 32, height - 32)
    self.contents.font.name = $fonttype
    self.contents.font.size = 21
    refresh
  end
  # ------------------------------------
  def refresh
    self.contents.clear
    cx = contents.text_size($data_system.words.gold).width
    @green_gem_bitmap = RPG::Cache.picture('Gold')
    self.contents.blt(0, 0,@green_gem_bitmap, Rect.new(0, 0, 16, 32))
    self.contents.font.color = normal_color
    self.contents.draw_text(20, -4.9, 120-cx-2, 18, $game_party.gold_coins.to_s, 2)
    @green_gem_bitmap = RPG::Cache.picture('Silver')
    self.contents.blt(0, 17,@green_gem_bitmap, Rect.new(0, 0, 16, 32))
    self.contents.font.color = normal_color
    self.contents.draw_text(20, 13.9, 120-cx-2, 18, $game_party.silver_coins.to_s, 2)
    @green_gem_bitmap = RPG::Cache.picture('Copper')
    self.contents.blt(0, 34,@green_gem_bitmap, Rect.new(0, 0, 16, 32))
    self.contents.font.color = normal_color
    self.contents.draw_text(20, 30.9, 120-cx-2, 18, $game_party.bronze_coins.to_s, 2)
  end
end

[Edit]

I forgot to say too that some skills effect the equipments the player can use like for example:

Player 1 at level 40 can use mail(Another type of equipments like cloth,leather and mail ecc)
Player 1 at level 20 can use dualwield(Can attack with a weapon in the offhand too)

So can you implement that too?
thanks if you help
 

darmak

Member

Reaper, this can be very easilly done with events. You would simply use a conditional branch to check whether or not he is the correct level. At that point, you can have it check for the amount of silver or bronze coins, and then deduct them and learn the skill.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top