Jump to content

Modding help - Picture based on condition


joemann

Recommended Posts

I have an event which works. I would now  like to change the picture depending on whether the slave is male or female. Have looked it up in the modding wiki.

 

However, although the event fires it only shows one picture ( branding_male) for both slaves and displays no text at all. Scope seems OK. What am I doing wrong?

 

 

# different pics depending on gender

#BrandSlave

narrative_event = {
    id = RSLS.12
    picture = GFX_evt_rsl.branding    
            
    desc = {
        trigger = {
            FROMFROM = { is_female = yes }
                    
            text = "RSLS12desc"                       # < ""> with or without makes no difference
            picture = GFX_evt_rsl.branding
            sound = branding_female_01
        }
    }
    desc = {
            trigger = {
            FROMFROM = { is_female = no }

                   text = #RSLS12desc"
                   picture = GFX_evt_rsl.branding_male
        }    
             
    }
            is_triggered_only = yes

    option = {
        trigger = {
            FROM = {
                NOT = { trait = trained_pleasure_slave }
                NOT = { trait = trained_warrior_slave }
        }
    }
    
        name = rsl_option1
        FROM = {
            spouse = { prestige = -20 }
            set_character_flag = asked_for_better_prison
            add_trait = slave
            abdicate = yes
            
        }
    }
}

Link to comment


    desc = {
        trigger = {
            FROMFROM = { is_female = yes }
                    
            text = "RSLS12desc"                       # < ""> with or without makes no difference
            picture = GFX_evt_rsl.branding
            sound = branding_female_01
        }
    }

 

should instead be 


    desc = {
        trigger = {
            FROMFROM = { is_female = yes }
        }
            text = "RSLS12desc"                       # < ""> with or without makes no difference
            picture = GFX_evt_rsl.branding
            sound = branding_female_01
    }

.

Same with the other desc block.

 

Link to comment

Changed it as you suggested. Works better but not yet as it should. I also had to change the scope towards the end because the option screen showed both slaves at the same time in the option bar (not in the center of the screen, that showed the correct slaver and slave pic).

 

The following does everything it should except that it shows the same  picture ( branding_male ) for male and female.

 

narrative_event = {
    id = RSLS.12
    title = rsl_brand_slave
        
    desc = {    
        trigger = {
              FROMFROM = { is_female = yes }
        }            
        text = "RSLS12desc"
        picture = GFX_evt_rsl.branding_female
                        
    }
    
    desc = {
    trigger = {
             FROMFROM = { is_female = no }
        }

               text = "RSLS12desc"
               picture = GFX_evt_rsl.branding_male
                     
    }
            is_triggered_only = yes

    option = {
        trigger = {
            FROMFROM = {
                NOT = { trait = trained_pleasure_slave }
                NOT = { trait = trained_warrior_slave }
        }
    }
    
        name = rsl_option1
        FROMFROMFROM = {
            spouse = { prestige = -20 }
            set_character_flag = asked_for_better_prison
            add_trait = slave
            abdicate = yes
            
        }
    }
}

 

Validator has no problems. I checked the picture files (both gfx and interface), I'm stuck. Please help!

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