This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Test { | |
| static aaa() { | |
| alert('aaa'); | |
| } | |
| } | |
| var _Test_aaa = Test.aaa; | |
| Test.aaa = function() { | |
| _Test_aaa.apply(this, arguments); | |
| alert('bbb'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ◆注釈:浮遊 | |
| ◆変数の操作:#0002 2:x = 100 | |
| ◆変数の操作:#0003 3:y = 100 + Math.sin(Graphics.frameCount / 30) * 20; | |
| ◆ピクチャの表示:#1, icon, 左上 ({2:x},{3:y}), (100%,100%), 255, 通常 | |
| ◆注釈:回転 | |
| ◆変数の操作:#0002 2:x = 300 + Math.cos(Graphics.frameCount / 30) * 100; | |
| ◆変数の操作:#0003 3:y = 300 + Math.sin(Graphics.frameCount / 30) * 100; | |
| ◆ピクチャの表示:#2, icon, 左上 ({2:x},{3:y}), (100%,100%), 255, 通常 | |
| ◆注釈:点滅 | |
| ◆変数の操作:#0002 2:x = 100 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if (!Utils.isNwjs()) return; | |
| var nwWin = require('nw.gui').Window.get(); | |
| nwWin.on('close', function() { | |
| // do something | |
| nwWin.close(true); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var _Game_Message_add = Game_Message.prototype.add; | |
| Game_Message.prototype.add = function(text) { | |
| Saba.BackLog.$gameBackLog.addLog('', text); | |
| _Game_Message_add.apply(this, arguments); | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var actor = $gameActors.actor(1); | |
| actor.currentClass().learnings.forEach(function(learning) { | |
| if (learning.level <= actor._level) { | |
| actor.learnSkill(learning.skillId); | |
| } | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var actor = $gameActors.actor(1); | |
| var enemy = $dataEnemies[2]; | |
| enemy.actions.forEach(function(action) { | |
| actor.learnSkill(action.skillId); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var actorId = 1; | |
| var charNumber = 4; | |
| SceneManager.push(Scene_Name); | |
| SceneManager.prepareNextScene(actorId, charNumber); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var originalActorId = 1; // 継承元アクターID | |
| var targetActorId = 2; // 継承先アクターID | |
| var originalActor = $gameActors.actor(originalActorId); | |
| var targetActor = $gameActors.actor(targetActorId); | |
| originalActor._skills.forEach(function(skillId) { | |
| targetActor.learnSkill(skillId); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $gameParty.lastItem().id |