Two actions for one effect?

Discuss Chaos Strikes Back for Windows and Linux, an unofficial port of Chaos Strikes Back to PC by Paul Stevens, as well as CSBuild, an associated dungeon editor.

Moderator: Zyx

Forum rules
Please read the Forum rules and policies before posting.
Post Reply
User avatar
Gambit37
Should eat more pies
Posts: 13766
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Two actions for one effect?

Post by Gambit37 »

I'd like to create a floor text that only displays if the player carries a certain object AND is facing a certain direction. To do this, you'd need some way of using one actuator to make another active or inactive. Is this possible?
User avatar
Zyx
DSA Master
Posts: 2592
Joined: Mon Jun 05, 2000 1:53 pm
Location: in the mind
Contact:

Post by Zyx »

Create two pressure pads pointing to an AND/OR gate which targets the text.
User avatar
Gambit37
Should eat more pies
Posts: 13766
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Post by Gambit37 »

Doh! Yeah of course. Gotta get used to thinking less literally with dungeon building!
User avatar
Paul Stevens
CSBwin Guru
Posts: 4322
Joined: Sun Apr 08, 2001 6:00 pm
Location: Madison, Wisconsin, USA

Post by Paul Stevens »

using one actuator to make another active or inactive
thinking less literally
Your thinking is quite right. Using one bit of
an AND/OR gate can be thought of as making
it active or inactive. If, for example, the target value
is zero, then setting bit 0 makes any of the other bits
totally ineffective. Exactly like making the gate 'inactive'
as far as the other bits are concerned.
Clearing bit 0 then makes it 'active' again.

It is just a matter of deciding how it is easiest to
think about the gate. Circumstances make it easier
think one way or another, depending on the problem to
be solved and your mental 'take' on the solution.
Post Reply

Return to “Chaos Strikes Back for Windows & Linux (CSBWin) / CSBuild”