- Joined
- Jan 22, 2019
- Messages
- 219
- Reaction score
- 173
- First Language
- English
- Primarily Uses
- RMMV
Greetings,
I've been trying to use Yanfly's Skill Core plugin to create a skill with a custom effect that will check the current scene and then activate a switch if the skill is used from the menu. I am trying to have a skill that's usable in battle and on the map that will behave differently in each scene. After searching for a while last night, I ended with this:
*NOTE: I am not fixed on this one single method and, while this is something I am interested in learning, I am also open to alternative methods of achieving a similar result. I recently spoke with a fellow game maker who is working on the exact same concept and his result was to use 2 plugins, one that runs a group of events at the start of each battle and one that runs a set of events at the end of each battle. Personally I'd rather work with the skill directly and leverage a plugin I am already using.
Plugin link:
http://www.yanfly.moe/wiki/Skill_Core_(YEP)
Thanks!
I've been trying to use Yanfly's Skill Core plugin to create a skill with a custom effect that will check the current scene and then activate a switch if the skill is used from the menu. I am trying to have a skill that's usable in battle and on the map that will behave differently in each scene. After searching for a while last night, I ended with this:
<Custom Execution>
SceneManager.is(Scene_Skill) ? $gameSwitches.setValue((50), true) : $gameSwitches.setValue((50), false);
</Custom Execution>
SceneManager.is(Scene_Skill) ? $gameSwitches.setValue((50), true) : $gameSwitches.setValue((50), false);
</Custom Execution>
*NOTE: I am not fixed on this one single method and, while this is something I am interested in learning, I am also open to alternative methods of achieving a similar result. I recently spoke with a fellow game maker who is working on the exact same concept and his result was to use 2 plugins, one that runs a group of events at the start of each battle and one that runs a set of events at the end of each battle. Personally I'd rather work with the skill directly and leverage a plugin I am already using.
Plugin link:
http://www.yanfly.moe/wiki/Skill_Core_(YEP)
Thanks!

