Overwrite Skills (It is possible?)

berslayer

Villager
Member
Joined
Jul 15, 2017
Messages
9
Reaction score
0
First Language
Spanish
Primarily Uses
RMVXA
Hi everyone. Well I'm a beginner(?) in this forum and I don't know if here is the correct category to post this thread.
Guess so. Also, I have to say that I do not speak english very well since I'm from South America, but I usually tries to make me understand. To the point.

I'm working on a RPGMMV project. In a certain moment I was wondering if there's any way to overwrite skills. I'll try to explain, you know. At some level I want my character to obtain a skill more powerful than the actual skill. But I don't like the idea to has both of them because these skills do the same state attack, element, (for example), the difference is the MP cost and the magical damage either physical damage, I mean, the new skill inflicts more injury.

So that's the thing, ovrewriting a skill. Is there a way to o that?, like, a plugin, script or it is possible to do it with the rpgmmv options. Thank you beforehand of course.

Apologies if I didn't explain myself.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,370
Reaction score
7,678
First Language
German
Primarily Uses
RMMV
you can use events to unlearn skills for actors, but those would have to be triggered outside the regular leveling.

Or you can use a plugin to change the levelup-options.
 

berslayer

Villager
Member
Joined
Jul 15, 2017
Messages
9
Reaction score
0
First Language
Spanish
Primarily Uses
RMVXA
you can use events to unlearn skills for actors, but those would have to be triggered outside the regular leveling.

Or you can use a plugin to change the levelup-options.
The event thing would work. Still figuring out. But yes, thanks.
 

zimzim

Yamatcha Game Studio
Veteran
Joined
Dec 7, 2015
Messages
46
Reaction score
35
First Language
Malay
Primarily Uses
RMMV
This is similar to what I'm doing in the past: upgradeable skills. To achieve this, I used the lunatic mode for the plugin Yanfly Skill Core and Yanfly Skill Learn System

Let's say you have Fire skill, which can be upgraded to Fira skill and can be upgraded further to Firaga skill. In my case, my upgrades cost gold, so I used the notetag <Learn Cost: x Gold>.
Let's say you assigned Fire skill as skill number 10, Fira number 11 and Firaga number 12. Then:

In the notebox of Fire skill,
Code:
<Custom Show Eval>

var upgrades = [10, 11];     // These are the IDs of Fire upgrade skills

for( i=0; i<upgrades.length; i++) {
   if( user.isLearnedSkill(upgrades[i]) ) {
      value = false;     // so that the Fire skill won't appear in the character's skill list should you make Fira or Firaga to be in the character's skill list by default
   }
}

</Custom Show Eval>

In the notebox of Fira skill,
Code:
<Learn Require Skill: 10>
<Learn Cost: 100 Gold>

<Learn Show Eval>
if( this._actor.isLearnedSkill(11) ) {     // If the character learned Fira skill (skill ID 11)
   this._actor.forgetSkill(10);            // ...then the Fire skill (skill ID 10) will be removed from the character's skill list
   value = false;   // Required so that the skill won't appear in the character's skill list by default
   this._actor.refresh();
}

</Learn Show Eval>

In the notebox of Firaga skill,
Code:
<Learn Require Skill: 12>
<Learn Cost: 100 Gold>

<Learn Show Eval>
if( this._actor.isLearnedSkill(12) ) {     // If the character learned Firaga skill (skill ID 12)
   this._actor.forgetSkill(11);            // ...then the Fira skill (skill ID 11) will be removed from the character's skill list
   value = false;     // Required so that the skill won't appear in the character's skill list by default
   this._actor.refresh();
}
</Learn Show Eval>
Hopefully this helps you :)
 

Zarsla

Veteran
Veteran
Joined
Jan 23, 2015
Messages
710
Reaction score
228
First Language
English
Primarily Uses
You just need Yanfly Skill Core. And use one of theese notetags:
<Hide if Learned Skill: x> //Just for 1 skill
<Hide if Learned Skill: x, x, x> // for a set of skills, ie 10,15,17
<Hide if Learned Skill: x to y> // for a list of skills ie 10 to 15.

Theese notetags will hide and disable skills if you learn all the skills listed.

Hiding a skill makes it where the player can't see that skill in any menu and can't used the skill, it's like it's gone/disappeared however they still have learned the skill. So here's how the notetags work:

So if you just put:
<Hide if Learned Skill: 12> in skill 11
Then you need to learn just skill 12 to hide skill 11.

If you put:
<Hide if Learned Skill: 12, 15, 17> in skill 11
Then you need to learn skills 12, 15 & 17 to hide skill 11.

If you put:
<Hide if Learned Skill: 12 to 15> in skill 11
Then you need to learn skills 12 to 15 (12, 13, 14,15) to hide skill 11.
 

berslayer

Villager
Member
Joined
Jul 15, 2017
Messages
9
Reaction score
0
First Language
Spanish
Primarily Uses
RMVXA
Oh thank you. You three. I liked the topic about the Lunatic Mode. Looks tricky to me but with some practice and trial and error I would be able to work on it. And the last backup by Zarsla is pretty effortless than the zimzim's above. Whichever of those will help me.
Thanks for the attention and support. I think I have to thank Yanfly too.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 2)

Latest Threads

Latest Posts

Latest Profile Posts

Are we allowed to post about non-RPG Maker games?
I should realize that error was produced by a outdated version of MZ so that's why it pop up like that
Ami
i can't wait to drink some ice after struggling with my illness in 9 days. 9 days is really bad for me,i can't focus with my shop and even can't do something with my project
How many hours have you got in mz so far?

A bit of a "sparkle" update to the lower portion of the world map. :LZSexcite:

Forum statistics

Threads
105,883
Messages
1,017,236
Members
137,608
Latest member
Arm9
Top