Is the Timer condition (in the triggers) the same as the total, in-game time?

I am making a scenario where you tribute gold to an enemy faction in order to pay him off and remain neutral.

The problem is that with each time, the player has fewer and fewer time to pay off the enemy, even though the triggers are hidden/deactivated and reactivated each time.

So the timer condition represents the in-game time? Not the time that starts with the activation of the trigger?

You can do this with AI. There’s an example in the AI doc files

; Schedule 15 minute timer for the first time
(defrule
  (true)
  =>
  (enable-timer 2 900)
  (disable-self))

; Every 15 minutes ask for tribute and wait 5 minutes to get it. 
; Restart 15 minute timer.

(defrule 
  (timer-triggered 2)
  =>
  (disable-timer 2)
  (enable-timer 2 900)
  (chat-to-player 1 "Give me 500 gold in the next 5 minutes.")	
  (clear-tribute-memory 1 gold)
  (enable-timer 1 300))

; Tribute not received in time, declare player 1 to be an enemy. 
; No need to ask for tribute again - disable both timers.

(defrule
  (timer-triggered 1)
  =>
  (disable-timer 1)
  (disable-timer 2)
  (chat-to-player 1 "Time is up. We are enemies now")	
  (set-stance 1 enemy))

; Tribute received in time. Disable the 5 minute timer 

(defrule
  (players-tribute-memory 1 gold greater-or-equal 500)
  =>
  (disable-timer 1)
  (clear-tribute-memory 1 gold)
  (chat-to-player 1 "Thanks"))

Do I need any triggers for that?

Just copy and paste it in the AI player AI script. Of course, this will only work if the player that asks for tribute is an AI player

Understood. I am adding triggers to spice things up with Display Timers and voice lines. But they only seem to be working once

Maybe you could combine it with trigger variables using XS? That way, every time timer someTimer is triggered, you modify a goal aiGoal, and in XS script, if aiGoal is equal to something, you set trigger variable someVar, and in triggers, if that trigger variable is equal to something, you play a dialogue or something

I don’t know how to use xs.

Hey, I noticed that this AI code works only when I pay them off. If I delay a payment, there is no problem. The enemy keeps asking for tribute.

I also notice that 1 of the two timers I display disappears after some seconds, even if I don’t pay any gold.