Help with a common event...

Okay, I made this account for this post so bear with me please ha ha ha...

I am making a pirate game with a ship boarding system. It works like this, you select "Board" (guard has been replaced) and there is a twenty percent chance of it calling a common event that removes your ship party member, adds your capitan, but it stops working there. I don't  know how to post event stuff on here so if someone could tell me I'll post the exact event.

Also I would rather have it so that when the boarding battle is over you could add that kind of ship to your "Fleet" but how could I make it so the game recognizes what ship it was... or would I have to make multiple common events? Even then How could I do that with One Board action... Man this is complicated lol

Okay Shaz :
vcjz.png
Like this?
Take a screenshot of your entire common event window and post it here so we can take a look. Also a screenshot of the entire event window that calls the common event.


Instructions for taking screenshots and adding to your post are below (excuse the wall of blue text).


How to take a Screenshot:


You've heard people say to take a screenshot, but how does one take a screenshot of their game? Simple, while the game is running, hit the Prt Scr button on your keyboard, which is located right next to your F12 key. If you're using a laptop, you might have to use the Fn key in combination with the Prt Scr key to get it to work.

Now that you've pressed the button, it's time to paste this screenshot into an image editing software. If you don't have anything fancy such as Adobe Photoshop, GIMP or Paint.NET, no worries; you can use MS Paint instead. Open up your image editing software, create a new file, and then hit ctrl+v on your keyboard, or simply right click on the screen and select paste. This should instantly paste the screenshot into your image editing software. You can go ahead and crop the image to suit your needs, or if you don't even know what that means, you can just upload it as it is.

Save the image as a PNG, or if you really need to, as a high quality JPG.


How to upload the image to the forums


Now that you have you have an image on your computer you'd like to show us, how can you get it to show up on the forums? Firstly, you need to find an image hosting site, photobucket.com or imageshack.us are popular ones. If you have another image uploading website, great - use that one! Either way, upload it to the site, and then get the direct link. Don't get the resized link, or the thumbnail link, but the direct URL. You'll know you have the direct URL if the URL ends with the file extension you saved your image in (which will hopefully be .png).



Once you have this direct URL to your image, simply use the IMG tags in your forum post and paste the URL in between them. If this image is big, please leave the image in spoiler tags.

IMG tags:
image.png
Sorry I probably should have put that in a new post

vbue.png
Yeah, that's okay. A new post is good, because it lets us know there's something added 🙂


Can you do the same with the event that calls the common event?
when you select the board command in battle it calls the event

ijew.png
Skill 2 is Guard by default. Strange things will happen if you change it to something else. You need to find a different way of implementing it.


If you have changed the scripts, or are using a script, you'll need to post a link to it so people can check.


Also tell us what IS happening? Is ANY of that common event being run? JUST the battle? Or does anything in the "if win" section get run?
No I have made sure the Board skill works, so no worries there, its just the event. I select Board:

mdy0.png


Then It goes straight back to the battle:

z14x.png
Show me the event where you call the battle.


Does it return to the map or do a transition to battle in between? Is it the SAME battle, or a NEW battle?


Edit - oh - your common event is called from WITHIN the battle, but then your common event has ANOTHER Battle Processing call inside it. If you want your common event to end the battle and do that other stuff, just take what you've got inside the [if win] group and paste it after your Show Text ("You've successfully boarded"). Then get rid of the battle processing call and everything below it. THEN use the Abort Battle command to end the battle that was happening when you first used the Board command.


You might also find that the 20% doesn't work. The common event will probably be called regardless of whether the 'guard/board' command succeeded. Instead, you should give it a 100% success rate, and inside the common event, set a variable to a random number between 1 and 100, and then do a conditional branch to see whether it's 20 or less - if it is, do your boarding stuff and end the battle, if it isn't, optionally show a message saying the attempt failed, or just don't do anything and let it return to the battle normally.
which battle? against the ship or the actual crew? I belive its the ship you are asking for so here:

asr0.png
read my edited post. You're going about the common event the wrong way. You're already in battle, so you don't need it to call another battle.
Alright but I also have it so you have to battle a crew before you can take the ship... how would I go about that?

I have the troop already set up. (see Pirate CrewA in my board Merch event in the first image I posted)
Oh, I didn't realize it's a different troop.


So after your "you take the ship" text, add the Abort Battle command there. And THEN your second battle stuff.
This is what I have now, but it now takes me back to the map, without having me fight the crew.

qqy6.png
What if you take the second part of that event (from the new battle) and place it into another event (or another common event) set to Autorun, with a switch as a condition, and just turn on the switch in this common event? Make sure to turn it off again after the battle (or to add a new event page and make it active after the battle) so it doesn't keep repeating.
Strange... that should work but its not.... And I know I'm being difficult lol and I'm sorry.

secl.png


Oh and how do you paste that url? it takes a long time to type it and ctl V dosn't work
ctl+v should work.


So let me take a step back ...


You interact with the boat, and it launches the first battle.


You take the Board Ship option in the first battle. It has a 20% chance of success.


When it succeeds, the first battle should end, and then you battle the crew.


When you beat the crew, you get the option to turn the ship into whatever you want.


Is that it?


(if tab 1 in that event is blank, just delete the page. You don't have to have a blank page with no condition, if all the other pages have conditions).
Viola! I put that switch hitter before my abort battle and it worked! not a seamless as it should be but that's an easy fix. thank you so much Shaz! your little blue squirrel ass is the best!
Yeah!


You want to get rid of that Exit Event Processing command in the [When Privateer Ship] block - if that happens, the switch won't be turned off, and it'll just keep repeating. You don't need it, since the event would drop to the bottom (turn off switch) after those commands are run anyway.


This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/help-with-a-common-event.21302/