Skill/Item List based on Learn/Obtain order
Basically this very short snippet allows you to show the skill and item list based on the order that you learned the skills (obtained items) instead of the default which uses the database ID to determine sort order.Script:
Spoilerclass Game_Actor < Game_Battler def skills (@skills | added_skills).collect {|id| $data_skills } endendclass Game_Party < Game_Unitdef items @items.keys.collect {|id| $data_items } end def weapons @weapons.keys.collect {|id| $data_weapons } end def armors @armors.keys.collect {|id| $data_armors } endend
Notes:
Obviously really easy to do, so it's free for anyone. I just posted it since I think I saw someone asking about this some time ago and some people might need it.
本贴来自国际rpgmaker官方论坛作者:Engr. Adiktuzmiko处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/skill-item-list-based-on-learn-obtain-order.19050/
页:
[1]