NeonBlack's relationship conditional branch?

I'm using NeonBlack's relationship script found in this pack, here (pack 3) : http://rmcoalition.wikidot.com/rmc-package-releases

The only thing I'm having trouble with is figuring out how to have a conditional branch check for a relationship level.

Here are the script calls:

Spoiler
Script Calls:

 

Relationship.open

 - Quite simply, opens the status screen.

Relationship.exp(actor1, actor2, exp)

 - Used to alter the exp of a relationship.  The exp can be positive or

 negative.  All other normal things that would happen occur automatically.

 

Relationship.type(actor1, actor2, :switch)

 - Used to change the type of relationship two actors are in.  This

automatically breaks a max level relationship if one has been established.

Note that :switch will switch the type of relationship from/to both

friends/lovers, while you can use :lovers or :friends to define the type

to switch to manually.

 

Relationship.level(actor1, actor2)  -or-  Check.relationship_level(a1, a2)

  - Gets the relationship level of two actors.  Can be used for conditional

   script calls and such.

 

 Relationship.between(actor1, actor2)  -or-  Check.relationship_between(a, b )

  - Gets the type of relationship two actors are in.  Returns a value of

   either :lovers or :friends.
 

But I'm not sure how to use 'relationship.level' or 'check.relationship_level' for the game to know that an actor is of a certain relationship. Can anyone explain how to do it?
Bumpp
To check the level of a relationship, you can make a conditional branch event command in your event and use the "Script" option on the popup window (the very last option).

You can enter the provided script call there. To check the level, enter this:

Relationship.level(actor1, actor2) check_type valueI am not sure how do you need to add in the actors, but it is either by actor ID or an actor object.An actor object means that any valid ruby code which returns a Game_Actor instance will work. The two most commonly used are:

- $game_actors[iD] : This returns the actor by it's ID from the database.

- $game_party.members[index] : This returns an actor based on party position.

The check_type can be:

==, !=, >, >=, <, <=

And the value is the value you want to check for.

Examples:

Code:
Relationship.level($game_actors[1], $game_actors[2]) >= 10# Checks if the relationship level between actor 1 and actor 2 is greater than or equal 10 or not.# If yes, it uses the upper branch in the conditional check, if not, it uses the lower one (the "Else" part).Relationship.level($game_actors[3], $game_actors[6]) < 5# Checks if the relationship level between actor 3 and actor 6 is lower than 5 or not.# If yes, it uses the upper branch in the conditional check, if not, it uses the lower one (the "Else" part).
I did not test this, so if you get any errors, try using the ID of the actors instead of the whole actor object.

Original thread: https://forums.rpgmakerweb.com/threads/neonblacks-relationship-conditional-branch.53061/