Luck Stat Comparison Event

Helbrecht43

Villager
Member
Joined
Jul 26, 2016
Messages
9
Reaction score
0
First Language
English
Primarily Uses
I am using RPG Maker MV 1.2.0


I want to create an event where someone asks my character a question. When they are finished, you have the ability to lie or tell the truth.


If you lie, it will take the event's luck and add a random number between 1-20, and the player's luck and add a random number between 


1-20. Afterward it will compare the two numbers and if the player's number is higher than the event's, they will pass the test and continue 


forward in the conversation like normal. If they fail, the event will get mad at them.


How can I do this? And is it possible to do it without a java script?


(This is my first post ever(in any forum), so I apologize if it is not in the right place. Thanks for any help you can give.)
 
Last edited by a moderator:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,363
Reaction score
7,673
First Language
German
Primarily Uses
RMMV
yes - this is just a series of control variable commands to load the stat data, to perform mathematical operations on it and to generate a random number. all those options are part of that event command.


And then just a conditional branch comparing two variables
 

Helbrecht43

Villager
Member
Joined
Jul 26, 2016
Messages
9
Reaction score
0
First Language
English
Primarily Uses
Thank you very much Andar,


Do you know of any tutorials on the subject? I am a bit of a visual learner. If not, I can experiment until I figure it out. 
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,363
Reaction score
7,673
First Language
German
Primarily Uses
RMMV
Follow the link in my signature ("Starting Point"). It lists a lot of good tutorials to learn the basics - the important one here is the variables guide (which is a game you play first to see what can be done, and then open it to check the correct event coding of it).
 
Last edited by a moderator:

Helbrecht43

Villager
Member
Joined
Jul 26, 2016
Messages
9
Reaction score
0
First Language
English
Primarily Uses
Thanks a lot! I am about to check it out.
 

Helbrecht43

Villager
Member
Joined
Jul 26, 2016
Messages
9
Reaction score
0
First Language
English
Primarily Uses
Ok, 


I have learned how to call up a random number between one and twenty and add it to agility. I have learned how to do the same for the event. I still am stuck


on how to compare these two and create a branch. Can I get help on this possibly?
 

Helbrecht43

Villager
Member
Joined
Jul 26, 2016
Messages
9
Reaction score
0
First Language
English
Primarily Uses
Ok, with a lot of help from tutorials (thanks Andar) I have finally found out how to do the stat comparison on my own.


If anyone else searches for this forum and wants to know how to do this without looking at lots of tutorials, I made a


tutorial video on youtube. It is highly detailed and footnoted for time marks under the video. Hope this helps any future


game makers. Thanks again!


youtube link: 
 

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

Latest Threads

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,858
Messages
1,017,023
Members
137,565
Latest member
Callmelogann
Top