じ☆ve冰风 发表于 7 天前

Show exp in main menu.

Script was requested here: http://forums.rpgmakerweb.com/index.php?/topic/48739-show-exp-in-menu/

MenuNextExp.js v1.0

DownloadLink

http://pastebin.com/Wc45wTre


Jeremy Cannady
Introduction
Simple script to show the required exp in the main menu. Was a requested script for someone who doesnt want to use the actor status window.


Screenshots






 



How to Use
Put the script, must be named EquipmentRarityColors.js and needs to be Java script and not text file. If any one know of a good site to host js files let me know!



Script

Spoiler//=============================================================================// MenuNextExp.js//============================================================================= /*: * @plugindesc Displays actors required exp to next level in the main menu. * @author Jeremy Cannady * * @help Displays actors required exp to next level in the main menu. * * **/ (function(){var copyOfDrawActorSimpleStatus = Window_Base.prototype.drawActorSimpleStatus; Window_Base.prototype.drawActorSimpleStatus = function(actor, x, y, width) {      copyOfDrawActorSimpleStatus.call(this,actor,x,y,width);      this.drawActorExp(actor, x, y + this.lineHeight() * 2);}; Window_Base.prototype.drawActorExp = function(actor, x, y, width) {    width = width || 150;    this.changeTextColor(this.hpColor(actor));    this.drawText("To next: " + actor.nextRequiredExp(), x, y, width, 'center');};})();



 

Author's Notes
Send a message if there is any questions or would like to re-position the window/change the text from To Next: to something else.

Disclaimer:Anyone can use my scripts for any purpose.


本贴来自国际rpgmaker官方论坛作者:Jeremy Cannady处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/show-exp-in-main-menu.48775/
页: [1]
查看完整版本: Show exp in main menu.