Code: Select all
objectIDs = {}
object["151781"] = {...}
Code: Select all
objectIDs = {}
object["151781"] = {...}
Sure. However, the issue isn't just ambiguity. The reason these don't work:Isaac wrote:The same in this (and most) context, but one has to use bracket/quotes if the key name is for any reason ambiguous.
Code: Select all
objectIDs = {} object["151781"] = {...}
Code: Select all
table.1cow = 3
table.dead beef = 5
table.while = 7If anyone thinks that, they're nuts, because the whole point of this subforum is to answer questions.FeMaiden wrote:all right. understood.
apparently, at least one of you thinks I'm spending too much time asking questions.
if you guys noticed in some of my posts i asked a question and then 10 minutes later, found the answer out on my own.Azel wrote:I don't think you're asking too many questions, FeMaiden. I just think that you're selling yourself short by asking before engaging in the trial/error process. Getting answers to questions isn't as valuable as discovering something on your own.
But by all means, ask away!
I faced a similar challenge. To remedy that, I resorted to taking small steps:if you guys just wrote all my scripts for me, i would have ended up copy pasting them in my mod and then having no idea how to fix them if anything went wrong.
I completely understand. A wall of text is useless. That's why starting small always helps. The moment you start connecting objects together in the Grimrock Editor using LUA Script, the more the scripting references become less a wall of text and more an actual guide.when he told me to go to the scripting refernce page, I looked at it and it was just a wall of text (all greek to me). it looked like just a list of all the commands but with no explanation of the syntax, how was i supped to use it?
I tried looking through the forum for a lot of the answers before asking them. I guess I'm just not that good at it.
I am the last person to advocate for complete silence lolmaybe I was just looking for a "community". other likeminded gamers to talk to.
yeah, i could have stayed silent and just googled searched all my answers...probably would have given up and just played something else.
This is not true. It's the exact same language. Grimrock neither adds nor removes any language features that I know of. Just don't confuse language features with, say, global functions (e.g. the coroutine library is not available in Grimrock).FeMaiden wrote:the lua manual confused me because many of the commands and syntax rules seemed to be different from what I see in the editor.
The lua manual seems to be more instructions on the basic generalized lua programming language, while lua that is in the editor is slighty more specific to this game.
To be fair, that's true of about 95% of the web! Using Google search always seems to provide better results than a website's built-in search...minmay wrote:For searching the forum you should probably use Google. phpBB's search is really bad.