Coder Social home page Coder Social logo

Comments (5)

yairm210 avatar yairm210 commented on July 20, 2024

This effectively means evaluating all triggers to some common ground (say "lump sum of gold")
Very complicated task

from unciv.

PLynx01 avatar PLynx01 commented on July 20, 2024

This effectively means evaluating all triggers to some common ground (say "lump sum of gold")
Very complicated task

Let's ask @tuvus what does he think about this.

from unciv.

tuvus avatar tuvus commented on July 20, 2024

I don't think there is a general algorithm to allow the AI to accurately decide events.

Similar to your manual Idea, I propose giving the power to the modders, since they are the ones creating the event.

My proposition is to make the chance moddable. When the AI opens an event to decide which one to choose, it will use conditionals along with a new "bonus [amount]% of choosing this option" unique (or something similar). Then based on the sum of these unique the AI will choose one of the options.

Getting the personality values of the Civ will probably become a unique eventually.

from unciv.

PLynx01 avatar PLynx01 commented on July 20, 2024

I don't think there is a general algorithm to allow the AI to accurately decide events.

Similar to your manual Idea, I propose giving the power to the modders, since they are the ones creating the event.

My proposition is to make the chance moddable. When the AI opens an event to decide which one to choose, it will use conditionals along with a new "bonus [amount]% of choosing this option" unique (or something similar). Then based on the sum of these unique the AI will choose one of the options.

Getting the personality values of the Civ will probably become a unique eventually.

I previously thought about priorities similar to these determining the choice of Social Policies, but now I believe your idea is more flexible and versalite, as it will be compatible with most conditionals.

Example:

Bonus [+100]% chance of choosing this option <when at war>

I approve your idea, let's ask other developers for their opinion.

from unciv.

yairm210 avatar yairm210 commented on July 20, 2024

@tuvus
Nice!! I think that's a fantastic idea 😸

from unciv.

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.