- Joined
- Sep 17, 2012
- Messages
- 1,466
- Reaction score
- 144
- First Language
- English
- Primarily Uses
EDIT:
Edited this to put my current script in
Edited this to put my current script in
Code:
############# Mining Script by: Bloodmorphed##Here is the attributes you can have in the section.#:name, :regionid, :percent, :item, :quantity: :depleted, :depletedmes#############DEFAULT_MINE = 1ORES ={1 >={ :name >= "Iron",:regionid >= 63,:percent >= 100,:item >= 10,:quantity >= 1,:depleted >= 4,:depletedmes >= "This vein is depleted",}}module MINEmodule MINE_TILE##################################Mining Animation##Animation when mining, Standing is 1.#########MINE_FRAME = 2end # MINE_TILEend # MINEmodule MINEmodule REGEXPmodule TILESET MINING = /<(?:MINING|mine tile):[ ]*(\d+(?:\s*,\s*\d+)*)>/i end # TILSETend # REGEXPend # MINE #==============================================================================# ■ RPG::Map#==============================================================================class RPG::Map #-------------------------------------------------------------------------- # public instance variables #-------------------------------------------------------------------------- attr_accessor :mine #-------------------------------------------------------------------------- # common cache: load_notetags_mrr #-------------------------------------------------------------------------- def load_notetags_mrr @mine = MINE::MINE_TILE::DEFAULT_MINE.clone #--- self.note.split(/[\r\n]+/).each { |line| case line #--- when MINE::REGEXP::MAP::MINE_TILE $1.scan(/\d+/).each { |num| @mine.push(num.to_i) if num.to_i > 0 } #--- end } # self.note.split #--- end end # RPG::Map#==============================================================================# ■ Game_Map#==============================================================================class Game_Map #-------------------------------------------------------------------------- # alias method: setup #-------------------------------------------------------------------------- alias game_map_setup_mrr setup def setup(map_id) game_map_setup_mrr(map_id) @map.load_notetags_mrr end end # Game_Map #==============================================================================## ▼ End of File##==============================================================================
Last edited by a moderator:
