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 _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
| 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
| ◆注釈:浮遊 | |
| ◆変数の操作:#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
| 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
| $gameSystem.onBeforeSave(); | |
| DataManager.saveGame(DataManager.lastAccessedSavefileId()); |
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
| ConfigManager.bgmVolume = $gameVariables.value(n); | |
| ConfigManager.save |
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 pictureId = 1, variableIdOfWidth = 1, variableIdOfHeight = 2; | |
| var spritePicture = SceneManager._scene._spriteset._pictureContainer.children.filter(function(picture) { | |
| return picture._pictureId === pictureId; | |
| })[0]; | |
| $gameVariables.setValue(variableIdOfWidth, spritePicture.width); | |
| $gameVariables.setValue(variableIdOfHeight, spritePicture.height); |
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 sprite = new Sprite(); | |
| var bitmap = new Bitmap(816, 624); | |
| var ctx = bitmap.context; | |
| ctx.beginPath(); | |
| var x1 = $gameMap.event(this._eventId).screenX(); | |
| var y1 = $gameMap.event(this._eventId).screenY() - 24; | |
| ctx.moveTo(x1, y1); | |
| var x2 = $gameMap.event(10).screenX(); | |
| var y2 = $gameMap.event(10).screenY() - 24; | |
| ctx.lineTo(x2,y2);ctx.stroke(); |