• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Project_AI

Recruit
17 Badges
Jul 31, 2022
2
0
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Nemesis
  • Stellaris: Federations
  • Hearts of Iron IV: La Resistance
  • Stellaris: Ancient Relics
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Megacorp
  • Stellaris: Distant Stars
  • Stellaris: Apocalypse
  • Europa Universalis IV
  • Stellaris: Synthetic Dawn
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris - Path to Destruction bundle
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Stellaris
The modding tutorials on the Stellaris Wiki are not detailed enough about interface modding. Is it really possible to get different response text from one option in diplomacy UI? If not, how can I get the same effect in coding? Thanks a lot.
 

Attachments

  • LS%~P$IP1F1XS{1DD)73F{E.png
    LS%~P$IP1F1XS{1DD)73F{E.png
    21,2 KB · Views: 0
option = {
name = koumakan_conversation
is_dialog_only = yes
random_list = {
50 = {
response_text = TH_kourindou.1.desc_3
}
50 = {
response_text = TH_kourindou.1.desc_2
}
}
}
For example, these lines don't work out well.
 
Use the immediate to set a flag at random and then use that flag to trigger the response option (and be sure to clear the flag in doing so)