1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. We have recently started the 16th edition of the Mini Mapping Contest. The theme is mini RPG. Do check it out and have fun.
    Dismiss Notice
  4. Dismiss Notice
  5. The Highway to Hell has been laid open. Come along and participate in the 5th Special Effect Contest.
    Dismiss Notice
  6. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Level CAP

Discussion in 'World Editor Help Zone' started by GrandMaitre, May 11, 2019.

  1. GrandMaitre

    GrandMaitre

    Joined:
    Feb 20, 2014
    Messages:
    403
    Resources:
    1
    Maps:
    1
    Resources:
    1
    Hi, in my map the max level is 10 000.
    But you can't reach it since you're not earning XP anymore around level 6500.
    XP tomes doesn't work and triggers don't work too.

    Is there a way to fix it?
     
  2. Chaosium

    Chaosium

    Joined:
    Aug 29, 2012
    Messages:
    416
    Resources:
    2
    Models:
    2
    Resources:
    2
    Doesn't it work if you add experience via triggers?
     
  3. GrandMaitre

    GrandMaitre

    Joined:
    Feb 20, 2014
    Messages:
    403
    Resources:
    1
    Maps:
    1
    Resources:
    1
    Just tried. can't go over level 6324...
     
  4. GhostHunter123

    GhostHunter123

    Joined:
    Oct 17, 2012
    Messages:
    458
    Resources:
    1
    Spells:
    1
    Resources:
    1
    Lower the exp required per level. In turn, exp gained from creeps need to be scaled down as well.
     
  5. GrandMaitre

    GrandMaitre

    Joined:
    Feb 20, 2014
    Messages:
    403
    Resources:
    1
    Maps:
    1
    Resources:
    1
    Wh
    Where do I change these please?
     
    Last edited: May 11, 2019
  6. Dr Super Good

    Dr Super Good

    Spell Reviewer

    Joined:
    Jan 18, 2005
    Messages:
    25,804
    Resources:
    3
    Maps:
    1
    Spells:
    2
    Resources:
    3
    Reduce the XP per level growth curve. You are hitting integer max for the underlying type that holds the experience amount.
    Gameplay constants.
     
  7. GrandMaitre

    GrandMaitre

    Joined:
    Feb 20, 2014
    Messages:
    403
    Resources:
    1
    Maps:
    1
    Resources:
    1
    I checked game constants and they are like 8 lines related to XP...
    Don't know which ones I have to change
     
  8. Dr Super Good

    Dr Super Good

    Spell Reviewer

    Joined:
    Jan 18, 2005
    Messages:
    25,804
    Resources:
    3
    Maps:
    1
    Spells:
    2
    Resources:
    3
    Any related to growth. You want to make the exp to next level growth per level lower. You can experimentally test them to get a feel as to what each one does and which settings will allow you to reach the desired maximum level.
     
  9. Tasyen

    Tasyen

    Joined:
    Jul 18, 2010
    Messages:
    1,441
    Resources:
    18
    Tools:
    2
    Maps:
    3
    Spells:
    8
    Tutorials:
    4
    JASS:
    1
    Resources:
    18
    Requiered exp fields have to be reduced.
    The one with the highest impact is level-Factor. It increases for each level the total exp needed by level-Factor * level.
    the exp formel to get exp of level x is:
    f(x) = A*f(x-1) + B*x + C​
    source custom_v1 miscgame.txt
     
  10. map designer

    map designer

    Joined:
    May 2, 2011
    Messages:
    932
    Resources:
    1
    Maps:
    1
    Resources:
    1
    instead of changing XP from creeps, we can set hero XP tax to be 50% or whatever rate we choose.


    well, first of all, you can specify XP required for each level as you like in a table (last option). if you leave the table empty, then the formula will be used.
    There is a formula which goes like:
    XP required for next level = previous Level XP (which you already gained) + Level * Level Factor + Constant Factor.

    E.g. level 1 requires 200 XP, and lets say level factor is 100

    to go to level 3, XP = 200 + 3*100 = 500
    to go to level 4, XP = 500 + 4*100 = 900 xp require etc.


    Now if you used constant factor of 500 and XP factor of 50,
    XP required for level 2 = 0 + 50*2+500 = 600
    XP required for level 3 = 600 + 50*3+500 = 1250
    XP required for level 4 = 1250 + 500 + 50*4 = 1950

    and so on.