Jump to content

understanding Validator


joemann

Recommended Posts

This is what Validator returns on a Visit event ( I want to vary the narrative depending on tit-size):

--- Error 1 of 1 ---
At <mod>\events\RSLVisits.txt [character_event\immediate\if\random_list\50\modifier\if] (Line 77, column 9):
Invalid node "if" in scope CharRandomListModifier (value is: <a complex type>)

 

The relevant part of the event is as follows:

 

# Player is a man
        if = {
            limit = {
                is_female = no
            }
            random_list = {
                # Begin old events
                50 = { # male/male event
                    modifier = {
                        factor = 0 # turns it from 50 no 0
                        event_target:rsl_visit_target = { is_female = yes } # If the target is a woman
                    }
                    narrative_event = { id = RSLVisits.110 }
                }
                50 = { # male/female event
                    modifier = {
                        factor = 0 # turns it from 50 no 0
                        event_target:rsl_visit_target = { is_female = no }# If it is a man
                                
                                if = {
                                    limit = {
                                    
                                        OR = {  trait = big_tits
                                                trait = huge_tits
                                                trait = enormous_tits
                                                trait = gigantic_tits
                                            
                                        
                                        }
                                    }    
                                    narrative_event = { id = RSLVisits.131 }
                                }
                                
                                    
                                
                                if = {
                                    limit = {
                                            OR = {  trait = regular_tits
                                                trait = small_tits
                                            }   
                                    }
                                    narrative_event = { id = RSLVisits.130 }          
                                }
                                
                                
                                    
                                if  = {
                                        limit = { trait = tiny_tits }
                                        narrative_event = { id = RSLVisits.132 }
                                            
                                }
                                
                                            
                                
                            }
                        }
                
                    }
            
            break = yes # Takes us out of the immediate block
        }
    }
}

 

Why  are the if's invalid ? I have also tried else_if commands with the same result. Is it not possible to use if within another if block? I also had break= yes after each if sub block. Validator didn't like them either.

 

Link to comment

Because you have the if = {} inside the modifier = {} while it should be outside of it (you can only have triggers inside modifiers, not effects - it doesn't make sense to have them either). That's basically what the error text says too.

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