Page 1 of 1

Need help with scripting

Posted: Sat Dec 08, 2012 10:30 pm
by Mutman
Hi,
i need help with simple puzzle. I have 11 alcoves and i need to check if in three of them is specified item to open the door. I can script that, but in addition i need to block opening of the door if in other alcove(s) are items and i cant do that. I need that in these three alcoves are specified items and other alcoves are empty. Could someone help please? Thanks

Re: Need help with scripting

Posted: Sat Dec 08, 2012 10:46 pm
by Brodie301
Maybe this will help:

viewtopic.php?f=14&t=4437

It's for a more complex alcove puzzle than just a item or two and that's all I've done so far is an item or two.

Re: Need help with scripting

Posted: Sat Dec 08, 2012 11:22 pm
by Komag
You could have all the 8 connect to a counter with proper increment decrement links, with a count starting at 0, and when you check about the other three, also check to be sure that counter value is still 0 :) Have those alcoves NOT activate always, so the counter is only adjusted if it changes from being empty or not

Re: Need help with scripting

Posted: Sun Dec 09, 2012 12:56 am
by Mutman
Komag wrote:You could have all the 8 connect to a counter with proper increment decrement links, with a count starting at 0, and when you check about the other three, also check to be sure that counter value is still 0 :) Have those alcoves NOT activate always, so the counter is only adjusted if it changes from being empty or not
Thanks! :) it is working perfectly :) i was trying to make it by script for about 2 hours and now its working only by using 2 counters :) awesome :)