Using IF\THEN

Hello! Please help me deal with the mechanics of karma (IF\THEN). Example:
There is a character "A" and if you talk to him then the value "A+1" is added to the variable "A".
During the game, I can speak with this character several times, and each time I add one more item to the variable.
At the right moment, the function is called: if I spoke more than five times, then start the "Event 1", if "less than five", then "Event 0".
Can i realise this functional in this Maker? Thank you!

--------------

Всем привет! Помогите пожалуйста разобраться с механикой кармы (IF\THEN). Пример:
Есть персонаж "А" и если с ним поговорить то в переменную "А" добавляется значение "A+1".
По ходу игры я могу несколько раз заговорить с этим персонажем и каждый раз в переменную добавляется ещё по пункту.
В нужный момент вызывается функция: если я говорил больше пяти раз то запустить событие "Ветка 1", если "менее пяти" то "Ветка 0".
Большое спасибо за помощь!
You can definitely do that. Here is how i would do it:

Condition: if number variable 'talked to' greater than or = 5
---Message: here's the message that appears after talking to me five times
Condition: if number less than or = 4
---Message: this appears until i am spoken to five times
---Number variable 'talked to' add 1

the --- are indents. dunno how to format that here sorry!
You can definitely do that. Here is how i would do it:

Condition: if number variable 'talked to' greater than or = 5
---Message: here's the message that appears after talking to me five times
Condition: if number less than or = 4
---Message: this appears until i am spoken to five times
---Number variable 'talked to' add 1

the --- are indents. dunno how to format that here sorry!
Thank you! I'l try this!

Original thread: https://forums.rpgmakerweb.com/threads/using-if-then.123902/