Frostorm

[]D[][]V[][]D
Veteran
Joined
Feb 22, 2016
Messages
2,788
Reaction score
2,224
First Language
English
Primarily Uses
RMMV
I also have another question. My characters gain EXP from using normal attacks, but not magic skills. Is there a way to change this, to where all skills grant EXP?
You can use Passive States to create an EXP on action mechanic btw. I might edit it in the future to account for MP effects as well...
JavaScript:
<Custom React Effect>
target._HP = target.hp;
</Custom React Effect>
<Custom Establish Effect>
if (user.isActor() && target.result()) {
  if (target.isEnemy() && target.result().hpDamage > 0) {
    var exp = Math.round(target.exp() * Math.min(target.result().hpDamage, target._HP) / target.mhp);
    var logWindow = SceneManager._scene._logWindow;
    var msg = user.name() + ' gained ' + exp + 'exp!';
    user.gainExp(exp);
    logWindow.addText(msg);
  } else if (target.isActor() && target.result().hpDamage < 0) {
    var exp = (target.result().hpDamage + target._HP - target.mhp) * target.level;
    var logWindow = SceneManager._scene._logWindow;
    var msg = user.name() + ' gained ' + exp + 'exp!';
    user.gainExp(exp);
    logWindow.addText(msg);
  }
logWindow.push('clear');
}
</Custom Establish Effect>
 
Last edited:

DrMechano

Villager
Member
Joined
Sep 9, 2013
Messages
11
Reaction score
2
First Language
English
Primarily Uses
You can use Passive States to create an EXP on action mechanic btw. I might edit it in the future to account for MP effects as well...
Thank you for your reply.

I'm a bit of a novice, so please bear with me. Where am I supposed to put this javascript code? Should I save it as a .js file, or is there somewhere in RPG Maker MV itself where I need to input this? I'm still learning! Thanks so much for your help already!
 

Eddowhateveresst

Villager
Member
Joined
Apr 5, 2022
Messages
11
Reaction score
0
First Language
German
Primarily Uses
Other
I have imported custom Portaits for my Enemies, but they don`t show up in Battle. What can i do?
 

Frostorm

[]D[][]V[][]D
Veteran
Joined
Feb 22, 2016
Messages
2,788
Reaction score
2,224
First Language
English
Primarily Uses
RMMV
Thank you for your reply.

I'm a bit of a novice, so please bear with me. Where am I supposed to put this javascript code? Should I save it as a .js file, or is there somewhere in RPG Maker MV itself where I need to input this? I'm still learning! Thanks so much for your help already!
1656837279703.png
You also need to make it a Passive State, which will require a plugin:
 

DrMechano

Villager
Member
Joined
Sep 9, 2013
Messages
11
Reaction score
2
First Language
English
Primarily Uses
You also need to make it a Passive State, which will require a plugin:
Thank you. I've created the state, and used Yanfly's plugin.

I have confirmed that the Yanfly Passive State plugin does work, as it is applying the state to every actor in my party (I gave the state an icon just to see if it'd appear, and it did appear over every party member). So this end of things is fine.

However, despite this, my characters are not gaining EXP from attacking enemies with MP skills. The javascript code you gave was pasted into the note tag for the state. But it doesn't seem to be working. Any idea if there's anything else I need to do?
 

Frostorm

[]D[][]V[][]D
Veteran
Joined
Feb 22, 2016
Messages
2,788
Reaction score
2,224
First Language
English
Primarily Uses
RMMV
However, despite this, my characters are not gaining EXP from attacking enemies with MP skills.
Try the following. It's 3AM here tho, so I'm off to bed for now. Hopefully this works, if not, it'll have to wait till tmrw.
JavaScript:
<Custom React Effect>
target._HP = target.hp;
target._MP = target.mp;
</Custom React Effect>
<Custom Establish Effect>
if (user.isActor() && target.result()) {
  if (target.isEnemy()) {
    if (target.result().hpDamage > 0 {
      var exp = Math.round(target.exp() * Math.min(target.result().hpDamage, target._HP) / target.mhp);
      var logWindow = SceneManager._scene._logWindow;
      var msg = user.name() + ' gained ' + exp + 'exp!';
      logWindow.addText(msg);
      user.gainExp(exp);
    } else if (target.result().mpDamage > 0 {
      var exp = Math.round(target.exp() * Math.min(target.result().mpDamage, target._MP) / target.mmp);
      var logWindow = SceneManager._scene._logWindow;
      var msg = user.name() + ' gained ' + exp + 'exp!';
      logWindow.addText(msg);
      user.gainExp(exp);
    }
  } else if (target.isActor()) {
    if (target.result().hpDamage < 0) {
      var exp = (target.result().hpDamage + target._HP - target.mhp) * target.level;
      var logWindow = SceneManager._scene._logWindow;
      var msg = user.name() + ' gained ' + exp + 'exp!';
      logWindow.addText(msg);
      user.gainExp(exp);
    } else if (target.result().mpDamage < 0) {
      var exp = (target.result().mpDamage + target._MP - target.mhp) * target.level;
      var logWindow = SceneManager._scene._logWindow;
      var msg = user.name() + ' gained ' + exp + 'exp!';
      logWindow.addText(msg);
      user.gainExp(exp);
    }
  }
logWindow.push('clear');
}
</Custom Establish Effect>

Edit: Wait, by "MP Skill" do you mean skills that cost MP, skills that drain MP, or skills that deal MP damage?
 
Last edited:

DrMechano

Villager
Member
Joined
Sep 9, 2013
Messages
11
Reaction score
2
First Language
English
Primarily Uses
Edit: Wait, by "MP Skill" do you mean skills that cost MP, skills that drain MP, or skills that deal MP damage?
Skills that cost MP. Like, a damage-dealing move that costs MP. Special skills of any sort, really.

Unfortunately, the new code also does not let characters gain EXP from using skills. I really appreciate you trying to help me figure this out, though!
 

Frostorm

[]D[][]V[][]D
Veteran
Joined
Feb 22, 2016
Messages
2,788
Reaction score
2,224
First Language
English
Primarily Uses
RMMV
Oh, I know the problem! You forgot to add the Passive state to ENEMIES, didn't you? I should've stressed that before. ALL units need to have this Passive state on them at all times. I just the plugin settings to add the state to the Global Passives List.
1656850876748.png
 

DrMechano

Villager
Member
Joined
Sep 9, 2013
Messages
11
Reaction score
2
First Language
English
Primarily Uses
Oh, I know the problem! You forgot to add the Passive state to ENEMIES, didn't you? I should've stressed that before. ALL units need to have this Passive state on them at all times. I just the plugin settings to add the state to the Global Passives List.
I just tried this, but it didn't work.

I set it to global, and confirmed that both actors and enemies had the state. And yet when I hit an enemy with a skill, no EXP.
 

Frostorm

[]D[][]V[][]D
Veteran
Joined
Feb 22, 2016
Messages
2,788
Reaction score
2,224
First Language
English
Primarily Uses
RMMV
I just tried this, but it didn't work.

I set it to global, and confirmed that both actors and enemies had the state. And yet when I hit an enemy with a skill, no EXP.
Hmm, in that case maybe this plugin is getting in the way? Must be the way it handles skills or something, idk. I really have no idea at this point since it works for me. Though I don't actually use this tactics plugin since I use LeTBS instead.

But regular attacks work?
 
Last edited:

DrMechano

Villager
Member
Joined
Sep 9, 2013
Messages
11
Reaction score
2
First Language
English
Primarily Uses
But regular attacks work?
Regular attacks do work, yes. They get EXP on every hit.

Defeating an enemy still gets EXP regardless of whether it's a regular attack or a special attack. But just damaging them without defeating them requires it to be a normal attack to get EXP.
 

Zero3720

Warper
Member
Joined
Jul 20, 2022
Messages
1
Reaction score
0
First Language
Português(BR)
Primarily Uses
RMMV
Heya, I'm having a trouble after the players wins or loses a battle: the battle restarts without the player party and with invisible enemies. The Image I sent was taken after a battle was completed. How can I move the player to anther map and stop the battle ?
--------------------------------------------------------------------------------------------------------------
(I'm going to say sorry proactively if the solution was easy and I couldn't see bc I am begginer in RPG Maker. My bad)
 

Attachments

  • Screenshot_6.jpg
    Screenshot_6.jpg
    619.6 KB · Views: 2

Balendra

Veteran
Veteran
Joined
Mar 4, 2022
Messages
208
Reaction score
76
First Language
english
Primarily Uses
RMMV
Tactics System | 1.2.1

by arleq1n


1.2.1 message

Download Link


Introduction
The Tactics System is a tactical battle system for RPG Maker MV. It contains the basic features to build a tactical rpg.
  • Easy to use: Tactics System has been designed to be easy to use. Just create a map with events defining the position of actors and enemies and use default battle processing event command to launch a battle!
  • Expandable by add-on: The plugin has been developed based on what already existed in RPG Maker MV by following the predefined rules. Thus it is easy to extend the Tactics System with add-ons. A list of add-ons bringing features to the system is already available.
  • Event-driven: The management of a battle is done with the event system of Rpg Maker MV. Call enemy reinforcements, write dialogs, add chests, and more.

Download
You can download the system on my GitHub page. It contains the plugin, terms of use and documentation.
You have a demo available in the github page in the release section.
You can also play my game in progress writing in this itch.io page.

Add-ons
I've written several add-ons for the system:
  • CombatScene.js: display the combat animation scene;
  • MouseSystem.js: add features for control with the mouse;
  • BattlePreparation.js: to manage unit party before the battle;
  • ExpSystem.js: a small review of the rewards system;

Terms of Use
Free for use in non-commercial or commercial projects.
Credits required to: arleq1n.
hey whenever i try use this it just says was defeated after starting a battle
 

Latest Threads

Latest Posts

Latest Profile Posts

Camping inside a hidden cave.
LzSHByh.jpg
I don’t believe in astrology. I’m a Sagittarius and we’re skeptical.
senary_concept_art.png
The concept art for the sprite of Senary, a major character in my upcoming (as-of-yet-unnamed) project. She is known as the Timelord because she can "stop time" by making eye contact with a person; Paralyzing them for a short period of time through a type of hypnosis. Tell me what you think about her. I'm thinking of changing the color of her coat.

Forum statistics

Threads
124,369
Messages
1,163,131
Members
163,164
Latest member
kingfathom
Top