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

Nyarlathotep854

Recruit
18 Badges
Aug 18, 2019
9
0
  • Crusader Kings II: Holy Fury
  • Shadowrun: Dragonfall
  • Shadowrun Returns
  • Crusader Kings II: Jade Dragon
  • Crusader Kings Complete
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Way of Life
  • Majesty 2
  • Crusader Kings II
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
I am a pretty new modder, i have started working on my first serious mod/mod-addon recently, after finishing most parts i ran into an issue, an event is not working correctly, i tried everything, it still wont work, any help would be appreciated.
Code:
##Beleth's ability
character_event = {
    id = DemonAbils.2
    desc = DemonAbilsdesc.2
    is_triggered_only = yes
    option = {
        name = DemonAbilsopt.2
        custom_tooltip = {
            text = DemonAbilsBelethTT
            any_artifact_owner = {
                save_event_target_as = artiowner
                random_artifact = {
                    limit = {
                        quality <= 3
                    }
                    transfer_artifact = {
                        from = event_target:artiowner to = ROOT
                    }
                }
            }
        }
    }
}


##No random artifact gets "stolen"
 
Did you define the namespace at the start of the event ? Since you are using a custom event name you need the following line anywhere before the event -

namespace = DemonAbils
 
Last edited:
The event has the line is_triggered_only = yes so I assume that this event is called by a decision or on_action ? Are either of those set up properly ?

I checked the code via Notepad ++ and didn't see any orphan brackets, have you checked the error log or run it through the Validator ? The error logs are found in the /logs folder, the Validator can be found somewhere in the modding forum, otherwise PM me and I can send you a zip of my copy.