Kurt J. said:
Kevin S. said:
Currently 3.8.6 on the one click install is outputting all expanded conditional statements to the log. Can this be turned off, it really jams up the log during a session?
Yes, it is a mistake that the log command was left in there. It will be removed in the next one-click version.
Great thank you. If possible to add a --debug or something command that would be great to see the output yet when you need it.
Also, anyone able to help with this. I have a script that when I click to run it while editing it works. As soon as I hit the checkbox to be done editing it just outputs the text of the script to chat and doesn't run the powercard api anymore
!power {{
--whisper|self
--replacement|?{Direction?|
Spell to Points, ?{Spell Level|
1st, StoP1 |
2nd, StoP2 |
3rd, StoP3 } |
Points to Spell, ?{Spell Level |
1st (2), PtoS1 |
2nd (3), PtoS2 |
3rd (5), PtoS3 }
}
--name|Flexible Casting
--leftsub|~DIR$
--rightsub|Bonus Action
--?! "~DIR$" -eq "Spell to Points" !? Converting:| ~Lvl$ level spell to ~Points$ Sorcery Point
--?! "~DIR$" -eq "Points to Spell" !? Converting:| ~Points$ Sorcery Points to ~Lvl$ level slot
--?! "~DIR$" -eq "Spell to Points" !? api_setattr|_name Leland _mod _evaluate _~ATR$|-1 _class_resource|~Points$
--?! "~DIR$" -eq "Points to Spell" !? api_setattr|_name Leland _mod _evaluate _~ATR$|1 _class_resource|-~Points$
}}
And here is what ends up in chat:
!power {{
--whisper|self
--replacement| StoP1
--name|Flexible Casting
--leftsub|~DIR$
--rightsub|Bonus Action
--?! "~DIR$" -eq "Spell to Points" !? Converting:| ~Lvl$ level spell to ~Points$ Sorcery Point
--?! "~DIR$" -eq "Points to Spell" !? Converting:| ~Points$ Sorcery Points to ~Lvl$ level slot
--?! "~DIR$" -eq "Spell to Points" !? api_setattr|_name Leland _mod _evaluate _~ATR$|-1 _class_resource|~Points$
--?! "~DIR$" -eq "Points to Spell" !? api_setattr|_name Leland _mod _evaluate _~ATR$|1 _class_resource|-~Points$
}}
From looking at the chat output and the console log it seems that after I close editing it is only doing the replacement on the first line, not the other lines of the program