Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

Semi simple question.

Page: 1 of 1
 harark1
04-18-2011, 8:19 PM
#1
I need to know how can I start a dialouge when I walk past a certian spot in a module. Specificlly making a script that triggers a dialouge when I walk past a spot.

Also i need to know how I can make a script that makes a dialouge entry unseable when you get a journal entry, so you can't reaccept the quest over and over.
 Fallen Guardian
04-18-2011, 8:53 PM
#2
For the walking past a certain spot to use a script you would need to use triggers, which Darth333 has made a tutorial of here.

http://www.lucasforums.com/showthread.php?t=145870)

As for the second you need conditional scripts which TimBob12 made a tutorial of here.

http://www.lucasforums.com/showthread.php?t=206600)

Hope this helped.
 Qui-Gon Glenn
04-18-2011, 10:03 PM
#3
For the first part, it is also possible to do this via scripting only.

If the NPC that you want to initiate the dialog is visible and in the module, use the NPC's OnPerception event, which is quite easy to do. To learn more about this, see my thread (http://www.lucasforums.com/showthread.php?t=206379) on spawning a cloaked NPC. Sadly, the resolution that came about in that thread was lost when LF had the database error, but you will soon see the results in the new issue of Force Fashion K1 :dev14:
Also see tk102's tutorial on UserDefinedEvents (http://www.lucasforums.com/showthread.php?t=143452)
The benefit to this method is that you do not need to repack the module.

As for the second part, yes TB12's tut is excellent :D
 Fallen Guardian
04-18-2011, 10:39 PM
#4
How could I forget about that? You showed me yourself. Yes, Qui-Gon Glenn's way is much better than triggers if you are using an in-game module, or even if you're not.
 harark1
04-19-2011, 4:35 PM
#5
Uh question would the on perception still work if they are on the otherside of a closed door? Or should I use trigger for this?
 newbiemodder
04-19-2011, 6:50 PM
#6
if you want the dialog to fire when the door is opened you can put the dialog script on the OnOpen script parameter of that particular door.
 harark1
04-19-2011, 7:43 PM
#7
No what happens is you walk into a room and when you enter this dark jedi talks to you telepathicly and the door closes and locks behind you. So what would be best for that? I'm thinking a trigger but you guys know more then me.
 Canderis
04-19-2011, 7:59 PM
#8
Do you want this event to start right when you open the door, or once you enter the room?
 Qui-Gon Glenn
04-23-2011, 3:51 PM
#9
No what happens is you walk into a room and when you enter this dark jedi talks to you telepathicly and the door closes and locks behind you. So what would be best for that? I'm thinking a trigger but you guys know more then me.

A trigger or an invisible placeable would work equivalently.

For the "telepathic" conversation, you would need to start a conversation with the ethereal DJ. Otherwise I think it would be a bit weird, and possibly difficult to get your VO at the right volume to be heard clearly over in-game music and not be jarringly loud for a *telepathic* conversation.

So, you walk into the room, deep enough to either be "perceived" by the invisible placeable/NPC, or to set off a trigger you have placed. This initiates your "telepathic" conversation, which concludes with a script that locks the door. Really, not too difficult either way, although adding a camera shot of a "locking door" into the cinematic conversation will involve camera editing, which is not something I have tackled to-date.
Page: 1 of 1