Giter VIP home page Giter VIP logo

Comments (3)

rbrash1287 avatar rbrash1287 commented on August 17, 2024

I have been researching this, testing it, basically trying anything from my little book of .lua and moddings.. its been mentioned in main AOE discord as well as the unofficial discord.

Of the thousands of games using AGS setts and mostly Forest Nothing, this is by far the worst. Wish I could contribute and from studying lua commands I would think a clever script could be made that would remove all entities idle/defeared on a map...

from aoe4-advancedgamesettings.

Woprok avatar Woprok commented on August 17, 2024

It's not that complicated to kill off remaining units. Moment player is eliminated is well known and as long as he was not yet killed by C++ calls, you can gather information about player units and buildings. EGroup/SGroup get all player entities / squads exists if I remember correctly. Only thing left is to find exact place where you want to invoke this, for AGS that would be right here:

https://github.com/Woprok/AOE4-AdvancedGameSettings/blob/master/assets/scar/coreconditions/ags_conditions_match.scar

function AGS_SetPlayerDefeated(player_id, presentation_function, defeat_reason, opt_objective_pop)
        -- most likely as first call, might work as second or third
	AGS_SetOnePlayerDefeated(player_id, presentation_function, defeat_reason, opt_objective_pop)
	Core_CallDelegateFunctions("OnPlayerEliminated", Core_GetPlayersTableEntry(player_id), defeat_reason)
end

from aoe4-advancedgamesettings.

Woprok avatar Woprok commented on August 17, 2024

But as any other change to this mod, I don't have time & motivation to do it currently.

from aoe4-advancedgamesettings.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.