Enemy Skill that Damages Experience instead of Health?

● ARCHIVED · READ-ONLY
Started by Yawgmoth 11 posts View original ↗
  1. I would like to know if creating an enemy skill that deals damages to an actor's experience is possible and if that would require a formula, or script? I'm assuming script but am not sure where to start. I plan on this skill being used by the final boss in my game. Any help is much appreciated.
  2. You could use a damage fourmla. Doesn't matter which one you use just do this:

    b.gainExp(-x);0;

    Replace x with a fourmula so like this:

    b.gainExp(-(a.atk * 4 - b.def * 2));0;

    Basically the code Right above is basically the targets loses experience, based on the same formula from the attack skill.
  3. @Zarsla

    My laptop needs to cool down a bit, It keeps crashing at the end of my test battle.

    I made an event to give me 500 xp and a skill that was given to an enemy. The skill says 0 damage every time it hits which is ok as long as the experience is reduced, not sure if we can clean that up a bit and say something else instead. At the moment though my cpu crashes at the end of the test so I can't check my experience. Have you tested the damage formula Zarsla? I hope this is just my laptop and not an issue with the formula. Also I am using Octopack plugin by Olivia.

    Yeah something seems to be wrong. At the end of the battle it just kicks me out of test play.
  4. Does it quite the program automatically? Or does it give an error screen?
    I'm also running Octopack from Olivia, and I'm not experiencing any crashes when trying this out for myself.
  5. @Broozer I'ts not Octopack because I have the same issue with Octopack turned off. The screen just goes black and test play is instantly closed. The timing seems to have something to do with entering battle and finishing battles. If it allows me to enter battle then it seems I can progress all the way through the battle with no problem until the battle is over at which point the test play closes.
  6. And this happens only when you use this ability?
    Or does it happen regardless.
  7. @Broozer Its been closing as soon as a battle starts now. So i'm not even using the skill. I tryed using F8 to see what is happening.

    EDIT: it just closes at the start or at the end of a battle so far. I finally had another battle that I defeated the enemies and it closed the test play at the end of the battle..
  8. Looks like all of that originates from your pixi.js file.
    Perhaps it has been corrupted, or you've recently imported a plugin that's not compatible with your other plugins, or is outdated.
    You could try to create a new project, and copy paste it's pixi.js into your current project.
    But preferably, if you suspect plugins, try disabling them one by one, to find the source of the problem.

    But before you do any of these. CREATE A BACK UP!
  9. I grabbed a pixi.js from another project. It would not let me create a new project which worries me. I ran the test battle again. It still closed me out but the F8 error messages looked better. Any more ideas?
  10. Quite worrying that you can’t create a new project.
    I suggest backing up everything you have right now, and reinstalling the software, it looks like it’s broken somewhere.
  11. @ Broozer Alright! I created a backup on an external drive, I uninstalled RPG Maker MV and reinstalled. Everything seems to work fine now.

    Now back to the skill, It seems to work but I gain level up messages when I gain experience but my status shows I am level 1. I'm not sure why? Also is their any way to have a damage pop up for experience loss? Also will the damage formula allow an actor to lose a level. In my test it seems like it does but with my level up messages and status screen showing different levels I'm not sure what's correct.