Right now I am trying to implement my own scripts in my game, tied with dialogue system.
I found a way to call a script from a different gameobject, using the event system. Here I am trying to send the message "2" to my PhoneInt script, linked to the Rectangle02 gameobject

My console log displays "SendMessage 2 has no receiver", implying that sending isn't the problem.
However, I fail to find a way to get that message in any way. Should I create a function inside my script that will automatically be called, or is it supposed to be used through the System Dialogue interface?
I am also open to any other solution to implement my scripts, especially if it also properly covers specific end-of-dialogue events.
Sorry if the answer is obvious, but I couldn't understand how to use sendMessage from its documentation page.