FoxActionSkills v1.0
Hey My First Plugin on the new RPG Maker.Lastest Update 11/28/15 (v1.1.1):
[*]Added 2 Parameters, these allow you to hide TP, or only show 1 gauge at a time.
Previous Update 11/27/15 (v1.1.0):
[*]Updated Tag Configuration
[*]Now Requires MVCommons
Last Update Date: 11/27/15
Description:
A System a lot like the Golden Sun Skill system (or even Pokemon Red&Blue). Basically it allows you to use skills on the field. Which should make it easy to make events like bushes you have to cut away, water you freeze into ice to cross, or just about anything you can think of.
Demo Project:
Demo v1.1.1
to use copy into a new project
Source Code:
Source v1.1.1
Cursor Image:
Cursor Image
Requires MVCommons to work located:
http://forums.rpgmakerweb.com/index.php?/topic/46474-mvcommons-the-community-core-plugin/?hl=mvcommons
Instructions:
Creating a Skill:
To make a skill you need to add tags to the skill like so:
<FAS><FAS_RangeH:value><FAS_RangeV:value><FAS_Type:0>FAS_RangeH: the range to the left and right of the characters facing. (Must be an Odd number)
FAS_RangeV: the range to the forwards from the characters facing.
You no longer need to make sure the skill's Occasion is set to always, skills will work regardless of the Occasion Setting.
Creating an Item:
To make a item you need to add tags to the item like so:
<FAS><FAS_RangeH:value><FAS_RangeV:value><FAS_Type:0>FAS_RangeH: the range to the left and right of the characters facing. (Must be an Odd number)
FAS_RangeV: the range to the forwards from the characters facing.
You no longer need to make sure the skill's Occasion is set to always, skills will work regardless of the Occasion Setting.
Creating an Action Event:
To Create a Action Skill Event (an Event that reacts to the Action Skill):
First you need to make an event, with a normal page with whatever on it, and a 2nd page with a autorun or parallel trigger, that will handle what happens when the event is struck with a skill.
You can check what skill was used with:
ActionSkill.skillId == valueYou can check what item was used with:
ActionSkill.itemId == valueIf the player used the wrong skill set the SelfSwitch back to Off.
Then make a 3rd page for whatever after the skill has been used (probably blank)
And you need to make sure to add to the note of the event:
<fas>Graphics Needed:
You also need special Character Graphic I made for the Target image.
\img\characters\$Cursor.pngIt's included in the Demo Project and the link above.
Opening the Interface:
To bring up the Menu Use the Q key
Using RegionIds:
To use Region Ids you need to loop through them using the Custom Event set in the plugins Params
Looping through them can be done like:
https://forums.rpgmakerweb.com/data/attachments/14/14562-f8c692a82332354aa21c5c02dfde44b5.jpg
the Script Code used here is:
ActionSkill.GetNextRegionSet();That common event leads to:
You can set it up however you want though this is just a working sample of what you could do with it.
In the Demo using the Plugin OrangeCustomEventCreator (by Hudell) His plugin post here: http://forums.rpgmakerweb.com/index.php?/topic/46535-orange-custom-event-creator/
I use his event Creator to create a Freezing spell, that freezes the water and makes a bridge across it. I'm sure many other new and creative ideas for skills and spells will come from this.
It's really only limited by what puzzles you can come up with.
Interface Controls
The Interface can be Enabled by using the script command:
ActionSkill.enable();The Interface can be Disabled by using the script command:
ActionSkill.disable();Interface Controls
You can also use Plugin Commands now
FoxActionSkills enableFoxActionSkills disableAlthough I'm really not sure why you'd want to rather than script calls, if anyone knows why Plugin Commands are better I'd love to know.
And that should be everything you need to create an Action Skill & and Action Skill Event.
Let me know what you think, or if you find any bugs, have a suggestion, ect.
Credits:
Mellye for helping me, understand how to display sprites.
The MVCommons team for the awesome MVCommons Plugin
MVCommons Link: http://forums.rpgmakerweb.com/index.php?/topic/46474-mvcommons-the-community-core-plugin/?hl=mvcommon#entry469643
Hudell for his OrangeCustomEventCreator Plugin (current version of his plugin is included to show how skills could be evented to create dynamic bridges.)
His plugin post here: http://forums.rpgmakerweb.com/index.php?/topic/46535-orange-custom-event-creator/"]http://forums.rpgmakerweb.com/index.php?/topic/46535-orange-custom-event-creator/
His plugin isn't required to make mine work, but with both you can create some pretty flexible and dynamic skills, to do all kinds of things
ToS:
You can use this in your free or commercial games as long as you give credit to Fox536.
Updates:
11/10/15
[*]Updated and cleaned code, and fixed a bug. Also updated Cursor File
11/11/15
[*]Added code to react to Region Ids as well (such as water, for turning it to ice to make a bridge, ect.)
11/17/15
[*]New Feature: Added support for Active Items as well.
[*]Added way to open the interface with the mouse/Touchscreen Controls
[*]Added an Enable and Disable Toggle for the system
[*]Added a toggle to show either MP & TP as icons or as text.
[*]Updated the Occasion code, so you no longer have to set the Occasion to Always
11/23/15 (v1.0.6)
[*]Parameter for button to open the interface.
[*]Added Help info to the plugin
11/27/15 (v1.0.7)
[*]Parameters for location of hud button
[*]Parameter for hud Icon index
[*]Plugin Commands
11/27/15 (v1.1.0)
[*]Updated Tag Configuration
[*]Now Requires MVCommons
11/28/15 (v1.1.1):
[*]Added 2 Parameters, these allow you to hide TP, or only show 1 gauge at a time.
本贴来自国际rpgmaker官方论坛作者:Fox536处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/foxactionskills-v1-0.49929/
页:
[1]