joemann Posted February 12, 2018 Share Posted February 12, 2018 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
ngppgn Posted February 12, 2018 Share Posted February 12, 2018 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
joemann Posted February 12, 2018 Author Share Posted February 12, 2018 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
joemann Posted February 13, 2018 Author Share Posted February 13, 2018 Found the solution. It was a scope problem. FROMFROM in the desc blocks should be FROM. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.