Medina Stories License Board

I wouldn't do that. It's not simply the command menu you're altering. Types are the way in which a character inherently acquires the data in the license board. It's not as simple as simply adding new types. You'd have to alter the Game_Actor class as well, among other things.

Also, sure, a character can learn an ability from outside the board. Try this code.

  1. actor = $game_party.actors[i]
  2. actor.board.activate(x, y, boolean)
Expand to see the code.


If you set the boolean to true, you'll learn something. If you set it to false, you'll unlearn something.
Juan J. Sánchez wrote:
I wouldn't do that. It's not simply the command menu you're altering. Types are the way in which a character inherently acquires the data in the license board. It's not as simple as simply adding new types. You'd have to alter the Game_Actor class as well, among other things.
Your event script worked perfectly!

It's just the Scene_CreateBoard window I'm having trouble with (see below). I set the y coordinate to 0 just so I could read the value boxes, but half of my selections are outside the bottom of the screen. How do I set a height on this window, or set it to scroll? I feel like an idiot asking this, because I have a feeling the answer is very easy...

Actually, the functionality in the game itself works perfectly (even creating the board, despite the window issue). Your base code didn't require any serious edits for this, and the characters acquire abilities all the same without any bugs or glitches. I didn't have to edit Game_Actor. I only had to edit FFXII Module, Bitmap, Scene_CreateBoard, and Board. They aren't ACTUALLY new classes, but just the appearance of different class (all weapons still use $data_weapons[value] and @weapon_set.push(n)). For example:

From FFXII Module and Bitmap:
  1.    when 9   # Swords
  2.       return $data_weapons[value]
  3.     when 10  # Daggers
  4.       return $data_weapons[value]
  5.     when 11  # Axes
  6.       return $data_weapons[value]
  7.     when 12  # Greatswords
  8.       return $data_weapons[value]
  9.     when 13  # Katanas
  10.       return $data_weapons[value]
  11.     when 14  # Spears
  12.       return $data_weapons[value]
  13.     when 15  # Rods
  14.       return $data_weapons[value]
  15.     when 16  # Staves
  16.       return $data_weapons[value]
  17.     when 17  # Bows
  18.       return $data_weapons[value]
  19.     when 18  # Guns
  20.       return $data_weapons[value]
  21.     when 19  # Light Armor
  22.       return $data_armors[value]
  23.     when 20  # Medium Armor
  24.       return $data_armors[value]
  25.     when 21  # Heavy Armor
  26.       return $data_armors[value]
  27.     when 22  # Shields
  28.       return $data_armors[value]
  29.     when 23  # Accessory Set
  30.       return $data_armors[value]
  31.     end
Expand to see the code.

In Board:
  1.      when 9   # Swords
  2.         @weapon_set.push(n)
  3.       when 10  # Daggers
  4.         @weapon_set.push(n)
  5.       when 11  # Axes
  6.         @weapon_set.push(n)
  7.       when 12  # Greatswords
  8.         @weapon_set.push(n)
  9.       when 13  # Katanas
  10.         @weapon_set.push(n)
  11.       when 14  # Spears
  12.         @weapon_set.push(n)
  13.       when 15  # Rods
  14.         @weapon_set.push(n)
  15.       when 16  # Staves
  16.         @weapon_set.push(n)
  17.       when 17  # Bows
  18.         @weapon_set.push(n)
  19.       when 18  # Guns
  20.         @weapon_set.push(n)
  21.       when 19  # Light Armor
  22.         @armor_set.push(n)
  23.       when 20  # Medium Armor
  24.         @armor_set.push(n)
  25.       when 21  # Heavy Armor
  26.         @armor_set.push(n)
  27.       when 22  # Shields
  28.         @armor_set.push(n)
  29.       when 23  # Accessory Set
  30.         @armor_set.push(n)
Expand to see the code.

A sample of the classes I have made, with full functionality:
Image
Actually, I'm not expert on windows myself, so you'll have to figure that on your own. Ask in another forum. Someone will definitely know the answer.
hey thats kindda cool why didnt i think of that 😀
im gonna try it later :lol: thx for the idea
This script has proven quite popular. It's actually an upgraded version of the Ability Grid script. Well, no. I got the idea from there, but I wrote it from scratch.
Hey Juan, I'm having a problem with learning passive skills in your script. I'm using Gando's passive skill script which I've copied below. Basically, I want to make skills on the grid that increase XP by 10% or Gold by 10% (Gando's script does this).

However, when the character learns the skill via the license board, the skills don't work. They appear in the character's skill menu, but don't do anything. I know it is conflicting somewhere with the method of learning skills from the license board, because if I use an event to give the characters the passive skills (or have them start with it), it works. Only when I learn it from the license board does it not work. Why would this be?

Note: The order doesn't matter either. I tried Gando's script both above and below yours.

  1. #------------------------------------------------------------------------------
  2. #  CREDITS: Gando for making the script and khmp for helping with it.
  3. #==============================================================================
  4.   PASSIVE_SKILLS = [138, 139]
  5.   #skill_id => [max_hp, max_sp, str, dex, agi, int, atk, pdef, mdef, gold, exp]
  6.   ATTRIBUTES =
  7.   {
  8.   138 => [0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0] ,
  9.   139 => [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100] ,  
  10.   }
  11.  
  12.   GOLD_GAIN_PERCENT = true
  13.   EXP_GAIN_PERCENT  = true
  14.  
  15. class Game_Actor < Game_Battler
  16.   alias passive_skill_learn learn_skill
  17.   alias passive_skill_forget forget_skill
  18.   #--------------------------------------------------------------------------
  19.   # * Get Actor ID
  20.   #--------------------------------------------------------------------------
  21.   def learn_skill(skill_id)
  22.     passive_skill_learn(skill_id)
  23.     if PASSIVE_SKILLS.include?(skill_id)
  24.       @maxhp_plus += ATTRIBUTES[skill_id][0]
  25.       @maxsp_plus += ATTRIBUTES[skill_id][1]
  26.       @str_plus   += ATTRIBUTES[skill_id][2]
  27.       @dex_plus   += ATTRIBUTES[skill_id][3]
  28.       @agi_plus   += ATTRIBUTES[skill_id][4]
  29.       @int_plus   += ATTRIBUTES[skill_id][5]
  30.       @atk_plus   += ATTRIBUTES[skill_id][6]
  31.       @pdef_plus  += ATTRIBUTES[skill_id][7]
  32.       @mdef_plus  += ATTRIBUTES[skill_id][8]
  33.       @goldt      += ATTRIBUTES[skill_id][9]
  34.       @expt       += ATTRIBUTES[skill_id][10]
  35.     end
  36.   end
  37.   def forget_skill(skill_id)
  38.     passive_skill_forget(skill_id)
  39.     if PASSIVE_SKILLS.include?(skill_id)
  40.       @maxhp_plus -= ATTRIBUTES[skill_id][0]
  41.       @maxsp_plus -= ATTRIBUTES[skill_id][1]
  42.       @str_plus   -= ATTRIBUTES[skill_id][2]
  43.       @dex_plus   -= ATTRIBUTES[skill_id][3]
  44.       @agi_plus   -= ATTRIBUTES[skill_id][4]
  45.       @int_plus   -= ATTRIBUTES[skill_id][5]
  46.       @atk_plus   -= ATTRIBUTES[skill_id][6]
  47.       @pdef_plus  -= ATTRIBUTES[skill_id][7]
  48.       @mdef_plus  -= ATTRIBUTES[skill_id][8]
  49.       @goldt      -= ATTRIBUTES[skill_id][9]
  50.       @expt       -= ATTRIBUTES[skill_id][10]
  51.     end
  52.   end
  53. end
  54.  
  55. class Game_Battler
  56.   attr_accessor :goldt
  57.   attr_accessor :expt
  58.   alias parameter_init initialize
  59.   #--------------------------------------------------------------------------
  60.   # * Object Initialization
  61.   #--------------------------------------------------------------------------
  62.   def initialize
  63.     @atk_plus = 0
  64.     @pdef_plus = 0
  65.     @mdef_plus = 0
  66.     @goldt = 0
  67.     @expt = 0
  68.     parameter_init
  69.   end
  70.  
  71.   #--------------------------------------------------------------------------
  72.   # * Get Attack
  73.   #--------------------------------------------------------------------------
  74.   def atk
  75.     n = [[base_atk + @atk_plus, 1].max, 999].min
  76.     for state in states do n *= state.atk_rate / 100.0 end
  77.     n = [[Integer(n), 1].max, 999].min
  78.     return n
  79.   end
  80.  
  81.   #--------------------------------------------------------------------------
  82.   # * Get Defense
  83.   #--------------------------------------------------------------------------
  84.   def pdef
  85.     n = [[base_pdef + @pdef_plus, 1].max, 999].min
  86.     for i in @states
  87.       n *= $data_states[i].pdef_rate / 100.0
  88.     end
  89.     return Integer(n)
  90.   end
  91.  
  92.   #--------------------------------------------------------------------------
  93.   # * Get Defense
  94.   #--------------------------------------------------------------------------
  95.   def mdef
  96.     n = [[base_mdef + @mdef_plus, 1].max, 999].min
  97.     for i in @states
  98.       n *= $data_states[i].mdef_rate / 100.0
  99.     end
  100.     return Integer(n)
  101.   end
  102.  
  103.   #--------------------------------------------------------------------------
  104.   # * Set Attack
  105.   #     new_atk : new attack
  106.   #--------------------------------------------------------------------------
  107.   def atk=(new_atk)
  108.     @atk_plus += new_atk - self.atk
  109.     @atk_plus = [[@atk_plus, -999].max, 999].min
  110.   end
  111.  
  112.   #--------------------------------------------------------------------------
  113.   # * Set Defense
  114.   #     new_def : new defense
  115.   #--------------------------------------------------------------------------
  116.   def pdef=(new_pdef)
  117.     @pdef_plus += new_pdef - self.pdef
  118.     @pdef_plus = [[@pdef_plus, -999].max, 999].min
  119.   end
  120.  
  121.   #--------------------------------------------------------------------------
  122.   # * Set Defense
  123.   #     new_def : new defense
  124.   #--------------------------------------------------------------------------
  125.   def mdef=(new_mdef)
  126.     @mdef_plus += new_mdef - self.mdef
  127.     @mdef_plus = [[@mdef_plus, -999].max, 999].min
  128.   end
  129. end
  130.  
  131. class Scene_Battle
  132.   #--------------------------------------------------------------------------
  133.   # * Start After Battle Phase
  134.   #--------------------------------------------------------------------------
  135.   def start_phase5
  136.     # Shift to phase 5
  137.     @phase = 5
  138.     # Play battle end ME
  139.     $game_system.me_play($game_system.battle_end_me)
  140.     # Return to BGM before battle started
  141.     $game_system.bgm_play($game_temp.map_bgm)
  142.     # Initialize EXP, amount of gold, and treasure
  143.     exp = 0
  144.     gold = 0
  145.     treasures = []
  146.     # Loop
  147.     for enemy in $game_troop.enemies
  148.       # If enemy is not hidden
  149.       unless enemy.hidden
  150.         # Add EXP and amount of gold obtained
  151.         exp += enemy.exp
  152.         gold += enemy.gold
  153.         # Determine if treasure appears
  154.         if rand(100) < enemy.treasure_prob
  155.           if enemy.item_id > 0
  156.             treasures.push($data_items[enemy.item_id])
  157.           end
  158.           if enemy.weapon_id > 0
  159.             treasures.push($data_weapons[enemy.weapon_id])
  160.           end
  161.           if enemy.armor_id > 0
  162.             treasures.push($data_armors[enemy.armor_id])
  163.           end
  164.         end
  165.       end
  166.     end
  167.     # Treasure is limited to a maximum of 6 items
  168.     treasures = treasures[0..5]
  169.     # Obtaining EXP
  170.     gold_mult = 0
  171.     exp_mult = 0
  172.     for i in 0...$game_party.actors.size
  173.       actor = $game_party.actors[i]
  174.       exp_mult += $game_party.actors[i].expt
  175.     end
  176.     if EXP_GAIN_PERCENT == true
  177.       exp += (exp * exp_mult == 0? 0: exp * exp_mult / 100).to_i
  178.     elsif EXP_GAIN_PERCENT == false
  179.       exp = (exp * exp_mult == 0? 0: exp * exp_mult).to_i
  180.     end
  181.     for i in 0...$game_party.actors.size
  182.       actor = $game_party.actors[i]
  183.       gold_mult += $game_party.actors[i].goldt
  184.       if actor.cant_get_exp? == false
  185.         last_level = actor.level
  186.         actor.exp += exp
  187.         if actor.level > last_level
  188.           @status_window.level_up(i)
  189.         end
  190.       end
  191.     end
  192.     if GOLD_GAIN_PERCENT == true
  193.       gold += (gold * gold_mult == 0? 0: gold * gold_mult / 100).to_i
  194.     elsif GOLD_GAIN_PERCENT == false
  195.       gold = (gold * gold_mult == 0? 0: gold * gold_mult).to_i
  196.     end
  197.     # Obtaining gold
  198.     $game_party.gain_gold(gold)
  199.     # Obtaining treasure
  200.     for item in treasures
  201.       case item
  202.       when RPG::Item
  203.         $game_party.gain_item(item.id, 1)
  204.       when RPG::Weapon
  205.         $game_party.gain_weapon(item.id, 1)
  206.       when RPG::Armor
  207.         $game_party.gain_armor(item.id, 1)
  208.       end
  209.     end
  210.     # Make battle result window
  211.     @result_window = Window_BattleResult.new(exp, gold, treasures)
  212.     # Set wait count
  213.     @phase5_wait_count = 100
  214.   end
  215. end
  216. #==============================================================================
  217. # ** Window_Skill
  218. #------------------------------------------------------------------------------
  219. #  This will hide the zero if the skill doesn't cost any SP.
  220. #==============================================================================
  221. class Window_Skill < Window_Selectable
  222.   #--------------------------------------------------------------------------
  223.   # * Draw Item
  224.   #     index : item number
  225.   #--------------------------------------------------------------------------
  226.   def draw_item(index)
  227.     skill = @data[index]
  228.     if @actor.skill_can_use?(skill.id)
  229.       self.contents.font.color = normal_color
  230.     else
  231.       self.contents.font.color = disabled_color
  232.     end
  233.     x = 4 + index % 2 * (288 + 32)
  234.     y = index / 2 * 32
  235.     rect = Rect.new(x, y, self.width / @column_max - 32, 32)
  236.     self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
  237.     bitmap = RPG::Cache.icon(skill.icon_name)
  238.     opacity = self.contents.font.color == normal_color ? 255 : 128
  239.     self.contents.blt(x, y + 4, bitmap, Rect.new(0, 0, 24, 24), opacity)
  240.     self.contents.draw_text(x + 28, y, 204, 32, skill.name, 0)
  241.     if @data[index].sp_cost != 0
  242.     self.contents.draw_text(x + 232, y, 48, 32, skill.sp_cost.to_s, 2)
  243.     end
  244.   end
  245. end
Expand to see the code.
You need to alias the Game_Actor class.
NEED HELP! how do i "install" this script, i created a file above the main and pasted it but can't get it to work...saw your extra instructions and don't get them??? how do i open it and create my own and even use it??? tried demo, barely worked...
hola, supongo q hablas español, asi q dejame decirte q este es uno de los mejores scripts hechos para rmxp, espero q continues trabajando en el.
mis mas sinceras felicitaciones.
Muchas gracias, Paladin. Siempre me ha entretenido mucho programar. Desearía tener más tiempo para hacerlo. Sin embargo, estoy estudiando medicina y a veces me es muy difícil encontrar el tiempo. Empero, siempre agradezco mucho el apoyo que me ha dado esta comunidad. Comentarios como el tuyo realmente son lo que me hacen querer mejorar mis "scripts". Estos días, y probablemente hasta mediados de año, no estoy activo en RPG Maker XP. Sin embargo, visito la comunidad todos los días. Por aquello.
I've got a question. I think I accidentally deleted the first License Board, and now, whenever I try to start the game, it says

"Script 'License Board' line 3516: TypeError occurred
can't dup NilClass"

How do I fix this?
Hey, nice script, dunno how I missed this before. Quite a nice representation of the XII system; was a great part of that game.

Beorc: what does line 3516 say?
It says "@board = $data.boards[@id].dup", although the entire section is:

Content Hidden Spoiler
#--------------------------------------------------------------------------
# * Object Initialization
# board_id : board ID
#--------------------------------------------------------------------------
def initialize(board_id)
@id = board_id
@board = $data_boards[@id].dup
@xsize = @board.xsize
@ysize = @board.ysize
reset
end


EDIT: Never mind, I fixed it. I had to delete my Boards.rxdata file, but I hadn't done too much anyways so it's not that bad of a loss.
Amy Pond wrote:
Hey, nice script, dunno how I missed this before. Quite a nice representation of the XII system; was a great part of that game.


Thank you. I was planning on making an updated and graphically-improved version this summer vacations, but without a laptop, the latter seems awfully difficult.
It would probably require a whole other script, but is there a way to make it so LP pretty much completely replaces EXP? So for example, in the main menu, instead of showing how much EXP you've earned it would show how much LP you have; at the end of battles you automatically earn AP and the amount you earned is shown, etc. I want to use the License Board as a growth system to replace leveling, primarily, but that makes it kind of strange to have EXP showing up everywhere when you're not using it. I've been trying to get it to work for a while despite my very limited knowledge of Ruby just by editing the scripts already there, but it hasn't been working too well...

If this would prove too difficult, do you think you could explain how to make it so I can access the License Board from the main menu? Although I'm already using Dargor's Party Changer, which adds options to the main menu, so I don't know if it's possible for this project, anyways...
Of course. Everything you're asking for is possible in Ruby. You simply have to replace any instance of the experience variable for the license points variable. Also, adding another option to a menu is usually a very simple task. I can't, however, help you directly because my laptop broke, and I don't have RPG Maker XP installed in any other computers. That being said, ask help to other members of the community. It's a minor change that which you're asking for, and they're usually very friendly and helpful people.
All right, I guess I'll try in the Script Support forum. Thanks for the help!
Hey I was wondering does this have your presets already in it of your license board or do you have to create it all from scratch? It seems like if you do have to do it from scratch it will take me like weeks. Also was wandering how do you put your characters pics in the face slots and such?

Thanks in advanced.
Your script is so awesome it's easy to use but I have a request. Could you tell how to make license board like ff12 zodiac job system that the summons will be the bridge to connect another board.
Thanks for the help
xd00dx wrote:
Hey I was wondering does this have your presets already in it of your license board or do you have to create it all from scratch? It seems like if you do have to do it from scratch it will take me like weeks. Also was wandering how do you put your characters pics in the face slots and such?


First of all, I'd advice you to carefully read the entire first post, which will answer most of your inquiries. The script prints a text file in the game folder with a list of all weapons, equipment and abilities. This text file is meant to aid you in the design of boards. All boards are empty at first, and in this sense you do have to start from scratch. As for the character avatars, you merely have to add the ID number of your actor to an image file in the "Pictures" folder. You can also have a default image by using the ID number -1.

xd00dx wrote:
Could you tell how to make license board like ff12 zodiac job system that the summons will be the bridge to connect another board.


I never played the international version of FFXII, and this sounds too complicated to be of any interest.
I'm trying to put a board for each player but get an error here

#------------------------------------------------- -------------------------
# * Object Initialization
# Board_id: board id
#------------------------------------------------- -------------------------
def initialize (board_id)
@ Id = board_id
Board = $ data_boards @ [@ id]. Dup <<(error)
Xsize = @ @ board.xsize
Ysize = @ @ board.ysize
reset
end

how to fix this? :huh:
Good news, everyone!



I'm releasing version 2.0 anytime now! It will have zoom-in, zoom-out capabilities, an ability window, a command window that adapts to the text length, borders around the tiles, and improved graphics. You also don't have to worry about your boards. The main code won't change at all.
ohhh nice :grin: good news indeed, looking forward for it .
Yes, I only need to do the ability window, reorganize the code (because I'm a nut job for good syntax), and that's that. Also, I got my old computer back, which has some methods I needed. Also, I could definitely use a timeout from the battle system. Last night I took a couple of sleeping pills early at night to wake up relatively early this morning. Last thing I remember, I'm with my laptop working on the battle system. When I opened the battle system this morning, I realized it now supports SIX party members. The morale of the story is... well, I don't know what it is. I'd just like to work on something else at the moment.
Boy, oh boy... Version 2.0 is almost here!

EDIT: I thought I was going to release the damn thing today. However, I hit a road block when trying to come up with the final piece of the puzzle.



Around at 5:15 in the video, you are shown the Action List. For some reason, I omitted the existence of the Action List when creating the first version of the license board. However, it's a giant pain in the ass.

I'm almost done with the Action List, but who knows when I'll be able to finish. :/
Everything else is ready. As soon as I'm done with this, I'll make a new video, take some new screenshots and post it. Perhaps I'll be done by this weekend.
Jesus Christ. I was reviewing the video, when it came into my attention the Action List has a cursor and help text. This means it must be made with the Window_Selectable class. :/

Now I basically have to start from scratch. To start with, I was working with a Sprite class, not a Window class.

EDIT: After finally analyzing the situation, I concluded the Final Fantasy XII Action List window has no specific format. Given the situation, I've decided to use the following format: each skill class will have its own page, each page will have three columns, at the top of the window there will be help text indicating a description of the skill, on top of the skills the skill class name will be shown, and at the left side of the skills, an icon of the skill class will be shown. If there are too many skills for a page, scrolling functions will ensue.

I should be able to finish tomorrow. Even though I was writing something completely different, I can recycle many of the methods I had previously worked on.
I'm following this script, just letting you know because nobody's replying. But i'm pretty sure many are eagerly awating the release.

For myself, i really hope i can implement 2.0 in my project, since i have made small edits to 1.0 in order to let it work. Will you post a guide or something for 1.0 users wanting to upgrade?
Graphically, it's a huge improvement. Otherwise, there's not much a difference. So, no changes need to be made. :)
This is pretty impressive my man. Makes me wish I was using it myself, but I'm trying to create all original systems. This is nice work though, you seem to have the system down pretty well. I always liked the License Boards.

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=72953