lever to block possible?

Questions about how to create your own dungeons and replacement graphics and sounds.

Moderator: George Gilbert

Forum rules
Please read the Forum rules and policies before posting.
Post Reply
User avatar
RAF68
Lo Master
Posts: 408
Joined: Fri Jul 10, 2009 6:13 pm
Location: FRENCH
Contact:

lever to block possible?

Post 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
User avatar
Trego
Artisan
Posts: 174
Joined: Tue May 26, 2009 2:03 pm
Location: Brunei

Re: lever to block possible?

Post 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.
It's not a bug in the program, I've just gone and done something weird.
User avatar
RAF68
Lo Master
Posts: 408
Joined: Fri Jul 10, 2009 6:13 pm
Location: FRENCH
Contact:

Re: lever to block possible?

Post by RAF68 »

can you make me an example a .txt or other? thank you
User avatar
Gambit37
Should eat more pies
Posts: 13715
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Re: lever to block possible?

Post by Gambit37 »

Is that right Trego? Can't you just have a normal lever and set it to inactive? Why the need to clone?
User avatar
beowuuf
Archmastiff
Posts: 20687
Joined: Sat Sep 16, 2000 2:00 pm
Location: Basingstoke, UK

Re: lever to block possible?

Post 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.
User avatar
Lord_BoNes
Jack of all trades
Posts: 1064
Joined: Mon Dec 01, 2008 12:36 pm
Location: Ararat, Australia.

Re: lever to block possible?

Post by Lord_BoNes »

TOGGLE is for visibility.
 
Image

1 death is a tragedy,
10,000,000 deaths is a statistic.
- Joseph Stalin

Check out my Return to Chaos dungeon launcher
And my Dungeon Master Clone
User avatar
beowuuf
Archmastiff
Posts: 20687
Joined: Sat Sep 16, 2000 2:00 pm
Location: Basingstoke, UK

Re: lever to block possible?

Post 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...
User avatar
Trego
Artisan
Posts: 174
Joined: Tue May 26, 2009 2:03 pm
Location: Brunei

Re: lever to block possible?

Post 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).
It's not a bug in the program, I've just gone and done something weird.
User avatar
RAF68
Lo Master
Posts: 408
Joined: Fri Jul 10, 2009 6:13 pm
Location: FRENCH
Contact:

Re: lever to block possible?

Post by RAF68 »

somebody who would be to do it could make me an example in .txt. or other thank you very much :)
User avatar
Lord_BoNes
Jack of all trades
Posts: 1064
Joined: Mon Dec 01, 2008 12:36 pm
Location: Ararat, Australia.

Re: lever to block possible?

Post 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.
 
Image

1 death is a tragedy,
10,000,000 deaths is a statistic.
- Joseph Stalin

Check out my Return to Chaos dungeon launcher
And my Dungeon Master Clone
User avatar
Trego
Artisan
Posts: 174
Joined: Tue May 26, 2009 2:03 pm
Location: Brunei

Re: lever to block possible?

Post 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?
It's not a bug in the program, I've just gone and done something weird.
User avatar
Lord_BoNes
Jack of all trades
Posts: 1064
Joined: Mon Dec 01, 2008 12:36 pm
Location: Ararat, Australia.

Re: lever to block possible?

Post 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.
 
Image

1 death is a tragedy,
10,000,000 deaths is a statistic.
- Joseph Stalin

Check out my Return to Chaos dungeon launcher
And my Dungeon Master Clone
User avatar
RAF68
Lo Master
Posts: 408
Joined: Fri Jul 10, 2009 6:13 pm
Location: FRENCH
Contact:

Re: lever to block possible?

Post by RAF68 »

do I have already to test that Lord bones but doesn't that go, you cannot make me an example Lord bones?
User avatar
Lord_BoNes
Jack of all trades
Posts: 1064
Joined: Mon Dec 01, 2008 12:36 pm
Location: Ararat, Australia.

Re: lever to block possible?

Post 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.
 
Image

1 death is a tragedy,
10,000,000 deaths is a statistic.
- Joseph Stalin

Check out my Return to Chaos dungeon launcher
And my Dungeon Master Clone
User avatar
RAF68
Lo Master
Posts: 408
Joined: Fri Jul 10, 2009 6:13 pm
Location: FRENCH
Contact:

Re: lever to block possible?

Post by RAF68 »

ok thank you very much Lord bones
User avatar
Gambit37
Should eat more pies
Posts: 13715
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Re: lever to block possible?

Post 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.
User avatar
RAF68
Lo Master
Posts: 408
Joined: Fri Jul 10, 2009 6:13 pm
Location: FRENCH
Contact:

Re: lever to block possible?

Post by RAF68 »

made me of the examples in .txt or other thank you
User avatar
Gambit37
Should eat more pies
Posts: 13715
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Re: lever to block possible?

Post 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.
User avatar
RAF68
Lo Master
Posts: 408
Joined: Fri Jul 10, 2009 6:13 pm
Location: FRENCH
Contact:

Re: lever to block possible?

Post by RAF68 »

it is true you are right gambit, I will study in detail that the others wrote, thank you
Post Reply