Aller au contenu

Photo

What causes companion to get no experience?


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

#1
andysks

andysks
  • Members
  • 1 652 messages

As I was testing some things I run across this bug. In my party, where each companion got added through the same method, every one got experience for kills except the Paladin. He is Aasimar Paladin, and really, that is all that is different between him and the rest. He has no special scripts attached to him, nothing. At first I thought it is because he is an Aasimar... but why would that matter. Any ideas? I am certain many people have come across this bug...

 

Thanks a lot.



#2
Tchos

Tchos
  • Members
  • 5 072 messages

Have you given him any XP by script before he joins the party?  Not doing that is usually the problem.



#3
andysks

andysks
  • Members
  • 1 652 messages

Hi Tchos. No, he just spawns as a level 4 Paladin. That is I think 14k experience for him and I don't level him up before. Maybe I should spawn him at level 1, because the reset level call will cause him to match the PC's experience and level, and let the player level him up as he wishes.

 

Edit: didn't work :). Too easy lol.



#4
andysks

andysks
  • Members
  • 1 652 messages

So here's how my script that handles the xp looks like. From my library. A part of it anyway.

 

object oCompanion = GetObjectByTag(sCompanionTag);
int nXP = GetPCAverageXP();
SetXP(oCompanion, nXP);
ForceRest(oCompanion);

 

I did some more testing. I gave my PC more levels, because the companion is an Aasimar. my PC was level 5 and then I added the companion to the party. He got added as a level 4 Paladin. PC experience was 12000, so was his. I killed a goblin, and PC's experience got to 12013 but companion's stayed at 12000. Hmm...



#5
Guest_Iveforgotmypassword_*

Guest_Iveforgotmypassword_*
  • Guests
In his properties set the "designer xp mod" to 1, then when he joins the party use the ga_reset_level and set the use xp mods bit to 1 and make sure he has his companion scripts too.
  • Eguintir Eligard aime ceci

#6
andysks

andysks
  • Members
  • 1 652 messages

Hi Tsongo. His Designer XP Mod was indeed to 0. Which is weird because I thought be default creatures have it to 1 so I stopped checking it out when I create new companions. No time to test him now but I guess this should work. Thanks.


  • Eguintir Eligard aime ceci