Comments (5)
This effectively means evaluating all triggers to some common ground (say "lump sum of gold")
Very complicated task
from unciv.
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.
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.
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.
@tuvus
Nice!! I think that's a fantastic idea 😸
from unciv.
Related Issues (20)
- Crash HOT 1
- Escort formation+Automation bug HOT 1
- Unciv on OpenAPK HOT 8
- AI joins war with ally AI against a dead civilisation HOT 1
- 4.12.10 boom all mods that include Atlases.json HOT 1
- New capital renamed New Babylon/Carthage/Rome, only affects these 3 nations HOT 2
- Nation/City State icon before city name in Wonders and Notifications Overview HOT 6
- Auto production on Work Boats
- Movement of Air units goes wrong.
- retracted
- AI: Balancing of accepting "unfavorable" trades (reason in this example related to gifted gold) HOT 5
- Unique stopped working, +1 HOT 2
- AutoEndturn bypassed Disabled Auto Build roads Option HOT 2
- Cannot enter Game in 4.12.12 in Android HOT 3
- Barbarian encampments appearing on map, even without Honor selected HOT 3
- Mod checker objecting to acceptable mapUnitFilter combinations
- Выдает ошибку HOT 1
- Feature request: option to disable animations
- Instant crash after update to 4.12.12 - SOLVED with 4.12.12-patch1 HOT 1
- Cannot buy buildings with other stats
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unciv.