• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Courageous

Sergeant
43 Badges
Jan 1, 2011
66
0
  • Crusader Kings II
  • Europa Universalis IV
  • Rome: Vae Victis
  • Crusader Kings III: Royal Edition
  • Cities: Skylines
  • Pillars of Eternity
  • Cities: Skylines - After Dark
  • Stellaris
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Knights of Honor
  • Age of Wonders III
  • Stellaris: Humanoids Species Pack
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
  • Stellaris: Distant Stars
  • Age of Wonders: Planetfall
  • Age of Wonders: Planetfall Sign Up
  • Age of Wonders: Planetfall - Revelations
  • Crusader Kings III
  • Supreme Ruler 2020
  • Victoria 2
  • Arsenal of Democracy
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III
  • Divine Wind
  • For The Glory
  • Stellaris: Apocalypse
  • Hearts of Iron III
  • Heir to the Throne
  • Stellaris: Synthetic Dawn
  • Lead and Gold
  • The Kings Crusade
  • Majesty 2
  • Victoria: Revolutions
  • Rome Gold
  • Semper Fi
  • Ship Simulator Extremes
  • Sword of the Stars
Hi.

I'm writing an event that is called from on_yearly_pulse. It's a country event, and I'm in the country scope. I would like to be able to inspect certain parameters (such as minerals and energy). This is just to confirm that limit = and if = operations are working as expected.

I'm not in front of my computer, so I may be off a little bit on syntax, but I'll do my best. Here is what I have tried:

log = "mymod, minerals: [minerals]"

log = "mymod, minerals: [This.minerals]"

The above items generate error.log values of "unknown property." I also tried varying case, and took a stab at GetMinerals. The only examples I can find in the docs of using scopes in a log statement generally show up as [<scope>.GetName]. For exampe: "[This.GetName]". Those are working fine for me. I just need more info than the name of the scope to confirm functionality.

Help?

Is it possible to push these values to the log file? If so, what's the best practice?

Thank you in advance!