RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
[VXA-Trick] Automatic database set

0 Members and 2 Guests are viewing this topic.

**
Rep:
Level 68
RMIDans ~
WARNING:
This trick may requires some scripting skill.

Introduction:
for some of you who have a large database. Such as a hundred skills. It's look so boring if we have to do a same thing in those skill databases. For example we have to change hit type from certain hit to physical in id 3 until 30.

Tutorial:
Write a module for easier management
Code: [Select]
module LOAD

  PHYSICAL = 3..30

end
Then make an alias for load_database in module DataManager
Code: [Select]
module DataManager
 
  class << self
    alias automatic_load_db load_database
  end

  def self.load_database
    automatic_load_db
    load_skill_db
  end

  def self.load_skill_db
    group = $data_skills
    for id in LOAD::PHYSICAL
      group[id].hit_type = 1  # Change hit type to 1 (Physical)
    end
    save_data($data_skills, "Data/Skills.rvdata2")
  end

end
In this case, you have to run your game first. Then close the game and the editor. Finally, reopen your editor and see the database has been set by your machine  :lol:

This is just for an example. Make your own imagination to make your automatic load database.

Note:
- I hope this tutorial is useful for other RPG Maker users
- If I did some grammatical errors, it because my main language isn't english.

Edit: I just realized that I wrote this topic in wrong subforum.
Please, move it to Tutorial Database ;D
« Last Edit: March 22, 2013, 09:14:36 PM by TheoAllen »
My scripts collection :
http://theolized.blogspot.com/
Sorry if I made it in Indonesian

Supporter of :


Make your own party composition based on 20 playable characters :