This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
modding:tutorials:dialog-hail [2021/05/07 18:28] – created jazzy | modding:tutorials:dialog-hail [2021/05/07 22:39] (current) – [Wrap Up] jazzy | ||
---|---|---|---|
Line 25: | Line 25: | ||
The default module-level dialog tree for a ship is set at the Module level in the Vessels menu. Inside a Vessel, you can set the default dialog tree in the NPC menu. This means that neutral and allied ships will pull from the Generic tree and the Daichi will pull from the Daichi tree. | The default module-level dialog tree for a ship is set at the Module level in the Vessels menu. Inside a Vessel, you can set the default dialog tree in the NPC menu. This means that neutral and allied ships will pull from the Generic tree and the Daichi will pull from the Daichi tree. | ||
- | Inside these Module level trees there are several Dialog Groups. | + | Inside these Module level trees there are several Dialog Groups. |
===== 02: How Dialog & Object Settings are Loaded ===== | ===== 02: How Dialog & Object Settings are Loaded ===== | ||
Line 33: | Line 33: | ||
In your module, at the module level, you add a Dialog called Daichi. Since your module loads next, all Darts in your missions (not missions inside the Horizons module) will load up your version of the Daichi default dialog. | In your module, at the module level, you add a Dialog called Daichi. Since your module loads next, all Darts in your missions (not missions inside the Horizons module) will load up your version of the Daichi default dialog. | ||
- | In your module, you edit the Map Objects to create an object called Dart Commander. It is a Dart so it is pulling the default Daichi dialog as outlined above. If your module has a Dialog Group called Main inside the Daichi dialog, those topics will be the hailing options for this Dart Commander. If you didn't include a Dialog Group called Main inside of your Diachi dialog, that specific dialog group will default to what is at the Horizons level. | + | In your module, you edit the Map Objects to create an object called Dart Commander |
Okay but this guy is a Dart Commander. You don't want his dialog to be the same as all other Daichi. Again, at the module level, you edit the Dart Commander Object. In the Dialog tab of the Edit Object menu, you press Add Dialog Group and name it Main. What happens at the mission start is that the Dart Commander initially loads Horizons/ | Okay but this guy is a Dart Commander. You don't want his dialog to be the same as all other Daichi. Again, at the module level, you edit the Dart Commander Object. In the Dialog tab of the Edit Object menu, you press Add Dialog Group and name it Main. What happens at the mission start is that the Dart Commander initially loads Horizons/ | ||
Line 47: | Line 47: | ||
Well, this is cool. We want those missiles. Good mission design would require us to be informed about this opportunity before we can ask the Dart Commander about it. We create an object inside our mission that is the Dart Commander, same as the last example in the last section. | Well, this is cool. We want those missiles. Good mission design would require us to be informed about this opportunity before we can ask the Dart Commander about it. We create an object inside our mission that is the Dart Commander, same as the last example in the last section. | ||
+ | |||
+ | == The Dart Commander' | ||
+ | {{: | ||
We DO NOT need to create a Main dialog group because inheriting the one at the YourModule level is just fine. Let's add a Dialog Group called "About Those Missiles" | We DO NOT need to create a Main dialog group because inheriting the one at the YourModule level is just fine. Let's add a Dialog Group called "About Those Missiles" | ||
Create a Dialog Group called " | Create a Dialog Group called " | ||
+ | {{ : | ||
Create a Dialog Group called " | Create a Dialog Group called " | ||
+ | |||
+ | {{: | ||
+ | == The Dart Commander' | ||
Make an [[modding: | Make an [[modding: | ||
Line 61: | Line 68: | ||
===== 04: Switching Hailing Topics Mid Mission - Part 2: The Trigger ===== | ===== 04: Switching Hailing Topics Mid Mission - Part 2: The Trigger ===== | ||
Now your Dart Commander has his custom tree...but when you hail him you will still see the Main topics that it is inheriting. We fix this in an Event Action or a Dialog Action. To keep this example going, let's edit the dialog for our Informat Object (yep, go create him too). | Now your Dart Commander has his custom tree...but when you hail him you will still see the Main topics that it is inheriting. We fix this in an Event Action or a Dialog Action. To keep this example going, let's edit the dialog for our Informat Object (yep, go create him too). | ||
+ | |||
+ | **The Informant' | ||
+ | {{: | ||
Create a Dialog Group called " | Create a Dialog Group called " | ||
Line 68: | Line 78: | ||
Create a Dialog Group called "I Know a Guy" with text that reads "I know someone who can help you out. An old Daichi Dart Commander who is trying to save for retirement. He is selling off their surplus missiles." | Create a Dialog Group called "I Know a Guy" with text that reads "I know someone who can help you out. An old Daichi Dart Commander who is trying to save for retirement. He is selling off their surplus missiles." | ||
+ | {{: | ||
Create a Dialog Group called " | Create a Dialog Group called " | ||
Line 73: | Line 84: | ||
This one was pretty deep down the rabbit hole. While the examples add a lot of text to this tutorial, it is helpful to see how something like this can be used and the specifics of building it. | This one was pretty deep down the rabbit hole. While the examples add a lot of text to this tutorial, it is helpful to see how something like this can be used and the specifics of building it. | ||
- | If you notice that you don' | + | == Why Can' |
- | This is a lot. If you have questions, come ask them on the [[https://discord.gg/tM9NpqS|Discord Server]] or DM me on Discord @Jazzy#0858. | + | If you notice that you don't see Map Objects in the Module/Maps menu, that is because that isn't currently exposed. These objects are in the XML file though. Look in your .../ |
- | Dialog Tutorials | [[modding: | + | == Looking for Help or Advice? == |
+ | |||
+ | This is a lot. If you have questions, come ask them on the [[https:// | ||
+ | \\ \\ | ||
+ | Dialog Tutorials | [[modding: |