Jump to content

routing event


joemann

Recommended Posts

I spent a lot of time cleaning up my localization files after a language change on my PC messed them up (thanks for the advice I got from ngppgn and coleman1 to correct the situation). I am back to modding again and have run into a new problem.

 

I have a routing event that should dispatch a slave training to different narrative events depending on the status of the training.

 

# .10 Target is approached for more training (target - hidden)
character_event = {
    id = RSLS.10
    is_triggered_only = yes # Triggered by targeted decision or .90/.91
    hide_window = yes # Nothing to see here
    immediate = {
        if = {
            limit = {
                NOT = { learning = 6 } # If the slave doesn't have a learning of at least 6, then they don't have the capacity to learn a second
                calc_true_if = {
                    amount = 1
                    trait = trained_pleasure_slave
                    trait = trained_warrior_slave
                    
                }
            }
            host = { narrative_event = { id = RSLS.11 }}
            break = yes
        }
        if = {
            limit = {
                calc_true_if = { #If they know all of them, then there is no further training options available.
                    amount = 2
                    trait = trained_pleasure_slave
                    trait = trained_warrior_slave
                    
                }
            }
            host = { narrative_event = { id = RSLS.11 }}
            break = yes
        }
        if = { # More training possible - Female event
            limit = {
                is_female = yes
            }            
            host = { narrative_event = { id = RSLS.13 }}
            break = yes
        }
        if = { # More training possible - Male event
            limit = {
                NOT = { is_female = yes }
            }
            host = { narrative_event = { id = RSLS.15 }}
            break = yes
        }
    }
    
}

 

This event, when applied to a male slave, always fires event .15. Even when the slave has a learning of three and the trait = trained_warrior_slave or both traits (in both cases it should fire  event .11) it still fires event .15. Event .15 then sends me through the whole training loop ending in.10 again, etc., etc....

 

Can anybody tell me what the problem is  and get me out of the loop ?

 

I thought maybe narrowing the scope of the last < if >  could help but that still doesn't explain why the first two don't work.

 

In case it is useful I also  include  event.15.

 

# .15 Slaver determines the training for the male slave (slaver)
narrative_event = {
    id = RSLS.15
    desc = RSLS13 # Uses same text as .13
    picture = slavery_male_cell1
    title = rsl_slave_training_target
    is_triggered_only = yes # Triggered by .10
    option = {
        trigger = {
            FROMFROMFROM = { is_adult = yes }
            NOT = {
                FROMFROMFROM = { has_character_modifier = rsl_slave_pleasure_complete }
            }
        }
        name = "RSLS13A" # Pleasure Slave Training
        FROMFROMFROM = {
            add_character_modifier = { name = rsl_slave_pleasure_1 duration = -1 }
            set_character_flag = rsl_slave_training_in_progress
            character_event = { id = RSLS.400 }
        }
    }
    option = {
        trigger = {
            NOT = {
                FROMFROMFROM = { has_character_modifier = rsl_slave_warrior_complete }
            }
        }
        name = RSLS13B # Warrior Slave Training
        FROMFROMFROM = {
            add_character_modifier = { name = rsl_slave_warrior_1 duration = -1 }
            set_character_flag = rsl_slave_training_in_progress
            character_event = { id = RSLS.200 }
        }
    }
}

 

Event .15 itself continues going in a circle and retrains the slave as a warrior slave event though it already has the character_modifiers in place ( I still need to replace them with the traits)

This wouldn't be a problem if event .10 got me out of the loop, but it doesn't.

 

Link to comment

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use