Using IF\THEN

valvefox

Warper
Member
Joined
Jul 11, 2020
Messages
2
Reaction score
0
First Language
English
Primarily Uses
N/A
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".
Большое спасибо за помощь!
 
Last edited:

ithimar

Villager
Member
Joined
Apr 30, 2020
Messages
14
Reaction score
0
First Language
English
Primarily Uses
VNM
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!
 
Last edited:

valvefox

Warper
Member
Joined
Jul 11, 2020
Messages
2
Reaction score
0
First Language
English
Primarily Uses
N/A
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!
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Got accepted into the architecture degree. Now I have all the doubting questions. Have to give them an answer in the next few days.
Just realized I have a few Steam gifts floating around. Anyone need RPG Maker MV or XP (Steam only)? Send me a message and I will send them on over!

EDIT: Just an RPG Maker MV gift remaining! XP has been taken.
*when you can do the Unity tutorials, but when you actually try and convert it to your own knowledge, it fails horribly*
Hi, I made a game for a competition. I need some players to help play and vote for the best game.

https://ekamu.itch.io/not4ever
don’t forget to rate the game here


Voting is open until 12 August.

Thanks.
Progresses. Tonight: refinemment, column, pitfall, bump and gutter (I'll leave doors for last, they are scary).

Forum statistics

Threads
100,577
Messages
977,403
Members
132,162
Latest member
Guhh
Top