PDA

View Full Version : Console command in script block



dberkompas
April 26th, 2015, 19:43
When I try to use the console command, I get the following command.

I'm trying to use it inside a <script> block.

local testString = "MyStringTest";
console(testString);

Runtime Notice: Reloading ruleset
Script Error: [string "adventures"]:1: attempt to index field 'actions_iedit' (a nil value)
(I'm still playing around with adding tabs and data for Adventurers League logs, and this one doesn't concern me yet)

Script Error: [string "adventures_iedit"]:1: attempt to call global 'console' (a nil value)



BoomerET

Trenloe
April 26th, 2015, 19:48
console is part of the Debug package: https://www.fantasygrounds.com/refdoc/Debug.xcp you need to call it as Debug.console

dberkompas
April 26th, 2015, 20:03
Thanks Trenloe,

Tried giving you more rep, but it says I need to spread it around.


BoomerET

damned
April 27th, 2015, 12:39
Thanks Trenloe,

Tried giving you more rep, but it says I need to spread it around.


BoomerET

Thats not too hard. Lots of people posting really great stuff. Next extensions, new artwork, new tips etc :)