Yarn icon indicating copy to clipboard operation
Yarn copied to clipboard

<<print $var >> not working

Open eporral1 opened this issue 8 years ago • 2 comments

Is it possible to print the content of a variable ?

eporral1 avatar Oct 11 '16 19:10 eporral1

Not at this time, this may be possible in the near future when we port to electron and implement bondage.js however.

addie-lombardo avatar Jun 13 '18 02:06 addie-lombardo

Yes, I can potentially add this

I wrote some code for bondage.js to be able retrieve the contents of <<>> as a string, while the story is parsed. This has not been merged yet, but if it does- It will enable me to add it to yarn's electron port's new tester :)

To print variables, I think we need to add a new command to bondage.js or get access to the variables. I havent looked into that yet. Not sure if it should be done via <<print $var>> or just add a debugger pannel that shows all variables to the story tester here https://github.com/InfiniteAmmoInc/Yarn/pull/68

blurymind avatar Jun 13 '18 13:06 blurymind