Level 5 plus

Discussion of all aspects of the game engine, including development of new and existing features.

Moderators: Forum Moderators, Developers

Post Reply
MotherNight
Posts: 2
Joined: September 17th, 2018, 1:49 pm

Level 5 plus

Post by MotherNight » September 17th, 2018, 2:51 pm

Just a quick question: Would it currently cause any issues, to have units in the game that are level 5 or more? Is there a set limit to levels that units can hypothetically reach, in the code? Or is this open, safe territory?

I know that it would, in theory, affect the experience such units would be worth...but, I'm wondering if say, I were to make units that could reach level 5, or 12, or even 25; if this would somehow break the game? Also, would it affect or cause problems with AMLA?

Any help is appreciated! thank you very much!

Shiki
Developer
Posts: 232
Joined: July 13th, 2015, 9:53 pm
Location: Germany

Re: Level 5 plus

Post by Shiki » September 17th, 2018, 3:04 pm

You can have levels as high as you want – and if someone fights a lvl 100 unit he regains 100 xp in case he survives.

As for AMLA, no problems either. More in detail https://wiki.wesnoth.org/UnitTypeWML#Af ... .28AMLA.29
- units from mainline have amla_strict=yes, meaning it won't interfere
- if an [advancement] has amla_strict=no, the player could choose if he wants the amla or to reach the next level
- if you really need, you could write code for removing the amla, though … maybe you don't need that
Maintainer of Era of Myths.
Introduction to WML filtering and WML variables.

MotherNight
Posts: 2
Joined: September 17th, 2018, 1:49 pm

Re: Level 5 plus

Post by MotherNight » September 17th, 2018, 7:16 pm

That's great! Thank you so much for your help!

I'm planning on adjusting the XP gain, anyway, so that shouldn't be a problem, hopefully...

josteph
Developer
Posts: 145
Joined: August 19th, 2017, 6:58 pm

Re: Level 5 plus

Post by josteph » September 17th, 2018, 7:52 pm

Whatever you're working on, I look forward to seeing it :)

Post Reply