Fenyx4 / U4DosRandomizer

Randomizer for Ultima IV
MIT License
13 stars 2 forks source link

Feature: Split experience from killing monster amongst the party #65

Open Fenyx4 opened 3 years ago

Fenyx4 commented 3 years ago

Split the xp from killing monsters between all the characters.

So if you kill something worth 16 xp and you have 2 characters each one gets 2 xp.

Start at character that made the kill and loop through characters giving 1 xp until you run out of xp. (That will handle weird edge cases well.)

Dead characters still get XP.

Don't split quest xp. All that still goes to Avatar.

Thanks to BigMikeyOcho.

cambragol commented 3 years ago

Couldn't you just award the normal XP and divide by the Party size?

Or, what about awarding half the xp to the character delivering the killing blow, and the rest split out between the living party members? Lots of possibilities I suppose.

Fenyx4 commented 3 years ago

I'm worried about weird edge cases with straight division. Like, headless have 5 xp and if I had party sizes of 8 then 5/8 = .625 and I can't give .625 to people.

I am flipping back and forth on dead people getting xp though.

cambragol commented 3 years ago

How about sharing based on who contributed to the kill. Like, whoever hit the troll, gets part of his xp. Those who didn't, don't.