Have an event start in a seperate region

I'm making a fishing skill using events, and I'm trying to make it where the character can fish near almost any water. I try to be efficient with the amount of events I have on a map, so I'm using a parallel event for this. There are two things I'd like some help with.

I'm using a RegionID common event, and placing a region number on the coast. I also put a region in the water off the coast and wanting the event to start in the water after an action button press. I know how to link a parallel even to one that uses an action button to a different area using Set Event Location, but only with an x,y coordinate. Is there a way to have an event in one region, and have it start another in a separate one?

The second part I need help with is making an image showing the water bubbling in random areas to show where a rare fish will show up.

I linked an image of what the area looks like. I'd like the event to only start when the character is in region 27, and show up on the map in region 28.
Your approach seems a little to complicate.
Here some ideas:
1.
For Bubbling Water, have a smal amount of Events on each Map and use Regions for the Rest. Its the easiest solution.
The Common Event handling the fishing button, can also handle, allowing a certain number of maps to have special fish active, and when fished will restock those on another map. Else if we just use random chance for rarre fish on a map, than you get the problem that the player enters and leaves the map again and again until rare fish spawns. (But i believe we could help with that)
And i would recomment using the same Event IDs for the Rare Fish Events on every Map.
We could incorporate those Event Ids in the below shown Picture, its not in there yet.
2.
Maybe dont use 2 Region Ids for this one Mechanic, just ask for the Region ID 2 Tiles infront of the Player. Maybe thats easier to work with?
Here an Example:
regionactionbuttonhelp23.PNG


What do you think? Is this a start?

3.
Do You need to Teleport a fishing Event on that Region for fishing? Or can the Parallel Event handle that also?
There is no problem teleporting an Event there, in case you want to display some visuals(not about the bubbling), just want to know why, to see if its needed.
Different Regions could be used for different Fish, 28 Salt Water Fish, 29 Pond Fish, 30, River Fish?
For 1, how would I add that to my common event? Would it involve adding or subtracting a variable? I'm not sure on that.

2. I tried that, and it works, but I'm stuck in a loop every time I click to exit the text box. I tried adding a self switch to turn on then off, but it's still stuck.

3. I was planning on having a smaller bubble show up wherever the character tried to catch the fish.

I've been playing a lot of Stardew Valley lately, and that's where the idea came from.

I'm trying to see if all this can be done using events. If it needs a script or plugin, that's fine.
Okay i Edited it, 1Tile infront of Player is checked for Region28, if true, than 2 tiles infront of player the event id nr2 is teleportet to
and its condition switch turned on. Its used for Bubbles. Is this setting OK?
Here the Eventcode as Text:
Spoiler
Code:
◆If:Button [OK] is pressed down
  ◆Control Variables:#0001 Playr Map X = Map X of Player
  ◆Control Variables:#0002 Playr Map Y = Map Y of Player
  ◆Control Variables:#0003 Bubbles X = Playr Map X
  ◆Control Variables:#0004 Bubbles Y = Playr Map Y
  ◆If:Player is facing Down
    ◆Control Variables:#0002 Playr Map Y += 1
    ◆Control Variables:#0004 Bubbles Y += 2
    ◆
  :End
  ◆If:Player is facing Left
    ◆Control Variables:#0001 Playr Map X -= 1
    ◆Control Variables:#0003 Bubbles X -= 2
    ◆
  :End
  ◆If:Player is facing Right
    ◆Control Variables:#0001 Playr Map X += 1
    ◆Control Variables:#0003 Bubbles X += 2
    ◆
  :End
  ◆If:Player is facing Up
    ◆Control Variables:#0002 Playr Map Y -= 1
    ◆Control Variables:#0004 Bubbles Y -= 2
    ◆
  :End
  ◆Get Location Info:Playr RegionID, Region ID, ({Playr Map X},{Playr Map Y})
  ◆If:Playr RegionID = 28
    ◆Set Event Location:Ev002 WaterBubbles, ({Bubbles X},{Bubbles Y})
    ◆Control Switches:#0001 Switch for Bubbles = ON
    ◆
  :End
  ◆Wait:60 frames
  ◆
:End

to1:
Tell me more about rare fish. How often should those spawn ingame?
Do we see the big bubbles before we go fishing or while we are fishing?

to2:
should be fixed now.
to3:
the event for the smaler bubble is intergrated now
Sorry, I haven't had a chance to reply, I've been busy.

I was stupid and forgot to mention that the fishing event is set as an autorun common event, that triggers by a switch I turn on when the player presses the ok button. It turns the switch off itself, then turns on the fish generator switch on, that's also in a common event. It's from this video:



This is what's causing the loop. I just can't figure out how to stop it from automatically running when i press the button the close the textbox when it shows you caught a fish.

1. I want there to be a random chance that a rare fish shows up on the map. This chance will be small, like 5-10%, but the player will be guaranteed a rare fish from it. When they fish regularly, there is a smaller chance to catch a rare fish. The bubbles will show before they start fishing, as a way to let the player know it's there. I'm thinking of having it on a timer, so it'll disappear after a certain amount of time, if the player doesn't fish it.

3. That worked, and the bubbles move to where the player is fishing. Thanks!
Action Button Problem:
Dont use that Plugin. You could create this Event as Parallel running Common Event as shown above.
Than you could fix it with Eventing. You would do this after the Textbox:
Code:
Textbox
Loop
If OK button pressed?
if yes Wait 1 Frame
else Break Loop
repeat above
end (But with Eventcommands)
Thisway the Common Event could not be retriggert. I doubt that this solution works for your plugin. That you got multiple pages for this seems good.


to3. Very nice, iam glad to hear that =)

to1. Yeah having 1 maybe more Events as Rare Fish could be ok. Let me know if you need help with that.
I'm not using any plugins, I made it using common events like in the video. Would I add that to the common event, or to a parallel event? When you say event commands, do you mean like erase event, or exit event processing?
I ment the whole codebox represents eventing/eventcommands not a Script. The "End" represents no command, ignore it.

Your Quote"I was stupid and forgot to mention that the fishing event is set as an autorun common event, that triggers by a switch I turn on when the player presses the ok button."

Ok i missread here. Ah good Idea with the Autorun active, the player cant move away while fishing. You did that good, i forgot about it.

Your Quote "2. I tried that, and it works, but I'm stuck in a loop every time I click to exit the text box. I tried adding a self switch to turn on then off, but it's still stuck."
You insert the Eventcommands after your Textbox. Depending on how many Textboxes you got, maybe somewhere else. But i believe this should work.
Code:
Textbox (Your Textbox)
Loop (Eventcommand)
If OK button pressed? (Eventcommand Conditional Branch)
if yes Wait 1 Frame (Eventcommand Wait)
else Break Loop (Eventcommand Break Loop)
Ok, that's what I thought you meant, but I just wanted to make sure. I tried it after the textbox where you catch the fish, but it didn't work. I'm able to cancel the textbox by pressing the cancel button, but not the OK button. I'm not sure where else to add it.

I uploaded an image of my cast event. It's pretty much what he did in the video.

Here's my generate fish common event:

Spoiler
Code:
◆Control Variables:#0082 Random = Random 1..1000
◆If:FishingLevel = 1
  ◆If:Random ≤ 100
    ◆Comment:10% (100/1000)
    ◆Play SE:Water2 (90, 120, 0)
    ◆Text:None, Window, Bottom
    :    :You caught a Trout!
    ◆Control Variables:#0083 FishingXP += 15
    ◆Change Items:Trout + 1
    ◆Jump to Label:End
    ◆
  :Else
    ◆If:Random ≤ 400
      ◆Comment:30% (300/1000)
      ◆Play SE:Water2 (90, 120, 0)
      ◆Text:None, Window, Bottom
      :    :You caught a Carp!
      ◆Control Variables:#0083 FishingXP += 10
      ◆Change Items:Carp + 1
      ◆Jump to Label:End
      ◆
    :Else
      ◆If:Random ≤ 500
        ◆Comment:10% (100/1000)
        ◆Text:None, Window, Bottom
        :    :You caught a stick.
        ◆Change Items:Water-logged Stick + 1
        ◆Control Variables:#0083 FishingXP += 2
        ◆Jump to Label:End
        ◆
      :Else
        ◆Play SE:Cancel1 (90, 100, 0)
        ◆Text:None, Window, Bottom
        :    :You catch nothing.
        ◆Jump to Label:End
        ◆
      :End
      ◆
    :End
    ◆
  :End
  ◆
:End
◆If:FishingLevel = 2
  ◆If:Random ≤ 100
    ◆Comment:10% (100/1000)
    ◆Play SE:Water2 (90, 120, 0)
    ◆Text:None, Window, Bottom
    :    :You caught a Chub!
    ◆Control Variables:#0083 FishingXP += 25
    ◆Change Items:Chub + 1
    ◆Jump to Label:End
    ◆
  :Else
    ◆If:Random ≤ 310
      ◆Comment:21% (210/1000)
      ◆Play SE:Water2 (90, 120, 0)
      ◆Text:None, Window, Bottom
      :    :You caught a Sunfish!
      ◆Control Variables:#0083 FishingXP += 20
      ◆Change Items:Sunfish + 1
      ◆Jump to Label:End
      ◆
    :Else
      ◆If:Random ≤ 520
        ◆Comment:21% (210/1000)
        ◆Play SE:Water2 (90, 120, 0)
        ◆Text:None, Window, Bottom
        :    :You caught a Trout!
        ◆Control Variables:#0083 FishingXP += 15
        ◆Change Items:Trout + 1
        ◆Jump to Label:End
        ◆
      :Else
        ◆If:Random ≤ 730
          ◆Play SE:Water2 (90, 120, 0)
          ◆Text:None, Window, Bottom
          :    :You caught a Carp!
          ◆Control Variables:#0083 FishingXP += 10
          ◆Change Items:Carp + 1
          ◆Jump to Label:End
          ◆
        :Else
          ◆If:Random ≤ 830
            ◆Play SE:Water2 (90, 120, 0)
            ◆Text:None, Window, Bottom
            :    :You caught a stick.
            ◆Change Items:Water-logged Stick + 1
            ◆Jump to Label:End
            ◆
          :Else
            ◆If:Random ≤ 850
              ◆Comment:2% (20/1000)
              ◆Play SE:Dive (90, 100, 0)
              ◆Text:None, Window, Bottom
              :    :You caught an Eel!
              ◆Control Variables:#0083 FishingXP += 50
              ◆Change Items:Eel + 1
              ◆Jump to Label:End
              ◆
            :Else
              ◆Play SE:Cancel1 (90, 100, 0)
              ◆Text:None, Window, Bottom
              :    :You catch nothing.
              ◆Jump to Label:End
              ◆
            :End
            ◆
          :End
          ◆
        :End
        ◆
      :End
      ◆
    :End
    ◆
  :End
  ◆
:End
◆If:FishingLevel = 3
  ◆If:Random ≤ 90
    ◆Comment:9% (90/1000)
    ◆Play SE:Water2 (90, 120, 0)
    ◆Text:None, Window, Bottom
    :    :You caught a Bass!
    ◆Control Variables:#0083 FishingXP += 35
    ◆Change Items:Bass + 1
    ◆Jump to Label:End
    ◆
  :Else
    ◆If:Random ≤ 240
      ◆Comment:15% (150/1000)
      ◆Play SE:Water2 (90, 120, 0)
      ◆Text:None, Window, Bottom
      :    :You caught a Bream!
      ◆Control Variables:#0083 FishingXP += 30
      ◆Change Items:Bream + 1
      ◆Jump to Label:End
      ◆
    :Else
      ◆If:Random ≤ 390
        ◆Comment:15% (150/1000)
        ◆Play SE:Water2 (90, 120, 0)
        ◆Text:None, Window, Bottom
        :    :You caught a Chub!
        ◆Control Variables:#0083 FishingXP += 25
        ◆Change Items:Chub + 1
        ◆Jump to Label:End
        ◆
      :Else
        ◆If:Random ≤ 540
          ◆Comment:15% (150/1000)
          ◆Play SE:Water2 (90, 120, 0)
          ◆Text:None, Window, Bottom
          :    :You caught a Sunfish!
          ◆Control Variables:#0083 FishingXP += 20
          ◆Change Items:Sunfish + 1
          ◆Jump to Label:End
          ◆
        :Else
          ◆If:Random ≤ 690
            ◆Comment:15% (150/1000)
            ◆Play SE:Water2 (90, 120, 0)
            ◆Text:None, Window, Bottom
            :    :You caught a Trout!
            ◆Control Variables:#0083 FishingXP += 15
            ◆Change Items:Trout + 1
            ◆Jump to Label:End
            ◆
          :Else
            ◆If:Random ≤ 840
              ◆Play SE:Water2 (90, 120, 0)
              ◆Text:None, Window, Bottom
              :    :You caught a Carp!
              ◆Control Variables:#0083 FishingXP += 10
              ◆Change Items:Carp + 1
              ◆Jump to Label:End
              ◆
            :Else
              ◆If:Random ≤ 910
                ◆Play SE:Water2 (90, 120, 0)
                ◆Text:None, Window, Bottom
                :    :You caught a stick.
                ◆Change Items:Water-logged Stick + 1
                ◆Jump to Label:End
                ◆
              :Else
                ◆If:Random ≤ 930
                  ◆Play SE:Dive (90, 120, 0)
                  ◆Text:None, Window, Bottom
                  :    :You caught an Eel!
                  ◆Control Variables:#0083 FishingXP += 50
                  ◆Change Items:Eel + 1
                  ◆Jump to Label:End
                  ◆
                :Else
                  ◆If:Random ≤ 950
                    ◆Play SE:Dive (90, 120, 0)
                    ◆Text:None, Window, Bottom
                    :    :You caught a Bullhead!
                    ◆Control Variables:#0083 FishingXP += 150
                    ◆Change Items:Bullhead + 1
                    ◆Jump to Label:End
                    ◆
                  :Else
                    ◆Play SE:Cancel1 (90, 100, 0)
                    ◆Text:None, Window, Bottom
                    :    :You catch nothing.
                    ◆Jump to Label:End
                    ◆
                  :End
                  ◆
                :End
                ◆
              :End
              ◆
            :End
            ◆
          :End
          ◆
        :End
        ◆
      :End
      ◆
    :End
    ◆
  :End
  ◆
:End
◆Label:End
◆Control Switches:#0082 GenerateFish = OFF
◆Control Switches:#0085 FishEnd = ON

It's pretty long, but it only goes to lvl 3 atm. The FishEnd switch is used to switch the bubbles graphic to blank when the fishing is over. It does, but it doesn't come back when I try again.

This does seem complicated, but like I said, I'm trying to learn how to do this without scripts or plugins. I've just started learning javascript, so if I need to use a script, that's fine.
But if you press cancel to close the Textbox, than the Event will not retrigger. Just tested the code for the OK Button, its working on my end,
atleast in the test very simple test build. I know the condition for ok button is in another event in your project, but for ease of testing i made all in one. Test it with the Loop and Test it without it, you will notice the difference in the amount of textboxes showing up.
testloopusdot123.PNG


You said you canged the Graphic of your Bubbles Event. I have not the code infront of me. But i assume its there, just without graphic,
or does the whole fishing stop to work?

The Command "Jump to Label - End" seems to be redundant in this set up.
But it doesnt hurt anything eather, so it doesnt matter.
Hey. Sorry I haven't replied in awhile, but I had to work 10 days straight, and I was exhausted.

Anyways, I found a good little minigame for the fishing, which fixed the loop problem I was having. I used the plugin from this video:



I really liked the look of it, and like I said, it fixed the loop I was having.

I also was able to get the bubbles to turn off by having just the image on a second page with a self switch as it's trigger.

The only thing I have left is the rare fish spawn, which I'm thinking of using a random number to activate the spawn and having it on a timer.
I completely forgot to thank you for all your help @Bex. I've been so swamped at work, that I forgot about it. You've been a great help!
Thank you, i hope you were able to build your Mechanic.

Original thread: https://forums.rpgmakerweb.com/threads/have-an-event-start-in-a-seperate-region.110203/