Home    LittleBigPlanet 1 - PSP - Tearaway -Run Sackboy Run    LittleBigPlanet PSP    [PSP] Ideas and Projects [Archive]
#1

Multiple Magic Mouths

Archive: 10 posts


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...
2010-07-06 19:45:00

Author:
Unknown User


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
2010-07-06 21:13:00

Author:
The Forgotten
Posts: 316


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

Author:
CyberSora
Posts: 5551


i use perma switches, chains and no dissolve material.

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

{o}~-----{_}------{_}------[___]

[o-_____o-______o-]

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
2010-07-07 00:10:00

Author:
Alismuffin
Posts: 1328


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
2010-07-07 00:16:00

Author:
Alismuffin
Posts: 1328


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.
2010-07-07 00:20:00

Author:
Alismuffin
Posts: 1328


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
2010-07-07 00:27:00

Author:
Alismuffin
Posts: 1328


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
2010-07-07 00:33:00

Author:
Alismuffin
Posts: 1328


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!
2010-07-07 00:40:00

Author:
Alismuffin
Posts: 1328


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!2010-07-08 02:15:00

Author:
Unknown User


LBPCentral Archive Statistics
Posts: 1077139    Threads: 69970    Members: 9661    Archive-Date: 2019-01-19

Datenschutz
Aus dem Archiv wurden alle persönlichen Daten wie Name, Anschrift, Email etc. - aber auch sämtliche Inhalte wie z.B. persönliche Nachrichten - entfernt.
Die Nutzung dieser Webseite erfolgt ohne Speicherung personenbezogener Daten. Es werden keinerlei Cookies, Logs, 3rd-Party-Plugins etc. verwendet.