Skip to content

XML unit_talkscript

riyu edited this page Nov 4, 2026 · 4 revisions

XML unit talkscript

Back to XML Tables Index.

Data file (path passed in)
Source unit src/ms2/commonfiles/talkscript.cpp
Loader no single loader; readers: FUN_140859160 (0x140859160),
FUN_140857f20 (0x140857f20), FUN_140858440 (0x140858440)
Category common
Attributes 13 (0 partial)

Element nesting

Reconstructed from FirstChild* / NextSibling* chains. A leading $name marks a loop/helper variable that could not be resolved to a literal.

  • ms2 > npc
  • ms2 > npc > monologue
  • ms2 > quest

Element (function parameter / root)

Attribute C++ type Field Default Enum Reader Line
randomPick int m_randomPick FUN_140859160
0x140859160
591
id int m_id FUN_140857f20
0x140857f20
661
tag CStringW m_tag FUN_140857f20
0x140857f20
662
jobCondition int m_jobCondition FUN_140857f20
0x140857f20
663

Element ms2 > npc

Attribute C++ type Field Default Enum Reader Line
id unsigned int npcId FUN_140858440
0x140858440
689

Element ms2 > npc > monologue

Attribute C++ type Field Default Enum Reader Line
id int m_id FUN_140858440
0x140858440
700
tag CStringW m_tag FUN_140858440
0x140858440
701
gotoConditionTalkID CStringA gotoIds (empty) FUN_140858440
0x140858440
703
id int m_id FUN_140858440
0x140858440
724
tag CStringW m_tag FUN_140858440
0x140858440
725
id int m_id FUN_140858440
0x140858440
745
tag CStringW m_tag FUN_140858440
0x140858440
746

Element ms2 > quest

Attribute C++ type Field Default Enum Reader Line
id unsigned int questId FUN_140857f20
0x140857f20
636

Clone this wiki locally