HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Custom XP Gain System

07-20-2005, 07:11 AM#1
Linera
I'm currently making a xp gain system following these following rules:

1) when you kill mob at your level, you get XP= Level*5 + 45
2) when you kill mob above your level, you get 5% increase per level difference on XP you get from mob same level as you (from first point)
3) when you kill mob below your level, you get 5-6% decrease per level difference on XP that you had when you were same level as mob!
4) If mob>10 above your level, give -75% exp you get from a mob same level as you.
5) If mob>10 below your level, give no exp.

Here is what I have so far in the system, but I can't figure out how to do the xp gain when the mob is higher or lower then the player's hero:

Code:
Monster Dies
    Events
        Unit - A unit Dies
    Conditions
    Actions
        -------- If Monster is same level as the player. --------
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Level of (Dying unit)) Equal to (Hero level of (Killing unit))
            Then - Actions
                Hero - Add (((Level of (Dying unit)) x 5) + 45) experience to (First unit of group (Units owned by (Player((Custom value of (Dying unit)))))), Show level-up graphics
            Else - Actions
                Do nothing
        -------- If Monster is a higher level as the player. --------
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Level of (Dying unit)) Greater than (Hero level of (Killing unit))
            Then - Actions
            Else - Actions
                Do nothing
        -------- If Monster is a lower level as the player. --------
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Level of (Dying unit)) Less than (Hero level of (Killing unit))
            Then - Actions
            Else - Actions
                Do nothing
07-20-2005, 09:19 AM#2
Anitarf
(((Level of (Dying unit)) x 5) + 45) x (1 + (0.05 x LevelDifference)). Is this what you're looking for?

Why do you get 75% less if it's 10 levels above you? Also, what happens if the killing unit is not the hero, but a summoned unit or a dummy caster (if you have those in the map, of course...)?
07-20-2005, 03:44 PM#3
Linera
I have a special tagging system so the game knows who to give the exp to.

I did 75% exp lost cuz i don't want a lvl 60 player to take a lvl 5 player somewhere so that the lvl 5 can tag a lvl 50 mob then the lvl 60 player kills the lvl 50 mob for the lvl 5 and the lvl 5 player ends up getting so much exp he gains like 2-3 lvls.

If you are level 5 and mob is lvl 4 then it would do XP=(level*5)+45 then do
XP + (5% of XP)
if mob was lvl 3 and you lvl 5 then its 10%

you get no exp from a mob the is 10 levels below your level.

I've looked and can't find the LevelDifference action. Can you tell me where it is?
07-20-2005, 06:39 PM#4
Anitarf
It's not an actual action, it's supposed to be the difference between your level and the mob level. Think, man, think!