Search found 10 matches

by Babby Tutel
Fri Jan 04, 2013 11:54 pm
Forum: Modding
Topic: Lever Puzzle Scripting Help
Replies: 25
Views: 24067

Re: Lever Puzzle Scripting Help

If that's the case, then I say go for it.
by Babby Tutel
Fri Jan 04, 2013 11:09 pm
Forum: Modding
Topic: Lever Puzzle Scripting Help
Replies: 25
Views: 24067

Re: Lever Puzzle Scripting Help

Shit. This is why I need to stop bringing my laptop to bed. You're right about 6 being no better than 5. I will, though, go to 8 levers and changing the way they activate eachother. Now that I look at it most numbers can easily be solved in just two or three lever pulls if done in the previous forma...
by Babby Tutel
Fri Jan 04, 2013 6:55 am
Forum: Modding
Topic: Lever Puzzle Scripting Help
Replies: 25
Views: 24067

Re: Lever Puzzle Scripting Help

Well after toying with the map a bit I realized five levers is a terrible number because you solve it just by hitting the first and fourth levers. So I extended it to six, and used Das's code out of curiosity since I probably want to be able to easily edit the code if need be. Code works fine, but i...
by Babby Tutel
Fri Jan 04, 2013 2:33 am
Forum: Modding
Topic: Lever Puzzle Scripting Help
Replies: 25
Views: 24067

Re: Lever Puzzle Scripting Help

Thanks for the other script, dasarby but the hidden plate script functions fine, so I have no need to change it. I will, however, save yours-- it'll be helpful in the future when I don't need to beg for scripting help. :)
by Babby Tutel
Fri Jan 04, 2013 1:47 am
Forum: Modding
Topic: Lever Puzzle Scripting Help
Replies: 25
Views: 24067

Re: Lever Puzzle Scripting Help

It works beautifully. I would never expect this to require such a lengthy script; the more you know, right?

I want to once again say thank you. If there's anything I could give in return, just ask.
by Babby Tutel
Fri Jan 04, 2013 1:29 am
Forum: Modding
Topic: Lever Puzzle Scripting Help
Replies: 25
Views: 24067

Re: Lever Puzzle Scripting Help

These replies have been amazingly helpful. After a long day, this is a sight for sore eyes.

I'll be testing Grimwold's script momentarily, thank you both for going to the work of actually assembling it.
by Babby Tutel
Thu Jan 03, 2013 5:56 am
Forum: Modding
Topic: Lever Puzzle Scripting Help
Replies: 25
Views: 24067

Re: Lever Puzzle Scripting Help

Couldn't sleep so I checked the thread. Should I add in 'break', or does that halt the entire script? Also, same question, would giving each lever it's own script take the load off, as I could simply break the loop for the involved levers for each script rather than code timers for each toggle in th...
by Babby Tutel
Thu Jan 03, 2013 5:00 am
Forum: Modding
Topic: Lever Puzzle Scripting Help
Replies: 25
Views: 24067

Re: Lever Puzzle Scripting Help

I get a stack overflow at the second line of code (lever2:toggle()) no matter which lever I touch. I was originally giving each lever it's own unique script, could that be a preventative?

Hitting the bricks, will check in the morning for replies. Any help is appreciated.
by Babby Tutel
Thu Jan 03, 2013 4:23 am
Forum: Modding
Topic: Lever Puzzle Scripting Help
Replies: 25
Views: 24067

Re: Lever Puzzle Scripting Help

Thanks for the replies, guys. I was going about the script completely wrong. I'll post later if there are any problems.
by Babby Tutel
Wed Jan 02, 2013 9:59 pm
Forum: Modding
Topic: Lever Puzzle Scripting Help
Replies: 25
Views: 24067

Lever Puzzle Scripting Help

Hey guys. New to both modding and Lua, but I'm trying to make a sort of "test map" for myself, without using many custom assets and trying to use some simplistic scripts. I want to have a lever puzzle where you must turn a set of five levers from "deactivated" to "activated&...