How do I get an AI to detect that I gave it a tribute and execute an effect?

I’m doing a scenario where one of the AI players will become my ally if I give him a gold tribute but in the editor there is no condition for another player to detect that he received a tribute you gave him, so I imagine it’s because of an AI script.
What would that script look like?

Would greatly appreciate guidance

1 Like

I’ve already figured out how to use this command in the AI script

(defrule
		(players-tribute any-ally gold >= 200)
		(gold-amount >= 200)
	
=>
	(set-signal 5)
)

I’ve used a 200 gold tribute and 5 signal for this example

1 Like

I don’t know if it was the last update but these commands don’t work anymore

1 Like

Yes, yes it was. There’s a variety of posts already

I’ve already figured out how to fix it, I had to change the code

(defrule
		(players-tribute-memory 1 gold >= 200)
	
=>
	(set-signal 5)
	(disable-self)
)
1 Like