juniper-wright / UtopianEngine

The Simple Text Adventure Game Engine
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

UtopiaScript - Output Text #10

Closed juniper-wright closed 11 years ago

juniper-wright commented 11 years ago

This is a feature request for the UtopiaScript parser. References #1.

juniper-wright commented 11 years ago

Syntax for function:

print Text to be printed. "quotes" can appear escaped by another quote.\nLine breaks are facilitated via\nAll other characters are valid."

Everything on the line after "print " (that's a space character) will be printed.

juniper-wright commented 11 years ago

Via the Rhino javascript engine, this can be accomplished via:

print("The text to be printed!");

inside of the JavaScript string.

juniper-wright commented 11 years ago

This issue needs to be reopened, thanks to the decision to add a function to UtopiaScript:

print string to be printed! No characters are banned except semicolon.;
println Semicolons (\;) need to be escaped. nbd.;

This is to facilitate simple games using ONLY UtopiaScript, without the need for JavaScript at all.