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

Besides my Might and Magic inspired project, I have always wanted to make a Fire Emblem-like game. Time is the culprit... Between life, composing music packs, and working on a game can it be done!? The tactical plugins for MV work quite well based on what I have tested.
Yaaay! My second public script is out and approved! A VX Ace Final Fantasy IX styled Throw Script!

I look forward to all the constructive feedback I get but most importantly I hope everyone who ends up using it enjoys!

Yaaaay! Making scripts is fun lol. :D
When you're lost out therrrrre and you're alllll alone, ahwahwah waitin, to carry you hooooommmme, uhhheverywhere you look! (someone hit me with those backing vocals)
X.X cant focus... too many thing want do... help!
Day 2 of teaching MV, student can move cat across the map.

Forum statistics

Threads
100,525
Messages
976,816
Members
132,080
Latest member
nwr
Top