Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

> Grathnode Install
Kread-EX
post Jan 17 2012, 11:58 AM
Post #1


(=___=)/
Group Icon

Group: +Gold Member
Posts: 4,136
Type: Scripter
RM Skill: Undisclosed




Grathnode Install


Version: 1.11

Author: Kread-EX


Introduction
This script is inspired from the Ar Tonelico series. In a nutshell, it allows the player to assign special items called Grathnode crystals to skills in order to add special effects.
For an in-depth explanation, you will create items with certain properties. They can cause damage, possess traits, etc... When one of those items is put inside a skill, the skill will take all its properties, be it additional damage with a different formula, or status effects, debuffs... The "upgrades" made that way are actor-dependent, meaning that several actors with the same skill won't necessarily share the same Grathnodes set.

Instructions
There are several steps to follow in order to use this script.

Create the grathnode items. It is a regular item, which can cause damage/recovery, have certain traits and so on... All of those abilities will be transferred to the skill. Therefore, for balancing issues, really powerful Grathnodes with a lot of effects should be scarce in-game because for all those effects only one slot will be used.
There are several tags that can be written in the item's notebox:

CODE
<grathnode>

Mandatory tag used to identify an item as a Grathnode crystal.

CODE
<scope: string>

This tag allows you to determine on which kind of skill an effect can be applied or not. "string" can be any of those:
CODE
for_opponent?
for_friend?
for_dead_friend?
for_user?
for_all?

Basically, the item scope must match the skill scope. If you omit this tag, the Grathnode can be used on any skill; you could potentially put damaging effects on healing spells for instance.

CODE
<mp_inflation: x>
<tp_inflation: x>

The MP and/or TP cost of the skill will raise per x% if this item is assigned.

Limit the slots on the skills. By default, a skill can take 5 items at maximum. However, you can balance things out by limiting the number of slots either individually or globally. Global setting can be accessed within the script: you need to change the value for ABSOLUTE_MAX_GRATHNODES to whatever you fancy. Note that this script's visual interface is not designed for more than 5 slots.
Individual settings are made in the skill's notebox, with this tag;
CODE
<max_grathnodes: x>

x should be below ABSOLUTE_MAX_GRATHNODES and will actually be ignored if superior.

Call the scene. SceneManager.call(Scene_Grathnode) is the way to go; however, this is an actor related scene, just like Skill or Equip. Therefore, it is strongly recommended to use a menu manager to put the option directly in the main menu. I prepared beforehand the required methods to use with Yanfly's Ace Menu Engine so you would be well inspired to use it. All you have to do is add this line in the CUSTOM_COMMANDS hash:
CODE
:grath => [ "Install", 0, 0, :command_install],

Needless to say, you can rename "Install" to whatever you want, and you're free to add switch conditions too. Refer to the script for more details.
Once it's done, just add :grath to the COMMAND hash.

Screenshots





Script
Download

Compatibility
Works with most of Yanfly's scripts, as we both try to maintain compatibility with each other.

Terms and Conditions
You are free to adapt this work to suit your needs.
You can use this work for commercial purposes if you like it.
Credit is appreciated.

Special Thanks
The sheer volume of bugs this script contained (and it might contain more) has been fixed thanks to Yanfly, Adalwulf, renegat92, killer690, Cassy and etanal. They did report quite a lot on my blog.


__________________________
FRACTURE - a SMT inspired game (demo) made by Rhyme, Karsuman and me. Weep and ragequit.

My blog.

Click here for my e-peen


Go to the top of the page
 
+Quote Post
   
 
Start new topic
Replies
Milton Monday
post Jan 30 2012, 05:38 PM
Post #2


Unassuming Local Guy
Group Icon

Group: Revolutionary
Posts: 634
Type: None
RM Skill: Beginner




You, sir, are awesome incarnate.

I'm still quite interested, as this would make everything much cleaner! My workarounds were marginally functional, but clumsy, as event based work arounds often are. The first one ended up not working so well after all; after some more testing, it goes to the last selected actor, whether they're in the party or not. Facepalms ensued. Calling the script via common event skill solved that problem but it was, well... pretty dinky.

In short, Thankyouthankyouthankyou.


__________________________
"Game development is a very special job that requires a very special person. The high stress levels often drive our staff members to become...subhuman. They're violent and need to be caged. But we need them to make good games. This is the unfortunate truth of the game industry." - Segagaga
Go to the top of the page
 
+Quote Post
   



Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 23rd May 2013 - 03:56 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker