Frostorm

[]D[][]V[][]D
Regular
Joined
Feb 22, 2016
Messages
2,788
Reaction score
2,236
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
12
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
14
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
Regular
Joined
Feb 22, 2016
Messages
2,788
Reaction score
2,236
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
12
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
Regular
Joined
Feb 22, 2016
Messages
2,788
Reaction score
2,236
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
12
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
Regular
Joined
Feb 22, 2016
Messages
2,788
Reaction score
2,236
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
12
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
Regular
Joined
Feb 22, 2016
Messages
2,788
Reaction score
2,236
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
12
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: 8

Balendra

Regular
Regular
Joined
Mar 4, 2022
Messages
293
Reaction score
107
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
 

AlexWitch

Warper
Member
Joined
May 16, 2022
Messages
2
Reaction score
0
First Language
English
Primarily Uses
RMMV
hello to the author of this plugin, I have such a problem, if the party is incomplete, then it gives an error, I think this is because the party id is in the note, I would like you to make it so that the actor id is taken from the comment or command in the content events, thank you in advance

1660364422451.png
 

KaitlynKitty

Regular
Regular
Joined
Apr 6, 2021
Messages
198
Reaction score
65
First Language
English
Primarily Uses
RMMV
hello to the author of this plugin, I have such a problem, if the party is incomplete, then it gives an error, I think this is because the party id is in the note, I would like you to make it so that the actor id is taken from the comment or command in the content events, thank you in advance

View attachment 237600
Make the events only show up if the specific party member associated is present in the party. There is a series of checkboxes in an event's page.
 

AlexWitch

Warper
Member
Joined
May 16, 2022
Messages
2
Reaction score
0
First Language
English
Primarily Uses
RMMV
Make the events only show up if the specific party member associated is present in the party. There is a series of checkboxes in an event's page.
it doesn't work, it's still an error, because the note is attached to the event itself, and not to its pages.

at the beginning of my game, you can choose a companion or go alone, I made an event for each companion with such a checkbox indicating the specific companion in the note, but it still didn’t help
 
Joined
Jun 1, 2022
Messages
22
Reaction score
5
First Language
Portuguese
Primarily Uses
RMMV
Any way to manipulate the AI? Trying to create a retreat and cover event where a NPC(autoAi) will retreat while player cover it, is this possible?
 

KaitlynKitty

Regular
Regular
Joined
Apr 6, 2021
Messages
198
Reaction score
65
First Language
English
Primarily Uses
RMMV
it doesn't work, it's still an error, because the note is attached to the event itself, and not to its pages.

at the beginning of my game, you can choose a companion or go alone, I made an event for each companion with such a checkbox indicating the specific companion in the note, but it still didn’t help
I returned back to an old project and did some testing. If you give an event, for example, <Party:2>, it will spawn the second party member should one be in that slot, but will not crash if that slot is empty.
 

Tamaki_Karakuri

Villager
Member
Joined
Nov 13, 2022
Messages
6
Reaction score
0
First Language
Indonesia
Primarily Uses
RMMV
Hello, anyone know how to use Force Action Battle Event with this plugin? I'll try to make a Battler Force using cure to last target, but it does'nt work.
 

plokr

Level One
Member
Joined
Oct 10, 2022
Messages
15
Reaction score
26
First Language
German
Primarily Uses
RMMZ
Hi, I ported the Tactics System 1.2 from MV to MZ. You can find the port in this post. Please be aware that I did so as basis for my further development and I won't extend the functionality of that plugin but a new one with limited downwards compatibility. (...and it'll take time.)
 

Latest Threads

Latest Profile Posts

if we get a trailer for shadow of the erdtree words won't describe how happy i'll be. keeping my hype down but, fingers crossed
Off to LEGOLAND today! Yes, my wife and I are in our 50s and going to LEGOLAND without any small children. Stop judging us! Apparently, there are places you can't go without being accompanied by a child in LEGOLAND. Which is kind of the opposite of what is usual. But our kids are all grown and we have never been. LEGO KRAMPUS here I come!
I decided that for the video game i will work next year i will use characters from my TCG as main characters for the RPGMAKER game, so expand the universe, that will be a cool :CoOoOL: Here some of my characters :

Ah also yes I'm accepting commission in case tat you ask for haha.
Some people shouldn't be parents. Someone put their toddler in the hallway of the apartment building I live in at 11 p.m.... and let her wander. The heck is wrong with people?!
Twitch! Strean is currently live with some more gamedev! Feel free to drop by~

Forum statistics

Threads
136,758
Messages
1,269,607
Members
180,505
Latest member
rpplayer158
Top