Starbound

Starbound

RPG Growth
This topic has been locked
Michael 11 Jan, 2021 @ 4:24pm
Possible loot sharing solution?
Hi there! First off, let me just say I absolutely love your mod. I've been using it for years, and it's been fantastic watching it evolve. As far as I'm concerned your mod is essential! Thank you so much for all the work you've put into it!

I've recently been playing Starbound with a group of friends, and it's the first time we've ever tried multiplayer. I was extremely (and pleasantly) surprised to discover that the exp drops are actually shared among the entire party. That's just fantastic. Truly. It really helps give the game a true multiplayer/mmorpg feel - made even better with all the terrific class synergy.

Which brings me to my next question: Would it be possible to use that same function that you use to distribute exp orbs in order to also share ANY loot drop so that items and money are duplicated across the entire party?

1. Would you ever consider adding such a function as a fully optional toggle to RPG Growth?

2. If not, would it be possible (and would you be willing) to make a stand-alone mod based on whatever you use to distribute exp?

3. If that's not something you or anyone else would be willing to make, would you be willing to explain and share the source code that distributes exp orbs across the party? That way, perhaps my friend can take a look at it and make their own mod for loot-sharing. (With credit going to you for that part, of course.)

After doing a deep Google dive, it seems loot sharing has been an ongoing issue for darn near a decade now. If you can help devise a solution (as opposed to the bizarre rants about socialism I keep coming across), that would be terrific! Thank you in advance!
< >
Showing 1-3 of 3 comments
Chaika? Yes. Chaika.  [developer] 26 Jan, 2021 @ 10:22pm 
So, if you take a look at my github, which I will link below, you can see how I distribute XP. It's a bit more complicated than simply sharing money, because I also have to take into account the player with the highest Intelligence (who raises the overall XP gained from a pickup).

https://github.com/IcyVines/Starbound-RPG-Growth/blob/master/scripts/ivrpgstart.lua

The script I linked, which is added via player.config.patch, has an important function labeled updateXPPulse. If you take a look at that function, ignore anything to do with XP scaling, and use the search feature to look for related variables, you should be able to make currency sharing for every currency, be it pixels or ancient essence.

I don't really get notifications for discussion posts, which is why this response is so delayed. Hopefully you see this! And feel free to ask any more questions: always happy to help out with things related to programming.
Michael 27 Jan, 2021 @ 1:05pm 
This is fantastic, thank you! I'll pass this along to my coder friend who is running our server, since they're the one with the brains. Thank you again!
mετα cατ 27 Jan, 2021 @ 2:18pm 
Wow thank you so much Chaika ^_^, i'll be the one doing most of the work on implementing it. It's such a useful mod you have and I also appreciate the work you've done sharing it :)
< >
Showing 1-3 of 3 comments
Per page: 1530 50