HoI 4 - [1.12.8] [cef7] custom_cost_text takes country as FROM in state targeted decisions

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

kris_1313

Recruit
13 Badges
May 10, 2020
7
1
  • Crusader Kings II
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Magicka
  • Crusader Kings II: Horse Lords
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Battle for Bosporus
  • Hearts of Iron IV: By Blood Alone
  • Hearts of Iron IV: No Step Back
Description of issue
[1.12.8] [cef7] custom_cost_text takes country as FROM in state targeted decisions

What platform do you play on?
Steam

Game Version
1.12.8

Enabled DLC


Do you have mods enabled?
Yes

Description
Hello, when I'm scripting and I'm using custom_cost_text in state targeted decisions, localisation entry using FROM takes country instead of state
For example:
when Warsaw is targeted by decision, [FROM.GetName] returns "Poland" instead of "Warsaw"

Steps to Reproduce
1) In state targeting decision define custom_cost_text = foo
2) make localisation entry foo_tooltip:0 "[FROM.GetName]"
3) check tooltip of that decision

Upload Attachment
File(s) attached
 

Attachments

  • 20230120151415_1.jpg
    20230120151415_1.jpg
    751,8 KB · Views: 0
  • 1
Reactions:
Upvote 0