Aller au contenu

Photo

RewardXPParty() question


  • Veuillez vous connecter pour répondre
7 réponses à ce sujet

#1
Magic

Magic
  • Members
  • 187 messages
This is a question about the design of function RewardXPParty() in sys_rewards_h.nss. I hope it's the right place to ask. The observation is that party members get less xp than the character delivering the killing blow (5%). Is this intended? It seems like a bug. Patch version 1.2 (was in 1.0 too).

sys_rewards_h.nss, line 266 and 279:
int nEffectiveXP = nXP;
nEffectiveXP = (oSource == aParty[i])?nEffectiveXP :FloatToInt(nEffectiveXP * 0.95);

oSource is the killer. Within a loop, party members get nEffectiveXP each. From the comment in line 272, it seems that party members in camp should get 95% while the active party gets 100%. Not sure if this has been discussed before. I didn't find any topic on this.

By the way, summons do not seem to leech xp anymore, both according to testing and code. Does anybody still encounter problems here? I didn't see any notes about this fix.

Modifié par Magic, 12 décembre 2009 - 08:00 .


#2
CID-78

CID-78
  • Members
  • 1 124 messages
it's intended so it's a minor reward in keeping to one party only.

#3
Magic

Magic
  • Members
  • 187 messages
Uhm, that is fine but I think you might have missed the actual issue.

The character dealing the killing blow gets more xp than other members of the active party. This is rather unusual, so I'm asking.

#4
Magic

Magic
  • Members
  • 187 messages
Hm, I see why my first post was misleading. I'll edit that.

#5
Sylvius the Mad

Sylvius the Mad
  • Members
  • 24 112 messages

Magic wrote...

Uhm, that is fine but I think you might have missed the actual issue.

The character dealing the killing blow gets more xp than other members of the active party. This is rather unusual, so I'm asking.

This is as intended.

Getting the killing blow gives a small bonus (they round down, so it's often just a single point).

Companions left in the camp earn no XP at all, but are automatically granted XP when you add them to the party (though not as much as if they'd been in the party).

#6
Magic

Magic
  • Members
  • 187 messages
Ah interesting, I wasn't aware that it is intended. It's not really reflected in the comments but alright.



Companions in the camp will earn just enough xp to stay 1 level below the player. Nothing proportional here but that works well anyway.

#7
Sylvius the Mad

Sylvius the Mad
  • Members
  • 24 112 messages

Magic wrote...

Companions in the camp will earn just enough xp to stay 1 level below the player. Nothing proportional here but that works well anyway.

And that mechanic I very much like, because it does encourage you to stick with a single core party.

If you swap out characters regularly, they'll ultimately all fall one level behind the PC.

If you don't, then the characters you use will earn XP together, generally keeping them on the same level as the PC (and in Alistair's case, possibly keeping him ahead of the PC).

The average level of your entire party (PC + all companions) will be higher if you don't swap out characters.

#8
Magic

Magic
  • Members
  • 187 messages
Judging from the feedback, it seems to be a non-issue - unexpected but alright. Thanks for the information then.

I don't prefer any of the mechanics we discussed here but preferences differ obviously. Well, it's not broken so I'll stick to it. :)