Rainulf Drengot

Discuss Rainulf Drengot

For you AI tribute issue:

Just write:

(defrule
(players-tribute 1 “resource type” >= “amount”)
=>
(set-signal “number of the wanted AI SIgnal trigger”)
(clear-tribute-memory 1 “resource type”)
(disable-self)
)

So let’s say you want the AI to detect, say, AI Signal effect number 1 upon receiving a tribute of 200 gold from the player, it should be:

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