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.
Module System to make your script structure looks neat.

0 Members and 1 Guest are viewing this topic.

***
Rep:
Level 89
I am yourself!
This is just a simple script that enables you beginner scripter to add something. Currently I have two modules to publish. They are Game_System module and Victory Handler module. Here's the script:

Spoiler for:
Code: [Select]
#==============================================================================
# Game_System Add-On Module
#------------------------------------------------------------------------------
# © 2009 by Sthrattoff
#==============================================================================

# Description:
# This module modify Game_System so you can save your custom variables within
# save files.

class Game_System
 
  #Add attr_accessor of your variables here.
  attr_accessor :victory_points
 
  alias old_initialize initialize
  def initialize
    old_initialize
    # Set your initial variables values here.
    @victory_points = 0
  end
 
end

Spoiler for:
Code: [Select]
#==============================================================================
# Battle Victory Add-On Module
#------------------------------------------------------------------------------
# © 2009 by Sthrattoff
#==============================================================================

# Description:
# This module modify phase_5 of Scene_Battle which handle victory conditions.

class Scene_Battle
 
  alias old_start_phase5 start_phase5
  def start_phase5
    old_start_phase5
    #You can add anything you like to happen after victory here.
    $game_system.victory_points += 1
  end
 
end
Symphony of Alderra : Memoirs of Life

Storyline : 200% (Overimaginatives)
Scripting : 100% (At last...)
Eventing  : 100%
Mapping   : 0.125%