4. Roles {{ currentPage ? currentPage.title : "" }}

Inside the second Tutorial of the Guild Component we already set the default Roles, which will the Guild have on creation.

Now if the Player is inside a Guild he can do following:

  • Create Role

    • Need the EditRole Permission.

  • Change the Name of a Role

    • Need the EditRole Permission.

    • The Role must have a higher or equal Order then the owning Role.

  • Change the Permissions of a Role

    • Need the EditRole Permission.

    • The Role must have a higher Order then the owning Role.

On Default, the Leader Role (First Role inside the Default Role Names Array) will have all Permission and all other Roles will have no Permissions

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

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

Set the returning Value of the Function to true.

Of course you should check inside this Function if the Name of the Role can be used.

The Function will also be called, when a Player tries to change the Name of a Role.

2. Now if the Player has the EditRole Permission he is able to call the Function CreateRole, ChangeRoleName and ChangeRolePermission on the Guild Component.

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

{{{ content }}}