Page 1 of 1
lever to block possible?
Posted: Sun Dec 13, 2009 2:01 am
by RAF68
I would like to know if it would be possible to make that a lever is to block that it cannot be to lower, until an action makes it possible to lower, I have to test but that does not go, somebody could help me
Re: lever to block possible?
Posted: Sun Dec 13, 2009 4:05 am
by Trego
I'm guessing you have a lever that it (pointing) up, on click it is to stay (pointing) up, unless the heroes have completed/finished a different action or task.
Clone a wall_item, rename it (eg fake lever) and give it the image of your lever 'up'. Place this on your wall as active/visible.
Place the real lever on the same wall have this as inactive/invisible, and set the triggers and actions of this to what you want, eg triggered by hand, deactivate, targets the door or wall.
Have your action eg place item in alcove (in a different part of your dungeon), this alcove is a trigger to toggle the fake and real levers.
You may want the action to trigger a relay before the fake and real levers.
If you mean Action such as Attack Method, that is a little more complicated.
Re: lever to block possible?
Posted: Sun Dec 13, 2009 4:35 am
by RAF68
can you make me an example a .txt or other? thank you
Re: lever to block possible?
Posted: Sun Dec 13, 2009 1:30 pm
by Gambit37
Is that right Trego? Can't you just have a normal lever and set it to inactive? Why the need to clone?
Re: lever to block possible?
Posted: Sun Dec 13, 2009 1:45 pm
by beowuuf
I think the 'toggle' function toggles the graphic instead of toggling it invisible and visible if I remember correctly. I could be mistaken.
Re: lever to block possible?
Posted: Sun Dec 13, 2009 2:03 pm
by Lord_BoNes
TOGGLE is for visibility.
Re: lever to block possible?
Posted: Sun Dec 13, 2009 2:13 pm
by beowuuf
Yeah, i just thought the engine went weird with alternate graphics items and toggled their state instead of visiblility. Maybe it was something else I'm thinking of....their was some strange exception somewhere...
Re: lever to block possible?
Posted: Sun Dec 13, 2009 2:24 pm
by Trego
Gambit37 wrote:Is that right Trego? Can't you just have a normal lever and set it to inactive? Why the need to clone?
The clone will mean that the lever stays up, ie doesn't change to its alternate graphic on click to the down graphic. I think that was what was wanted
Inactive does mean invisible (although as said there could be exceptions).
Re: lever to block possible?
Posted: Sun Dec 13, 2009 2:27 pm
by RAF68
somebody who would be to do it could make me an example in .txt. or other thank you very much

Re: lever to block possible?
Posted: Sun Dec 13, 2009 2:36 pm
by Lord_BoNes
I think that you're spot on the money Trego. I use 2 clones though, one for the down graphic and one for the up. Then you have one start out as inactive, and use TOGGLE to flip between the two. Just watch out... occasionally, this happens:
They activate, then they flip (toggle) and the same mouse click triggers the "new" switch, causing them to flip back.
Re: lever to block possible?
Posted: Sun Dec 13, 2009 2:49 pm
by Trego
RAF68 wrote:somebody who would be to do it could make me an example in .txt. or other thank you very much

Sorry I'm away from my RTC editor at the moment (due to holidays and in-laws visit), but i can do this if someone else hasn't by the time I get back to it.
Lord_BoNes wrote:...2 clones ...
That would make it easier, but then will this new 'down' lever be able to clicked again to reverse its action or will it be locked on the down image?
Re: lever to block possible?
Posted: Sun Dec 13, 2009 2:56 pm
by Lord_BoNes
If you just toggle the two objects... so you place both objects on the one wall, one inactive. Then toggle BOTH of them, the one that was visible, becomes invisible and vice versa. If you want to flip back, you just make the second switch work like the first (in reverse where needed).
The issue is... for EG: you have the up one activate, the up becomes inactive, the down becomes the active one, then THE SAME MOUSE CLICK triggers the down switch, and it flips back INSTANTLY! In this case, the switch doesn't even appear to change, but it DOES trigger twice.
Re: lever to block possible?
Posted: Sun Dec 13, 2009 4:08 pm
by RAF68
do I have already to test that Lord bones but doesn't that go, you cannot make me an example Lord bones?
Re: lever to block possible?
Posted: Sun Dec 13, 2009 6:54 pm
by Lord_BoNes
In all honesty, I've been sick for more than 10 days now... I WILL make you an example map, I just don't feel up to it right now. But, hang in there.... it's on its way.
Re: lever to block possible?
Posted: Sun Dec 13, 2009 9:26 pm
by RAF68
ok thank you very much Lord bones
Re: lever to block possible?
Posted: Thu Dec 17, 2009 3:59 pm
by Gambit37
We discussed this before. I forgot that Inactive does different things depending on the type of wallitem.
I honestly think this should be changed. INACTIVE is something completely different from INVISIBLE and as it stands it's confusing and unintuitive. If I want to make something INACTIVE, it shouldn't disappear, it should just become, you know, inactive.
Re: lever to block possible?
Posted: Mon Dec 21, 2009 10:43 pm
by RAF68
made me of the examples in .txt or other thank you
Re: lever to block possible?
Posted: Mon Dec 21, 2009 10:51 pm
by Gambit37
Have you actually tried to do this yourself yet? There is plenty of help in this thread. It's a bit unfair on every one else if you just expect us to do all the hard work for you.
Re: lever to block possible?
Posted: Tue Dec 22, 2009 9:27 pm
by RAF68
it is true you are right gambit, I will study in detail that the others wrote, thank you