Creating conversation on the world map

Users who are viewing this thread

I've been looking into this, but i'm not sure. What i want is this: A notification to appear and if the player presses yes a conversation to start, same as you talk with the notables in town. Obviously with the answers i desire.
Can anyone help me on this ?
 
Well, i've figured out how to create a notification, the only thing i still haven't figured out it how to start a converstion on the world map. Any one knows how to do this ?
 
Upvote 0
I tried looking for it in DNS spy, I can find the conversations on missions, like tavern employes like Prison breaks, but nothing when it comes to world map dialog

so I have no idea how to do that, sorry
 
Upvote 0
You can try something like this:

Code:
   public void Initialize()
        {
            ScreenManager.OnPushScreen += OnScreenManagerPushScreen;
        }

     

        private void OnScreenManagerPushScreen(ScreenBase pushedScreen)
        {
            if (!_registered && pushedScreen is MapScreen mapScreen)
            {
                mapScreen.MapNotificationView.RegisterMapNotificationType(typeof(MiscarriageNotification),
                                                                          typeof(MiscarriageNotificationVM));
                _registered = true;
            }
        }

        public void OnGameEnd()
        {
            ScreenManager.OnPushScreen -= OnScreenManagerPushScreen;
            _registered = false;
        }

Call Initialize() in your submodule class.
Note that this is an older code, may need some tweaks.
 
Upvote 1
You can try something like this:

Code:
   public void Initialize()
        {
            ScreenManager.OnPushScreen += OnScreenManagerPushScreen;
        }

   

        private void OnScreenManagerPushScreen(ScreenBase pushedScreen)
        {
            if (!_registered && pushedScreen is MapScreen mapScreen)
            {
                mapScreen.MapNotificationView.RegisterMapNotificationType(typeof(MiscarriageNotification),
                                                                          typeof(MiscarriageNotificationVM));
                _registered = true;
            }
        }

        public void OnGameEnd()
        {
            ScreenManager.OnPushScreen -= OnScreenManagerPushScreen;
            _registered = false;
        }

Call Initialize() in your submodule class.
Note that this is an older code, may need some tweaks.

It works as intended!, thank you.
 
Last edited:
Upvote 0
Back
Top Bottom