View Full Version : Multiple Magic Mouths

No Good Monkey
07-06-2010, 07:45 PM
I'm looking for suggestions on scripting an NPC to respond with different dialog based on external events. An example is the traditional video game Quest Giver's 3 messages:

1. Describe quest to player
2. Remind player to complete the quest
3. Acknowledge the quest's completion

Is there some scripting magic to accomplish this with an NPC and magic mouth(s) remaining in the same location?

Maximum thanks in advance...

The Forgotten
07-06-2010, 09:13 PM
This is relatively easy. Welcome to lbpcentral by the way!
Ok, here's one solution to do all of the above:
1. Hook up a proximity switch to the magic mouth on the character. The magic mouth could be on dissolve material behind the character. The dissolve can be hooked up to a proxy switch that is on the right side of the character so that when you walk away it destroys the magic mouth.
2. Put another proxy switch next to the one you first placed. Make a dissolve-based counter with two dissolve blocks and rig up the magnetic key switch to another magic mouth on dissolve again. Reapeat the second switch on the right but with a two dissolve-based counter.You could put this in the middle so it doesn't dissolve before you read it.
3. Use a permanent switch so that when the 'quest' is complete it activates. Rig this up to a magic mouth not on dissolve.

I think that is everything. This is the most logical way that I can think of right now, I'm sure someone like taffey or AFP would be able to expand it a bit more. If you are unsure about some of the switches and logic used, just go to the logic pack for the ps3, it still is very useful to psp'ers even though we don't use dark matter

07-06-2010, 10:49 PM
Really? I just use a piston, magnetic key switch, a magnetic key, and a sensor set on directional. :)

07-07-2010, 12:10 AM
i use perma switches, chains and no dissolve material.

o = key
o- = key switch
[_] = static block
{_} = dynamic block
--- = Piston



now u just need to make 2 perma switches set to directional and attach each one to a piston

attach the first key switch to ur first mouth, the second key to the second mouth, the third key to the third mouth

07-07-2010, 12:16 AM
so right now one magic mouth should be active, use this one for the quest description

now add a proximity switch a bit after the speaker, not too close though, that activates a perma switch.

So far this is what should happen:
-Player goes to speaker and they gives quest details.
-Player walks past and then comes back
-Speaker gives a reminder to do the quest

07-07-2010, 12:20 AM
Why does this happen?
well after the player walks past the proximity switch the perma switch is activated which pulls a piston on ur logic gate up. now the key changes from being in the proximity of the first key switch to the second.
because of this the first magic mouth is turned off and the second one activated.

07-07-2010, 12:27 AM
So now that we have our quest description and quest reminder figured out, we need our quest complete logic.
now i dont know the objective of ur quest so ill leave it up to u to decide how youll activate the third perma switch.

maybe u have to grab something?

anyways once that perma switch is activated, the next piston should move the key from the second to the third key switch which would activate the third magic mouth

make sure u adjust settings so as:
1. the pistons start out not in

07-07-2010, 12:33 AM
2. The key switches line up w/ the key and are never in the proximity of two switches at once
3. the switches activate the perma switches correctly

07-07-2010, 12:40 AM
now for an alternative method

d = dissolve material

{ o- }
{d o- }
{d o- }
[ o ]

hook up the first key switch w/ the first magic mouth and the second to the 2nd etc

ok now adjust the key switches so as they will only activate wen they are at the bottom

now hook up the first proximity switch to the first dissolvable block. attach the quest complete switch to the next proximity switch. ur all done!

No Good Monkey
07-08-2010, 02:15 AM
Many thanks to all who replied. I especially appreciate the diagrams and step-by-step instructions. You've given me a few methods to try, and I'll certainly look into the PS3 version's logic pack. I'm consistently amazed by what Creators are able to accomplish with these tools!