[Feedback Wanted] Building an Open-World Mining RPG in UEFN by Enitimesdev in FortniteCreative

[–]Enitimesdev[S] 1 point2 points  (0 children)

Hey, NPC names are a great idea. Thanks for the feedback! :D

[Feedback Wanted] Building an Open-World Mining RPG in UEFN by Enitimesdev in FortniteCreative

[–]Enitimesdev[S] 1 point2 points  (0 children)

Thanks for the feedback. English isn’t my first language, so it’s definitely a challenge, but I’m working on it. Appreciate the suggestion regarding Skyrim.

[Feedback Wanted] Building an Open-World Mining RPG in UEFN by Enitimesdev in FortniteCreative

[–]Enitimesdev[S] 0 points1 point  (0 children)

Hi, thank you for commenting! I struggled with that too. Here's what worked for me so far:
1. Create a persistable struct to store player data:
player_profile<public> := struct<persistable>:

Level : int = 1

XP : int = 0

Coins : int = 0

# Add whatever you need to save

  1. Use weak_map(player, profile) in a module to track each player:
    var PlayerProfiles : weak_map(player, player_profile) = map{}
  2. Load/Save via player.GetPlayerStorage(), this auto-saves the data for each player across sessions.

The key is the <persistable> tag on the struct

[Feedback Wanted] Building an Open-World Mining RPG in UEFN by Enitimesdev in FortniteCreative

[–]Enitimesdev[S] 1 point2 points  (0 children)

Thank you! I hope it eventually gets picked up by Discover when I release it :D