How to create a RPG Mod | Tutorial

Started by Goldorion on Sun, 10/06/2019 - 16:36

Topic category: User side tutorials

Last seen on 02:05, 22. Nov 2019
Joined Aug 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
How to create a RPG Mod | Tutorial
Sun, 10/06/2019 - 17:00 (edited)

Hi,

If you are here, it's you want to know how I created The Nightmarish Kingdom's RPG Systems.

I won't say you how to create a full mod, I will only say you the basic knowledges to know to create Systems for a RPG Mod. After, it's your turn to be imaginaive and to create your mod. It's not to me.

These tutorials are for people who know MCReator really well and who know how to use it. I will not explain how to do each element, only how I created my systems.

You can download the Workspace here, if you want to have it. https://mcreator.net/node/53741


First of all, you have to create your universe and your storie. For this part, I can't help you and say you how to do because you have only to be creative and imaginative. You can take inspiration from existing mods, book, movies or anything else.

You can see here the document I've created for the storie of The Nightmarish Kingdom. I separated it in many sections to know what part is for what event.

My Document of The Nigtmarish Kingdom's storie

 

After you have your storie, I suggest you to create one or many documents (Google Docs, Word, etc.), and write everything you want add in your mods, with what each things does, or gives to the player.

You can see here the document I've created for the different Class of the Nightmarish Kingdom.

My Document of The Nigtmarish Kingdom's Class

The next step is the most fun part. It's the modding part ! Open MCreator, create a new Workspace (in the version you want, but I suggest you to use the last supported version(s).), and do everything you have write into your doc(s).


Okay, okay. I will say you how I did to create a custom class system and my other custom system I make for The Nightmarish Kingdom.

 

The first system I made and the most important is the Class System (Test with MCreator 1.9.0 and 1.9.1)

If you have listen what I said, you are supposed to already have your differents class with their specifities. I will explain you how to make the class system in MCreator not the creation of class. I will explain this tutorial in function of 4 Class.

(I use a Global variable to make this system, but it's also working if you only use NBT Tags (I would even say it's better to just use that.).)

1. The first step to make your Class System is to create a Global Number Variable (Global Map). I call my variable PlayerClass. Set to 0 for the Initial value.

What the variable have to look.

2. Create a Procedure Element. We will use it for when Player Joins the World.

3. Put the Golbal trigger to "Player joins the world" and put an Entity NBT Tag (Number). I call this NBT Tag NumberSpawn.

4. Set NumberSpawn to Get Number Spawn + 1. With this, each time Player joins the world the tag will be increment by one, and he won't have the GUI to choose his class. How FirstSpawn has to look.

5. After that, save your procedure and create a GUI. It will be the GUI with all Class. I call it GUIClass.

6. Create your GUI with your 4 Class names. (The picture is lower in the tutorial.)

7. Save your GUI and create a new GUI for your first Class.

8. Explain the Class and put a Text Input.

9. Add a new Button with "Confirm", and add a new procedure with the event "On Button Clicked".

An Example of how the GUI can looks.

10. Make this procedure and save it.

11. As you can see on the procedure, there is two procedures with "Yes" or "No" in their name. Create the "No" procedure and put a "Open GUI for the provided (entity) player" and put GUIClass. Save and close it.

12. Create a procedure for the "Yes". For the rocedure, put an "if... do" procedure block. In the IF section, check if PlayerClass is equal to 0. In the DO section, close any GUI open for the current entity, Set PlayerClass to 1 (or 2,3,4 if it's not your first class.), and call the Procedure YourClassNameEffects. In this procedure, put the global trigger to "On Player Tick Update" and check if PlayerClass is equal to the class you want (Example : This procedure is for my first class, so I will make If PlayerClass = 1 Do...). In the DO section put the effect (or abilities) of your class.

The "Yes" Procedure A Class Effect Procedure

13. Save the two procedures and finish the procedure of the "Confirm" Button. Save your Class Information GUI and put a button in GUIClass who will open the GUI with informations. How GUIClass has to look with the 4 Class

14. Do the numbers 7 to 13 for each Class you have.

15. When you have finish all GUIs and procedures for the Class, return into the FirstSpawn Procedure. Put 5 IF...Do procedure blocks. In the first block, check if PlayerClass = 0, and put the first part of your storie. Put also a procedure block to open GUIClass. In the second procedure block, check if PlayerClass = 1 (Your first Class) and call the procedure with the effects of this class. For the three last IF...DO, make the same thing for the second IF...DO, and save your procedure.

How PlayerClass has to look  when it's finished.

16. Create a procedure for when Player respawn, and put the Global trigger "Player Respawns". Make the same thing that the 4 IF...DO of FirstSpawns (Only the 4 last IF...DO who call the Class effects.). Save the procedure.

The PlayerRespawns Procedure

17. Like Players don't have time to read, or sometimes they close the GUI withtout choose a Class, I suggest you to create a command to re-open the GUIClass, but check if the Player doesn't have a Class (If PlayerClass = 0 Do Open GUIClass Else You have already choose a class.)

The Procedure of the command

18. You can now go test your Class System in the Environment Test. Check if you have bugs and fix them.

 

I Hope these tutorials will help some people to understand how I made my Class System of The Nightmarish Kingdom or it will help people wanting to create a great RPG Mod.

I will add new tutorials on RPG System I use in The Nightmarish Kingdom soon.

If you use one of the system, can you just give me a little credit about the system(s) you have used ? It will be kind.

 

If you have any questions or comments, write them in the comments !

Goldorion

 

P-S : If you want add these tutorials on the Wiki, I allow you to do it, but just don’t appropriate you the credits.

 

Edited by Goldorion on Sun, 10/06/2019 - 17:00
Last seen on 14:58, 21. Nov 2019
Joined Jun 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Nice tutorial :) Anyway,…
Mon, 11/04/2019 - 19:31

Nice tutorial :)

Anyway, entity NBT tags reset after death, so they can't be used to count how many times the player died. See this page for a solution: https://mcreator.net/comment/98752

And the plot of The Nightmarish Kingdom looks cool, it actually is a bit funny to read its summary... You do all those efforts to kill Morzaron then you discover he actually is the good guy XD

RaolCraft Omega has a plot twist too after beating the Dark Emperor, but it isn't that drastic... There only is a book that reveals that some lies were told about him. I will improve it in the future anyway

 

Last seen on 02:05, 22. Nov 2019
Joined Aug 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Thanks and thanks you for…
Mon, 11/04/2019 - 21:12

Thanks and thanks you for the information. I will find a way to fix this "bug".

Last seen on 14:58, 21. Nov 2019
Joined Jun 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
The solution is in the issue…
Mon, 11/04/2019 - 21:31

The solution is in the issue I linked, it works to me :)