# マニュアル：モジュール機能

**URL:** <https://guild.rpgmakerofficial.com/t/topic/461>\
**Category:** チュートリアル\
**Tags:** manual, english\
**Created:** [2025 年 6 月 30 日午前 1:56 UTC](https://guild.rpgmakerofficial.com/t/topic/461 "2025-06-30T01:56:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Moonling](https://sea2.discourse-cdn.com/flex002/user_avatar/guild.rpgmakerofficial.com/moonling/32/369_2.png) [@Moonling](https://guild.rpgmakerofficial.com/u/Moonling)\
**Post date:** [2025 年 6 月 30 日午前 1:56 UTC](https://guild.rpgmakerofficial.com/t/topic/461/1 "2025-06-30T01:56:19Z")

</div>

The **“Module”** feature in ACTION GAME MAKER allows you to extract and reuse parts of a visual script. This is useful for sharing commonly used logic or mechanics between different projects or users.

* * *

## How to Create a Module

1. Open the Visual Script editor and **select the part** you want to turn into a module.  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/rpgmaker_community/original/1X/7047ab1ec34d47ff13dcb3d896a13cf4f4409a58.png)
2. **Right-click** the selected states and choose **“Create Module”**.  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/rpgmaker_community/original/1X/c003cf69b23c32c873ffeb5292ed3b62ba3b656b.png)
3. Fill out the module information in the dialog:

- **File Name** : _(Required)_ Name of the module file
- **Module Name** : _(Required)_ Display name inside ACTION GAME MAKER
- **Tags** : _(Optional)_ Tags for filtering, separated by commas
- **Author** : _(Required)_ Your name
- **Description** : _(Optional)_ Notes or explanation  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/rpgmaker_community/original/1X/5ff456c0fdd4a8151132e7ca63b4c41ed3e1dd18.png)

1. Once all required fields are filled, the alert at the bottom turns green. Click **OK** to create the module.
2. The module is saved at:

css

コピーする編集する

```auto
C:\Users\{User_Name}\AppData\Roaming\Agm\my_modules

```

- Modules are shared across all projects on the PC, so they can be reused in other projects.

* * *

## How to Use a Module

1. Open the visual script where you want to insert the module.
2. Switch the **bottom panel** to the **Module List** tab and select the module you want to use.  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/rpgmaker_community/original/1X/1759a8d4a9353f83fb2bf22cfab4627bddcafacd.png)
3. Drag and drop the selected module into the visual script editor. It will appear as a **group box**.  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/rpgmaker_community/original/1X/1684e972bc3797d8e0e4cf4e94f6b8a7a9b8f207.png)
4. Expand the group box to see the imported script content.  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/rpgmaker_community/original/1X/e6c90ac9de490d10bc6fbff2cb40cb9076be687f.png)

* * *

## Notes on Using Modules

### What Cannot Be Saved in Modules

- **Animation assignments for states** : Since animations are stored in separate files, they are not saved in modules. However, if animations with the same name exist in the project, they will be reused.

### What Can Be Saved but Requires Caution

- **User variables and switches used in actions** : If the target object does not have these variables/switches, they will be **automatically added** when the module is imported.

* * *

## Sharing Modules

### How to Share with Others

You can share a module by providing the `.tres` file found in:

css

コピーする編集する

```auto
C:\Users\{User_Name}\AppData\Roaming\Agm\my_modules

```

You can also post it in the dedicated category on RPG MAKER GUILD:

> **[ModulesHub/モジュール共有](https://guild.rpgmakerofficial.com/c/agmaker/agm-modules-jp/9)**
>
> こちらは、ACTIONGAMEMAKERで使用できるモジュールをユーザーの皆様同士で交換いただけるカテゴリとなります。 
> https://guild.rpgmakerofficial.com/t/topic/460 
> https://guild.rpgmakerofficial.com/t/topic/461 
> モジュールデータは通常以下にあります。 
> C:\\Users{UserName}\\AppData\\Roaming\\Agm\\my\_modules 
> このコミュニティではモジュールデータ本体.tres のデータのみ投稿可能です。付随する画像データ等を共有される場合は、お手数ですが外部のストレージサービスをご活用ください。

### How to Import Modules from Others

Place the `.tres` file into the following directory:

css

コピーする編集する

```auto
C:\Users\{User_Name}\AppData\Roaming\Agm\other_modules

```

It will then appear in the **Module List** and be ready for use.

* * *

## Module List Panel Icons

![image](https://us1.discourse-cdn.com/flex002/uploads/rpgmaker_community/original/1X/fcd8a4af55ea0065ce419458c11ec863f173794c.png)

- ![RPG Maker Guild icon](https://us1.discourse-cdn.com/flex002/uploads/rpgmaker_community/original/1X/1e49adaa0640de4d0b2aec2cd4fe2530eb56adc9.png): Opens RPG MAKER GUILD in your browser.
- ![File icon](https://us1.discourse-cdn.com/flex002/uploads/rpgmaker_community/original/1X/54b41af3c3acb4dde674fc13716f2326403fa310.png): Opens the Explorer window for either “my\_modules” or “other\_modules”.
- ![Float icon](https://us1.discourse-cdn.com/flex002/uploads/rpgmaker_community/original/1X/46fea7c3e8ddf0aedaac78f68aa3335b7a2b2245.png): Floats the module list window.
- ![Sort icon](https://us1.discourse-cdn.com/flex002/uploads/rpgmaker_community/original/1X/700290955b0e56878af3cafe058aab0f12703f9f.png): Choose to filter the list by filename or tags.
