# Level Difference Exp

This script allows you to specify a “level difference” exp modifier. It introduces a “level difference” exp formula which takes the level difference
between an actor and an enemy and determines how the exp will be adjusted. This means that the amount of exp that an actor gains from an enemy is dependent on the difference between the actor’s level and the enemy’s level.

For example, if the actor’s level is higher than the enemy level, then the actor may receive less exp than if the levels were about the same. On the other hand, if the actor’s level is lower than the enemy level, then the actor may receive more exp than usual.

Required: Core – Enemy Levels, Actor Victory Exp

## Installation

Place this script below Core – Enemy Levels and Actor Victory Exp,
and above Main

## Usage

Each enemy will have their own level difference exp formula, which you define
using the notetag

```<level diff exp>
FORMULA
</level diff exp>```

The formula takes two variables and returns a new number:

```exp - the amount of exp that the actor could obtain from this enemy
diff - the level difference between the actor and the enemy```

The level difference is from the perspective of the actor. For example, if
your actor is level 1 and it defeats a level 10 enemy, then the difference
is +9 (that is, the enemy is 9 levels higher than the actor)

If no formula is defined for the enemy, then this modifier does nothing.

## Examples

Suppose a level 10 slime gives 100 EXP
If your actor’s level is lower, then you want to give a bonus 10 EXP for each
level that you’re lower. However, if your actor’s level is higher, then you
want to give a 10 EXP penalty for each level. Your formula would look like this

`exp + (diff * 10)`

This works because if your actor is level 1, then the difference between the
actor and the slime is 9, so you will receive a total of (exp + 90). However,
if your actor was level 20, then the difference is -10, and so you will receive
a total of (exp – 100)

Suppose instead that we wanted to reward players for taking on challenges,
but didn’t want to penalize them for killing easy enemies. We can use
conditional branches in our formula like this

```if diff > 0
exp + (diff * 10)
else
exp
end```

This means that if the level difference is greater than 0, that is, the actor’s
level is lower than the enemy, then the actor receives bonus EXP for each
level of difference. However, if the actor’s level isn’t lower, then the
exp rewarded is just the usual exp.

### 40 Responses

1. Excellent post. Keep writing such kind of information on your site.
Im really impressed by your site.
Hi there, You have performed an excellent job. I will certainly digg
it and individually suggest to my friends. I’m confident they will be benefited from this website.

my web site – vpn special coupon code 2024

2. vpn 2024 says:

Thanks for sharing your info. I really appreciate your efforts and I
will be waiting for your next write ups thanks once again.

Look into my website – vpn 2024

3. I constantly spent my half an hour to read this weblog’s content all the time
along with a cup of coffee.

Here is my homepage: vpn special coupon

4. This design is incredible! You most certainly know how to keep a reader entertained.
Between your wit and your videos, I was almost moved to start my own blog (well, almost…HaHa!) Excellent job.
I really enjoyed what you had to say, and more than that, how you presented it.
Too cool!

Here is my web blog: vpn coupon code 2024

I mean, what you say is important and all. However imagine if you added
some great images or video clips to give your posts more, “pop”!
Your content is excellent but with images and clips, this blog could undeniably be one of the very best in its
niche. Terrific blog!

Review my web-site vpn special coupon code 2024

6. Heya i am for the first time here. I came across this board and I find
It really useful & it helped me out a lot. I hope to give something back and
help others like you aided me.

Also visit my web-site … vpn code 2024

7. odhtmBaM says:

На сайте https://aviamir-tk.ru/ вы сможете воспользоваться такой важной и нужной услугой, как надежная и качественная перевозка опасных грузов. При этом дается гарантия того, что груз будет доставлен в целости и сохранности. Для того чтобы осуществить отправку груза, потребуется лишь его транспортировка на склад для последующего оформления для перевозки. Консолидация позволит существенно сэкономить на перевозке. Ваш груз будет храниться на складах. Возможна организация забора груза транспортом компании.

8. Aziza says:

I every time used to study piece of writing in news papers but now as I am
a user of web therefore from now I am using net for articles or
reviews, thanks to web.

9. Tavius says:

hey there and thank you for your information – I have definitely picked up anything new from right here.
I did however expertise several technical points using this web
site, since I experienced to reload the website a lot of
times previous to I could get it to load correctly. I had been wondering if
instances times will sometimes affect your placement in google and could damage your high quality score if
RSS to my email and can look out for a lot more of
your respective exciting content. Make sure you update this again very soon.

10. Stony says:

Every weekend i used to go to see this web page,
because i wish for enjoyment, as this this website conations in fact fastidious funny data too.

11. Shaconda says:

I used to be able to find good info from your articles.

12. Telesha says:

It’s fantastic that you are getting thoughts from this piece of
writing as well as from our discussion made at this time.

13. Naftali says:

It’s really a cool and helpful piece of information. I’m happy that you simply shared this
Thank you for sharing.

14. Keshonda says:

Howdy great website! Does running a blog similar to this take a great deal of work?
I’ve virtually no understanding of programming however I was hoping to
start my own blog soon. Anyways, if you have any ideas or tips
for new blog owners please share. I know this
is off subject but I just wanted to ask. Appreciate
it!

15. Naiya says:

Very good post! We are linking to this great content on our website.
Keep up the great writing.

16. Ramirez says:

What’s up everyone, it’s my first pay a quick visit at this web page, and article is
actually fruitful for me, keep up posting these posts.

17. Ericka says:

It’s an remarkable article designed for all the online users; they will obtain advantage from it I am sure.

18. Montrice says:

Appreciate this post. Let me try it out.

19. Krystopher says:

I am no longer positive where you’re getting your info,
but great topic. I must spend some time studying much
more or understanding more. Thank you for magnificent info I was on the lookout
for this information for my mission.

20. Jamela says:

This design is spectacular! You obviously know how to keep a reader entertained.
Between your wit and your videos, I was almost moved to start my own blog (well, almost…HaHa!) Great job.
I really enjoyed what you had to say, and more than that, how you presented it.
Too cool!

21. Vang says:

Thank you for sharing your info. I really appreciate your efforts and I will be waiting for your further post thank you once again.

22. Sentoria says:

At this time it appears like Movable Type is the preferred blogging platform available right now.
(from what I’ve read) Is that what you are using on your blog?

23. Christena says:

Keep on working, great job!

24. Equan says:

Awesome! Its genuinely remarkable post, I have got much clear
idea on the topic of from this piece of writing.

25. Evelio says:

Everything is very open with a precise explanation of the
Thank you for sharing!

26. Stephanos says:

Hello! I could have sworn I’ve been to this site before but after
reading through some of the post I realized it’s
new to me. Nonetheless, I’m definitely happy I found it and I’ll
be book-marking and checking back frequently!

27. Anonymous says:

Is there an MV plugin version of this?

Hey Hime,

Would there be any way to set a “default” formula, to avoid having to set the same formula to all enemies noteboxes in the database?

Thanks

• Hime says:

Easiest way is to go to line 125 in the script and change the formula there. It says “exp” by default, which means the base exp the enemy provides, but you can change that as needed.

Thanks, Hime. 🙂

Hi, I don’t know if you’re still active, but I thought I’d ask just in case:
I’m using Soulpour777’s Singular Experience script. Can this script work with it? Will it still require your Actor Victory Exp script, and if so will that work with it? If not, do you expect it would take much modification to get them to work together?

• Hime says:

Yes, Actor Victory Exp makes it so that each actor will evaluate how much EXP they get separately.
I don’t think there should be an issue between these scripts, since only the leader would get EXP.

30. AlliedG says:

I was wondering if ever did the patch to make this compatible with yanfly’s victory aftermath script?

• Hime says:

No, I don’t know if I will do one.

31. AlliedG says:

I was wondering if you had made any progress on a patch to make this compatiable with yanfly victory aftermath.

32. Charlie says:

Hiya, your scripts have helped me massively, but I’m really having no luck getting this one to work. Well, it works if I put in something simple like :

exp – diff

The logic I’m trying to use is:

if diff > 0
exp*diff+exp
else
exp*(1/(1-diff))
end

and when it’s tested, you gain 0 exp, and ‘___ gained _ exp’ isn’t displayed.

If you have any idea why this might be, it’d be a great help. Thanks

• Hime says:

Do you have the required scripts placed above?

• Charlie says:

I do. Then after a long time being frustrated and trying various different formulas, I realised that I also had a script from someone else and it must have been incompatible with yours and that was the problem.

33. chaos17 says:

I like the idea of your script but I already have Yanfly ennemy level and Victory aftermath… I fear some incompability if I take the required scripts >_<"

• Hime says:

Yes, actor victory exp is not compatible with yanfly’s victory aftermath. However, I have found that yanfly’s script provides similar functionality so maybe I can write a patch. You can use yanfly’s enemy levels script.