EDIT: Where it says PlayerTeammateCount replace with PlayerFollowerCount
Here's the script:
Scriptname ExperienceModifier extends ActorGlobalVariable Property TormPlayerExp autoGlobalVariable Property PlayerTeammateCount autoint Property ExpOnDeath autoGlobalVariable Property TormPlayerCurrentLevel autoevent OnDeath(Actor akKiller) int initialExp = TormPlayerExp.GetValue() as int int ModdedExp = (ExpOnDeath/PlayerTeammateCount.GetValue() as int) + initialExp TormPlayerExp.SetValue(ModdedExp) if initialExp<100 && ModdedExp >=100 TormPlayerCurrentLevel.SetValue( 2) endIf if initialExp<250 && ModdedExp >=250 TormPlayerCurrentLevel.SetValue( 3) endIf if initialExp<350 && ModdedExp >=350 TormPlayerCurrentLevel.SetValue( 4) endIf if initialExp<600 && ModdedExp >=600 TormPlayerCurrentLevel.SetValue( 5) endIf if initialExp<950 && ModdedExp >=950 TormPlayerCurrentLevel.SetValue( 6) endIf if initialExp<1550 && ModdedExp >=1550 TormPlayerCurrentLevel.SetValue( 7) endIf if initialExp<2500 && ModdedExp >=2500 TormPlayerCurrentLevel.SetValue( 8) endIf if initialExp<4050 && ModdedExp >=4050 TormPlayerCurrentLevel.SetValue( 9) endIf if initialExp<6550 && ModdedExp >=6550 TormPlayerCurrentLevel.SetValue( 10) endIf if initialExp<10100 && ModdedExp >=10100 TormPlayerCurrentLevel.SetValue( 11) endIf if initialExp<16650 && ModdedExp >=16650 TormPlayerCurrentLevel.SetValue( 12) endIf if initialExp<26750 && ModdedExp >=26750 TormPlayerCurrentLevel.SetValue( 13) endIf if initialExp<43400 && ModdedExp >=43400 TormPlayerCurrentLevel.SetValue( 14) endIf if initialExp<70150 && ModdedExp >=70150 TormPlayerCurrentLevel.SetValue( 15) endIf if initialExp<113550 && ModdedExp >=113550 TormPlayerCurrentLevel.SetValue( 16) endIf if initialExp<183700 && ModdedExp >=183700 TormPlayerCurrentLevel.SetValue( 17) endIf if initialExp<297250 && ModdedExp >=297250 TormPlayerCurrentLevel.SetValue( 18) endIf if initialExp<480950 && ModdedExp >=480950 TormPlayerCurrentLevel.SetValue( 19) endIf if initialExp<778200 && ModdedExp >=778200 TormPlayerCurrentLevel.SetValue( 20) endIf endEvent
Note: For this to work right you need to have PlayerTeammateCount (a vanilla global) set to 1 initially, and then modify the DialogueFollowerScript function SetFollower() to have the PlayerTeammateCount.SetValue(1) to say PlayerTeammateCount.SetValue((PlayerTeammateCount.GetValue() as int) + 1)
Then you just set each enemie's ExpOnDeath to whatever value you want divvied up among the PC and his teammates, and you're done. Oh, and make the globals where appropriate.
