• 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.

nick_clarke

Recruit
23 Badges
Jan 7, 2024
3
0
  • Crusader Kings II: Reapers Due
  • Crusader Kings III: Royal Edition
  • Crusader Kings III
  • Stellaris: Ancient Relics
  • Prison Architect
  • Crusader Kings II: Holy Fury
  • Stellaris: Distant Stars
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Crusader Kings II: Jade Dragon
  • Age of Wonders III
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II
  • Stellaris
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
hello

i am trying to mod ck3 with the help of chat GPT. i have created the decision have fun with cost of 10 gold but i want to give the player a choice of ether going to the pub or walking round town but cant seem to get a popup window with the choice options in it. anyone know how?
 
Code:
widget = {
  gui = "decision_view_widget_generic_multichoice_with_effects"
  controller = decision_option_list_controller
  decision_to_second_step_button = "Choose where to go"

  item = {
    value = pub
    localization = "Go to pub"
    icon = "gfx/interface/icons/icon_supply.dds"
  }
  item = {
    value = walk
    localization = "Walk around town"
    icon = "gfx/interface/icons/development.dds"
  }
}

effect = {
  if = {
    limit = {
      scope:pub = yes
    }
    add_gold = 100
  }
  if = {
    limit = {
      scope:walk = yes
    }
    add_piety = 100
  }
}

Ideally, that text should be localized, the error log will complain that it's not, but for now, for testing, you can just write it right there.
scope:walk and pub reference the value of each item, so if you rename them, also change the scopes.

Also, I need to warn you that ChatGPT doesn't actually understand how to mod CK3. There's little of its code available online, comparatively.
GPT is good at pretending to know it, though, and will happily write code that doesn't work at all. Don't rely on it.
You'll get more help if you join the modding discord: https://discord.gg/apEvxDZ (and read the modding wiki https://ck3.paradoxwikis.com/Modding)
 
thankyou i all ready figured out chat gpt is not very good. when it could not rename the decision button after two hours trying with chat gpt i fingered it out myself . also i thougtht i need to use
widget = {
gui = "decision_view_widget_generic_multichoice_with_effects"
because i looked at a different decision.