3. Level {{ currentPage ? currentPage.title : "" }}

In this Tutorial i will explain how you can change the Level of the Guild.

As an Example i will add XP to the Guild with the same Amount of XP of the Player.

So if the Player add’s XP to the Guild, his own XP (Stat Component) will be reduced.

1. Without PlayerTemplate: Open the new Interface Function SP8_CanAddXPToGuild inside the Player BP

With PlayerTemplate: Overwrite the Function SP8_Overwrite_CanAddXPToGuild inside your Player BP.

Get the XP from the Stat Component and check if it’s greater equal as the Adding XP.

Return the Boolean.

2. Without PlayerTemplate: Open the new Interface Function SP8_AddXPToGuild inside the Player BP

With PlayerTemplate: Overwrite the Function SP8_Overwrite_AddXPToGuild inside your Player BP.

Call Reduce XP on the Stat Component and set the Input to the Adding XP.

3. Now we need to create a Float Curve for the Variable XP Curve inside the Details Panel of the SP8_GameState_GuildComponent.

Click Right Mouse Button inside the Content Browser and select Miscellaneous / Cruve and select as CurveClass CurveFloat.

4. Inside your new Curve you need to do following:

  • Create a new Point inside the Curve and set the Position to [1,XP].

    • Replace XP with the needed XP to get from Level 1 to Level 2.

  • Create a second Point inside the Curve and set the Position to [MaxLevel - 1, XP]

    • Replace MaxLevel - 1 with for example 98, if the Max Level should be 99.

    • Replace XP with the needed XP to get for example from level 98 to Level 99, if the Max Level is 99.

In this Curve i have created the First Point at [1,2.000] and the second Point at [98,1.000.000].

There should be enough Tutorials out there, how you can change Curve’s to your needs.

Just remember the Points are [Level,XP needed for Level + 1].

5. Open your Game State and select the Details POanel of SP8_GameState_GuildComponent.

Set following Variables:

  • (1) Set XP Curve to your new created Curve.

  • (2) Set the Max Member per Level. If every Level is the same, just use 1 Element inside the Array.

  • (3) Set the Max Role Count per Level. If every Level is the same, just use 1 Element inside the Array.

Now every Member of the Guild is able to call AddXP on the SP8_GuildComponent.

This will reduce the own XP (Stat Component) and add it to the Guild.

Look into SP8_WBP_Guild inside the Directory RPG_Essentials / Example / Widgets to see how the Guild Widget could be made.

{{{ content }}}