Enemy Skill that Damages Experience instead of Health?

Yawgmoth

Veteran
Veteran
Joined
Jan 9, 2018
Messages
138
Reaction score
11
First Language
English
Primarily Uses
RMMV
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.
 

Zarsla

Veteran
Veteran
Joined
Jan 23, 2015
Messages
710
Reaction score
228
First Language
English
Primarily Uses
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.
 

Yawgmoth

Veteran
Veteran
Joined
Jan 9, 2018
Messages
138
Reaction score
11
First Language
English
Primarily Uses
RMMV
@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.
 

Broozer

Veteran
Veteran
Joined
May 30, 2018
Messages
48
Reaction score
8
First Language
Dutch
Primarily Uses
RMMV
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.
 

Yawgmoth

Veteran
Veteran
Joined
Jan 9, 2018
Messages
138
Reaction score
11
First Language
English
Primarily Uses
RMMV
@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.
 

Broozer

Veteran
Veteran
Joined
May 30, 2018
Messages
48
Reaction score
8
First Language
Dutch
Primarily Uses
RMMV
And this happens only when you use this ability?
Or does it happen regardless.
 

Yawgmoth

Veteran
Veteran
Joined
Jan 9, 2018
Messages
138
Reaction score
11
First Language
English
Primarily Uses
RMMV
@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..
 

Attachments

Last edited:

Broozer

Veteran
Veteran
Joined
May 30, 2018
Messages
48
Reaction score
8
First Language
Dutch
Primarily Uses
RMMV
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!
 

Yawgmoth

Veteran
Veteran
Joined
Jan 9, 2018
Messages
138
Reaction score
11
First Language
English
Primarily Uses
RMMV
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?
 

Attachments

Broozer

Veteran
Veteran
Joined
May 30, 2018
Messages
48
Reaction score
8
First Language
Dutch
Primarily Uses
RMMV
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.
 

Yawgmoth

Veteran
Veteran
Joined
Jan 9, 2018
Messages
138
Reaction score
11
First Language
English
Primarily Uses
RMMV
@ 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.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,975
Members
137,563
Latest member
cexojow
Top