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!
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!