Skip to content

Instantly share code, notes, and snippets.

View triacontane's full-sized avatar

トリアコンタン triacontane

View GitHub Profile
@triacontane
triacontane / ForceFadeOut.js
Created April 18, 2022 13:39
瞬時にフェードアウト
$gameScreen.startFadeOut(1);
@triacontane
triacontane / ChronusCalendarText.js
Created April 14, 2022 00:15
Chronusでカレンダー描画文字列を取得
$gameSystem.chronus().getDateFormat(1); // カレンダーの1行目
$gameSystem.chronus().getDateFormat(2); // カレンダーの2行目
@triacontane
triacontane / SeFadeout.js
Created April 3, 2022 12:46
SEのフェードアウト
AudioManager._seBuffers.forEach(function(buffer) {
buffer.fadeOut(1);
});
@triacontane
triacontane / FlashByNearEventSensor.js
Created March 29, 2022 12:42
周囲イベント監置プラグインを使って好きなタイミングでフラッシュ
$gameMap.event(1).startFlash([255,255,255,255], 60);
@triacontane
triacontane / ParamDoping.js
Created February 24, 2022 03:50
基礎パラメータにイベントコマンドによる追加分を反映
/*=============================================================================
(C)2022 Triacontane
This software is released under the MIT License.
http://opensource.org/licenses/mit-license.php
=============================================================================*/
/*:
* @plugindesc 基礎パラメータにイベントコマンドによる追加ぶんを反映させて返すメソッド
* @target MZ
* @author トリアコンタン
@triacontane
triacontane / HelpWindowRefresh.js
Created February 23, 2022 06:57
制御文字で使っている変数値が変更されたときにヘルプウィンドウを再描画
/*:
* @plugindesc 制御文字で使っている変数値が変更されたときにヘルプウィンドウを再描画
* @target MZ
*/
(()=> {
const _Window_SkillList_refresh = Window_SkillList.prototype.refresh;
Window_SkillList.prototype.refresh = function () {
_Window_SkillList_refresh.apply(this, arguments);
this._helpWindow.clear();
};
@triacontane
triacontane / EnemyAllRecover.js
Created February 17, 2022 12:09
敵キャラの全回復(ステートはそのまま)
this.iterateEnemyIndex(-1, enemy => enemy.setHp(enemy.mhp));
@triacontane
triacontane / CheckBattleMember.js
Created February 6, 2022 11:21
バトルメンバーに特定のアクターがいるかどうかの判定式
$gameParty.battleMembers().contains($gameActors.actor(1))
@triacontane
triacontane / PictureNameChack.js
Created February 6, 2022 07:00
ピクチャの名称判定スクリプト
$gameScreen.picture(1) && $gameScreen.picture(1).name() === 'apng'
@triacontane
triacontane / shuffleSort.js
Created January 27, 2022 14:01
ソート関数を使ったシャッフル
const list = [1,3,4,9,11,13,14,22,30,40];
list.sort((a, b) => Math.random() - 0.5);
list.forEach((value, index) => {
$gameVariables.setValue(index + 1, value);
});