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

DutchHistoryFan

Private
Nov 9, 2021
13
1
Hi,

I'm working on a piracy mod for CK2, in which I want to work with variables for the first time. However, because it is just my first time, there could be errors and other sort of problems.

That why I'm asking if someone with more experience in modding to check if the way I used it in the event file would work, and if it doesn't, give feedback on what I could do better.

Thanks in advance.
 

Attachments

  • piracy_events.txt
    7,1 KB · Views: 0
Your variables are fine, but I can notice two oversights :
  • I don't think Crusader Kings 2 handles "only_fire_once" for events. You should add an has_global_flag trigger and a set_global_flag effect.
  • All events are set to "is_triggered_only". Have you set an on_action file or a decision that will trigger them? Otherwise the events will never be triggered.
You are using quotation marks instead of localisation for event texts. I assume that it would still work, but I suggest to move texts to a localisation file.
 
  • 1Like
Reactions:
Your variables are fine, but I can notice two oversights :
  • I don't think Crusader Kings 2 handles "only_fire_once" for events. You should add an has_global_flag trigger and a set_global_flag effect.
  • All events are set to "is_triggered_only". Have you set an on_action file or a decision that will trigger them? Otherwise the events will never be triggered.
You are using quotation marks instead of localisation for event texts. I assume that it would still work, but I suggest to move texts to a localisation file.
-I'll work on that right away
-I did indeed already include the on_actions in another file.
-I basically always use the quotation marks, but I'll move them to a loc file