Page 1 of 1

EOS notification help

Posted: Thu Feb 06, 2020 1:55 pm
by CockHeroChampion12
Can someone help me. I am wanting to use a notification to use as a break. then once the timer is up on that extra page i am wanting it to go back to the page the player was on. How do i go about doing this?

Also how do i remove them once it has been pressed?

Re: EOS notification help

Posted: Fri Feb 07, 2020 12:36 am
by undeniable_denial
You need to store the ID of the page you are on when the button is clicked in a variable.

Before the Goto-action under the Notification-button insert an Eval-action with this code:

Code: Select all

previousPage = pages.getCurrentPageId();
To remove the notification insert a "Notification: Remove"-action at the beginning of your break page and use the same identifier as with the "Notification: Create"-action.

Then at the end of your break page flick the switch of the Goto-action where it says "<>".
That makes it so that it accepts a variable as a page ID. Simply put this there:

Code: Select all

previousPage
If you want to allow more than one break, recreate the notification just before the Goto on the break page.


I wrote this from the top of my head, so there might be a mistake. Gonna check in tomorrow.