# Popups from Custom Plugins

**URL:** <https://narrat.discourse.group/t/popups-from-custom-plugins/294>\
**Category:** Help\
**Created:** [28 November 2024 02:05 UTC](https://narrat.discourse.group/t/popups-from-custom-plugins/294 "2024-11-28T02:05:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![PinkPenguin](https://yyz2.discourse-cdn.com/free1/user_avatar/narrat.discourse.group/pinkpenguin/32/302_2.png) [@PinkPenguin](https://narrat.discourse.group/u/PinkPenguin)\
**Post date:** [28 November 2024 02:05 UTC](https://narrat.discourse.group/t/popups-from-custom-plugins/294/1 "2024-11-28T02:05:00Z")

</div>

Hello,

I’m trying to build a custom popup to appear on top of the entire screen (or most of it) from a custom function. In other words I want to call a custom function that is defined through the plugin system that causes a screen I’d build.

Essentially I’m trying to build a battle system. So I want to launch a fight while progressing through the story.

Is that even possible?

If you have an example, that’d be nice, but just point in the right direction that’s fine.

---

<div class="post-metadata">

**Author:** ![antijingoist](https://yyz2.discourse-cdn.com/free1/user_avatar/narrat.discourse.group/antijingoist/32/569_2.png) [@antijingoist](https://narrat.discourse.group/u/antijingoist)\
**Post date:** [29 November 2024 15:39 UTC](https://narrat.discourse.group/t/popups-from-custom-plugins/294/2 "2024-11-29T15:39:14Z")

</div>

yes, it’s possible

I don’t know if you _need_ to do a plugin if that’s what the ask is: if you wanted you can just switch into a battle and switch out. Thats how im doing it for my current project.

But otherwise, I don’t see anything in narrat that prevents this. Heck, in my game I have cryptogram puzzles i wrote in vanilla js.

---

<div class="post-metadata">

**Author:** ![Narrat-Admin](https://yyz2.discourse-cdn.com/free1/user_avatar/narrat.discourse.group/narrat-admin/32/429_2.png) [@Narrat-Admin](https://narrat.discourse.group/u/Narrat-Admin)\
**Post date:** [30 November 2024 14:45 UTC](https://narrat.discourse.group/t/popups-from-custom-plugins/294/3 "2024-11-30T14:45:27Z")

</div>

Yeah, generally possible using scenes and/or plugins, you’d have to make a vue.js component for your custom screen and do whatever you want to do in there, and then you can easily make the game display that when you want

---

<div class="post-metadata">

**Author:** ![PinkPenguin](https://yyz2.discourse-cdn.com/free1/user_avatar/narrat.discourse.group/pinkpenguin/32/302_2.png) [@PinkPenguin](https://narrat.discourse.group/u/PinkPenguin)\
**Post date:** [1 December 2024 17:20 UTC](https://narrat.discourse.group/t/popups-from-custom-plugins/294/4 "2024-12-01T17:20:54Z")

</div>

Of course Scenes! Thanks you two, that’s exactly what I need!
