LUA multiple lines comment

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
Post Reply
User avatar
cromcrom
Posts: 549
Joined: Tue Sep 11, 2012 7:16 am
Location: Chateauroux in a socialist s#!$*&% formerly known as "France"

LUA multiple lines comment

Post by cromcrom »

Multiple lines comments:
--[[
this is commented
so is this
--]]

then, easy way to try the commented stuf is adding one - at the beginning
---[[
this is uncommented
so is this
--]]

I wanted to share, because I used to only use
--
to comment/uncomment,

and thought it might be usefull :-)
A trip of a thousand leagues starts with a step.
User avatar
SnowyOwl47
Posts: 148
Joined: Fri Sep 12, 2014 10:41 pm

Re: LUA multiple lines comment

Post by SnowyOwl47 »

You can also use those with other things such as:

hudPrint([[
Some
text
bla
bla
bla]])
Post Reply