Jump to content

ai doing decisions?


Untolddead

Recommended Posts

Posted

Have any of you gotten the ai to do any decisions?

amazon_ai_decision = {
title = "if you aren't ai bug"
major = yes					
ai_check_interval = 1
is_shown = {
#is_female = yes 
#is_ai = yes
#has_faith = faith:amazonian
#NOT = { has_trait = amazon }
}
is_valid = {
#is_female = yes 
#is_ai = yes
#has_faith = faith:amazonian
#NOT = { has_trait = amazon }
}
desc = "AI PLZ TAKE!"
effect = {
add_trait = amazon
}
ai_potential = {
		always = yes
	}

	ai_will_do = {
		base = 100
	}
}

So far I haven't managed to get the ai to do any decisions. In this case it should be done by every ai at the start of the month based on how I understand how it works. Any thoughts?

Posted
7 minutes ago, hamimobe said:

It's ai_check_interval, not frequency. Also why is half your code commented?

AI does everything just fine for me.

Yeah it is. Sorry I changed it trying other stuff. If you got it to work can you post your code? because even with interval it doesn't work for me. I commented out most of the code to check whether it was being taken easier.

Posted
22 minutes ago, hamimobe said:

It's ai_check_interval, not frequency. Also why is half your code commented?

AI does everything just fine for me.

Nevermind I looked at your giantess mod. It seems like the problem was 

ai_potential = {
		always = yes
	}

I guess it wasn't doing what I thought it was supposed to do. It seems to work fine in the default scripts but I guess it was making the ai not take the decision for some reason. looks like people in court don't take decisions?

Posted

This was apparently the issue. 

ai_potential = {
		always = yes
	}

I guess it doesn't do what I thought. Even though it works fine in the default script...

Posted
7 hours ago, Untolddead said:

Nevermind I looked at your giantess mod. It seems like the problem was 


ai_potential = {
		always = yes
	}

I guess it wasn't doing what I thought it was supposed to do. It seems to work fine in the default scripts but I guess it was making the ai not take the decision for some reason. looks like people in court don't take decisions?

No, this is fine and should work.

 

7 hours ago, Untolddead said:

the court doesn't seem to take it. Do they not get decisions?

Only independent rulers can take a decision. If you want all AI women with certain requirements to get the amazon trait, you should create an on_action which calls an event that gives that trait. It could be a yearly on_action or maybe a on_birthday, depending on what you want,

Posted
5 hours ago, hamimobe said:

No, this is fine and should work.

I think it should work also. But once I removed it I finally saw people taking the decision. So I don't know what I did wrong.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...