The code in the second post shows how to check the contents of an alcove for an item.
What you need is a trigger - if you read this post viewtopic.php?f=14&t=3063 you will see we have 2 alcoves, 1 button that triggers checking the contents of one alcove and puts something in the second if conditions are met. rather than adding to the second alcove, you could look to advance a counter if there are multiple items in alcoves needed, or use the activate() method on the door object you want to open.
Komag has been very helpful to other here and I really dont think he was trying to be rude, but you are asking things and it is obvious that either you have not looked at the basic operations, or have missed the point somewhat - namely with connectors. Understanding how these are used might help to explain how some triggers occur - otherwise you end up looking at event hooks which then means you need to cloneobjects etc which is more complicated than it needs to be. Plus text is a fickle medium - one persons typing sound harsh to another sometimes even when it is not meant that way.
That said, I always like to jump in the deep end too so feel free to ask - people will help - and maybe start putting up some code snippets so we can see better what your asking, or help you in the right direction
Note_2 Error Bug and multiple trigger question
-
- Posts: 13
- Joined: Sun Jun 24, 2012 11:49 pm
Re: Note_2 Error Bug and multiple trigger question
My apologies to you Komag, you're right Shroom about how text can much more harsh than actual tone of words. I'm not normally rude, and I realize you and Kmag were only helping. I'll do some more research some more. I do like how this is shaping up. thx for the help from both you and Komag.
Re: Note_2 Error Bug and multiple trigger question
Yeah, the editor is pretty flexible and the lua scripts make nearly anything possible, it's pretty fun. Can't wait till we get some seriously impressive new dungeons over the next weeks/months
Finished Dungeons - complete mods to play
-
- Posts: 13
- Joined: Sun Jun 24, 2012 11:49 pm
Re: Note_2 Error Bug and multiple trigger question
Well the thing is that LUA can be so frustrating when you don't know anything about it. However when looking at the LUA on Word it doesn't look that hard to learn. But I'm guessing the LUA gets challenging when you're adding in multiple effects, triggers, or responders. I will eventually get the hang of it sooner or later. But I'm really eager to learn this.
Re: Note_2 Error Bug and multiple trigger question
Lua is actually pretty easy to learn (good maybe its for me because I'm programming with some other languages for almost 6 years )
But the probelm is that some don't know the very basics like the variable types or the diffrence between local and global variables.
I think they should roughly explain the basics in the script reference.
But the probelm is that some don't know the very basics like the variable types or the diffrence between local and global variables.
I think they should roughly explain the basics in the script reference.
-
- Posts: 13
- Joined: Sun Jun 24, 2012 11:49 pm
Re: Note_2 Error Bug and multiple trigger question
Or you could explain them lol It's always good to learn something, but if you don't know exactly where to start and are completely oblivious to the obvious lol then it can sometimes be frustrating.Magus wrote:Lua is actually pretty easy to learn (good maybe its for me because I'm programming with some other languages for almost 6 years )
But the probelm is that some don't know the very basics like the variable types or the diffrence between local and global variables.
I think they should roughly explain the basics in the script reference.