pub struct DlgNode {Show 26 fields
pub text: GffLocalizedString,
pub script: ResRef,
pub speaker: String,
pub wait_flags: u32,
pub quest: String,
pub quest_entry: u32,
pub plot_index: i32,
pub plot_xp_percentage: f32,
pub delay: u32,
pub fade_type: u8,
pub fade_color: [f32; 3],
pub fade_delay: f32,
pub fade_length: f32,
pub sound: ResRef,
pub vo_resref: ResRef,
pub sound_exists: bool,
pub animations: Vec<DlgAnimation>,
pub listener: String,
pub camera_angle: u32,
pub camera_id: i32,
pub cam_height_offset: f32,
pub tar_height_offset: f32,
pub camera_animation: u16,
pub cam_vid_effect: i32,
pub cam_field_of_view: f32,
pub links: Vec<DlgLink>,
}Expand description
A dialogue node (entry = NPC line, reply = PC choice).
Entry and reply nodes share the same field layout. The difference is which
link list they carry: entry nodes have RepliesList, reply nodes have
EntriesList. The Dlg struct handles serializing the correct field
name based on position.
Fields§
§text: GffLocalizedStringLocalized display text (Text).
script: ResRefScript to run when this node fires (Script).
speaker: StringSpeaker tag override (Speaker).
wait_flags: u32Wait flags (WaitFlags).
quest: StringJournal quest tag (Quest).
quest_entry: u32Journal quest entry ID (QuestEntry).
plot_index: i32Plot index (PlotIndex).
plot_xp_percentage: f32Plot XP percentage (PlotXPPercentage).
delay: u32Delay in milliseconds (Delay).
fade_type: u8Fade type (FadeType).
fade_color: [f32; 3]Fade color as RGB floats (FadeColor). GFF Vector3 type.
fade_delay: f32Fade delay in seconds (FadeDelay).
fade_length: f32Fade length in seconds (FadeLength).
sound: ResRefSound resref (Sound).
vo_resref: ResRefVoice-over resref (VO_ResRef).
sound_exists: boolSound-exists flag (SoundExists).
animations: Vec<DlgAnimation>Per-node animations (AnimList).
listener: StringListener tag override (Listener).
camera_angle: u32Camera angle preset (CameraAngle).
camera_id: i32Static camera ID (CameraID).
cam_height_offset: f32Camera height offset (CamHeightOffset).
tar_height_offset: f32Target height offset (TarHeightOffset).
camera_animation: u16Camera animation ID (CameraAnimation).
cam_vid_effect: i32Camera video effect (CamVidEffect).
cam_field_of_view: f32Camera field of view (CamFieldOfView).
links: Vec<DlgLink>Links to the next nodes. For entry nodes these point into ReplyList;
for reply nodes they point into EntryList.