SkopeMenu XP
Version 0.10.0
by Kyonides
Introduction
Did you ever want to be able to change a skill's scope on the fly?
Now you can easily do that!
Well, it is not that straightforward as you might have thought.
Once you get a new Skill Scope Recipe, it will show up as just another item in the Item Menu.
If you pick that item, it will automatically open the Party's Recipes Menu.
Just take a look at the DB I have provided you in my demo to get an idea of how that works in game.
Instructions
This is how you can create a brand new Skill Scope Recipe.
Ruby:
- # - Add New Skill Scope Recipe! - It will be unique.
- # You can create several Recipes for the Same Skill as well.
- # List of Parameters:
- # - SkillID
- # - Price
- # - SP Cost
- # skill = Skope.skill(SkillID, Price, SP Cost)
- # - Add a List of Scopes - Please keep them sorted!
- # skill.set_scopes(Scope1, etc.)
- # - Send it to a specific Container: :party or :system
- # Party's Container - Active Recipes
- # System's Container - Purchasable Recipes
- # skill.send2(Container)
复制代码
Script Settings
Keep in mind that it includes the
SKILL_ITEM_ID Constant because you need to tell the script which item will be added to your party's item bag automatically. This happens every single time you get a new recipe by sending it to your Party's Recipe Container, i.e.
Ruby:
If you need to read a full fledged example of the creation of a Skill Scope Recipe, take a look at the elvish girl Slarvianna, the recipe expert's event where you can find 3 script calls dealing with it.
The Constants
Ruby:
- module Skope
- SKILL_ITEM_ID = 41
- BACKDROP = "bluesmoke640"
- TRANSITION = ""
- HEADING = "Skill Scope Recipes"
- module SkillText
- SCOPES = [] # <-- Leave it alone!
- SCOPES[0] = "None"
- SCOPES[1] = "One Enemy"
- SCOPES[2] = "All Enemies"
- SCOPES[3] = "One Ally"
- SCOPES[4] = "All Allies"
- SCOPES[5] = "One Dead Ally"
- SCOPES[6] = "All Dead Allies"
- SCOPES[7] = "User"
- end
- # Many lines of code here
复制代码
To Do List
Creating a custom Skope::ShopMenu.
Improving the Skope::Menu GUI.
Terms & Conditions
Free for Use in Any Game.
Include my Nickname in your Game Credits.
Don't adopt any stray cats or sleeping Melanas.
That's it!
本贴来自国际rpgmaker官方论坛作者:kyonides处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:
https://forums.rpgmakerweb.com/threads/skopemenu-xp.157586/