|
Senior Member
Join Date: Sep 2015
Posts: 435
|
I'm trying to write a script to add +2 to all Knowledge checks (whether trained or not). I've found similar code in a different trait and I'm using that code. I think I understand what the original script is doing, but my script doesn't work — it doesn't add anything to the Knowledge skills (or at least, the bonus doesn't show up when I hover over the "?" for a given Knowledge skill on the Skills tab).
I'd like to print some of the intermediate script values so I can ensure they contain what I think they should. (Actually, what I really want to do is set a breakpoint and single-step the code, but I know that isn't going to happen!) Is there any kind of print statement that I can put into the script that will cause the output to appear in a "console" or "log" window? Thanks! |
#1 |
Senior Member
Join Date: Feb 2015
Posts: 676
|
Quote:
"debug XYZ" will cause XYZ to appear in the debug log. You'll need to go to the Develop menu and turn on the "Enable File Debugging" option, then you'll find it in Develop -> Floating Info Windows -> Show Debug Output. "notify XYZ" will cause a popup modal with XYZ to appear at runtime, and is more suited for quick-and-dirty debugging tasks, but has limited space and isn't always helpful when you're dealing with loops. |
|
#2 |
Senior Member
Join Date: Sep 2015
Posts: 435
|
Excellent. Thanks for the quick reply!
|
#3 |
|
|