Jump to content

Refugee's Mod - A mod that gives you control of a defeated allies units


tdust
 Share

Recommended Posts

Hello everyone,

This is my first time posting, and this is also my first mod for 0 A.D.

This mod changes how units are reassigned when a player is defeated. Instead of transferring to Gaia, the units now go to the next undefeated ally.

I think this is a really interesting mechanic, especially when playing the Regicide game mode—where all of a player's units get reassigned when their hero dies.

Let me know what you think, and feel free to suggest anything I should add! :)

Check it out here:
https://github.com/TobyDustin/0ad-refugees-mod

I'm also trying to get it on Mod.io. If anyone knows how to do that, I'd really appreciate your help. Here's the preview link:
https://mod.io/g/0ad/m/refugees-mod?preview=f5ab66257bcb802a72f07e11b3139287

Some screenshots:

o8kfYyh.gif

coA46hn.gif

 

  • Like 4
  • Thanks 1
Link to comment
Share on other sites

Great idea!

It also adds a bit of uncertainty to the game: Training of new units for the receiving ally might be delayed or blocked if population cap is exceed by the arriving newcomers, and also their mix might be not as expected/planned by the ally.

On the other hand, these units might be proven and levelled-up due to experience, so definitely valuable.

I am looking forward to testing your mod - will work in SP as well, I guess.

  • Thanks 2
Link to comment
Share on other sites

Oh - and one question regarding how "nearest ally" is determined: Any arbitration who will receive the refugees if e.g. two allies are positioned at the same distance (I guess it is the distance to their CC or is it distance to the next soldier?) Sorry for the questions!

  • Like 1
Link to comment
Share on other sites

18 hours ago, Grautvornix said:

Oh - and one question regarding how "nearest ally" is determined: Any arbitration who will receive the refugees if e.g. two allies are positioned at the same distance (I guess it is the distance to their CC or is it distance to the next soldier?) Sorry for the questions!

The nearest ally doesn't have a mechanism, it's determined by the defeated opponent's next undefeated ally... essentially I just query the list of allies for the defeated player, check if the ally is defeated and if they aren't move all the units over!

But this is definitely a place for improvement! I love the idea of the units being split up into the closest ally to the unit,

or even a bigger ally revamp where you rate how good ally's are based on resources gifted or trade and base it off that!

I love the questions, this really helps me, thank you!

  • Like 1
Link to comment
Share on other sites

45 minutes ago, Grautvornix said:

Further thought: if a mechanism to transfer population and resources is implemented, could that be implemented across games of the same campaign?

 

6 hours ago, Dakara said:

Interesting, thanks for your work.

Can you plan to automatically send resources to other allies?

This is a really good idea!
This is what I was thinking to begin with but I do feel like this might be a bit game breaking because of the amount of resources boost for the player and how those resources will just be available immediately, where as the units are idle to begin with and will have journey time etc.

But what do you think about this;

When a player gets defeated their units will be given to their closest ally, but their resources will go to Gaia then when the attacking player starts destroying buildings the buildings will drop treasure of the amount of some of the resources of the defeated player (maybe if they just destroy the civic centre's and forts because thats where historically treasury's would be?)

I was going to make another mod with this idea and call it the "treasury mod" but do you think it should be in this mod? (the image attached would be the cover)

 


 

C45A129F-58FE-42DE-8A8B-3F8C2AB94D54_1_105_c.jpeg

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...