Newbie here. I need a little help.

Joined
Aug 22, 2014
Messages
5
Reaction score
0
First Language
English
Primarily Uses
I'm new to this game engine and I've already hit a snag that I seem to not be able to solve.

You see, my problem is with using common events and skills together.  you see, I want to create an in-menu crafting system that involves skills for my game, but the issue is that whenever I attach my common event to my skill and use it, It boots me out of the game menu.

the setup for the common event is simple.

Conditional Branch: Potion in Inventory

      >Change Items: Potion+1

      >Change Items: Bottle -1

Else:

(Left blank)

I attached this common event to a skill for my actor to use.   whenever I use this skill, it works as a crafting thing, but it boots me out of the game menu.

Now I tried inserting the Open Menu Screen command under the Scene Control group, but it doesn't gel very well as the player has to scroll down to the skill menu every time s/he want to craft another item, and I want this crafting system to be as effortless as simply using a skill.  I don't want to screw with the engine too much either, so I looked up something called a "Script Call", but frankly, I suck at coding (but that's something i wish to rectify).

Is there a fix to this within the base game engine, using script calls or basic functions?  Because this is a game I wish to eventually sell, so using someone else's engine is not an option.

if TL;DR look at the pretty picture I attached.

TL;DR.jpg
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
First you wouldn't be using someone else's engine, you would be using someone else's script.  And many scripts can be used for commercial games.

I don't understand your conditional branch. What it is actually saying is that before it will do anything, it must already have a potion in the inventory.  If you have got such a potion, it takes a bottle away from you and gives you a second potion.  Shouldn't it be checking to see if there is a bottle in the inventory, not a potion?  It's going to need a bottle, but at the moment it's not checking that one is available.

Try that alteration without messing with anything else in your menus and see if it works.

And by the way, could you give informative topic titles?  Everyone posting in this section needs help.  People need to know what sort of help you want so that they can know before opening if it's something in their range of expertise or not.  It also means that in the future if someone has a similar difficulty, they can see that the topic has already been discussed.
 
Last edited by a moderator:
Joined
Aug 22, 2014
Messages
5
Reaction score
0
First Language
English
Primarily Uses
Woops, that bit was a mistake, thanks for catching that.  

it's now: Conditional Branch: Bottle in Inventory

However, when I make that alteration the problem is still the same.  The main issue that I was talking about is that I get booted out of the skill screen whenever I use a skill with a common event attached.

and yes, the next time I make a topic, I'll be a little more informative.  i'm not very used to posting on forums.

thank you for your contribution, but my question still hasn't been answered.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,675
First Language
German
Primarily Uses
RMMV
Unfortunately, that is the default behaviour - using a skill will end the menu screen, especially if it calls a common event - because common events aren't executable inside the menu screens.


To change that, you'll need scripts - depending on how you want it to work, either a direct crafting script with its own screens or something to enable common events during menu screens.


Another tip: you should make a skill type "crafting" (on ther terms tab in the database) for those skills instead of adding them to the special skills - this would help the player organize everything.
 
Joined
Aug 22, 2014
Messages
5
Reaction score
0
First Language
English
Primarily Uses
My main issue is coding and working outside of the basic commands, so I already know about the Skill Type Terms, I'm just using the default "Special" designation as a base while I work on getting my systems in order.  The character you saw is my skill test mule.

can you guys give me any leads?  I suck at coding, so you'll have to treat me as a newbie here and just give it to me straight.  I'm studying the Ruby script, but I'm not making much progress.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,675
First Language
German
Primarily Uses
RMMV
There is no need for you to program everything yourself, the master script list contains about a thousand scripts that have been made before, and most of them allow commercial usage (depends on the scripter, you have to check the terms-of-service for each script yourself).


Simply searching for "crafting" on the MSL should give you several scripts to choose from.


You can follow the link in my signature to some of the more important tutorials, and the master script list is also linked there.
 
Joined
Aug 22, 2014
Messages
5
Reaction score
0
First Language
English
Primarily Uses
All right, now that's just the last straw.

Do you expect me to find my solution in that mess? I looked through it already for a solution before I even considered making a forum account and I sure as heck didn't find it.  which tutorial will help me in regards to the problem that I've asked for a solution for?  I sure as hell can't use anybody else's scripts, because it's not only lazy, but problematic, considering that i'd need to study that code extensively if it conflicts with other code that i'd eventually need to put in.

If I could sort through all of that and actually learn about what I need to do in order to fix my situation, then I'd never have to post on this forum.

What's the point of asking a question on here if someone's just going to redirect you to something anyone could look at?  I made an account here to specifically ask about a certain problem and get a definitive answer, not get redirected to some database that I've already scoured for answers to no avail.

Could someone PLEASE answer my question with an answer that actually helps me in some way?

here, I'll make it even more specific so people can't possibly get distracted by something that isn't the question:

What is the method that stops a common event from exiting out of the game menu when you attach it to a skill and use that said skill?
 
Last edited by a moderator:

_Shadow_

Tech Magician Level:
Moderator
Joined
Mar 2, 2014
Messages
4,078
Reaction score
2,654
First Language
Greek
Primarily Uses
RMMZ
EDITED EDITED EDITED 

Hello ThatGuyFromThatPlace.

Let's calm down a bit shall we? :)

I am not sure I can give you an acceptable solution,

but I am pretty sure I can give you some suggestions.

First off let's see what is going on with that kicks you out of the menu.

You ask to run a common event.

Common Events are events that will be executed from the map.

I can explain it like a programmer, but that would just make it worse for you.

Just accept that that's how Common Events are designed to work.

Now there are two solutions on your problem.

First:

Go to Script Editor, scroll down the list on your left and find the Materials.

There is a note (Insert here below that).

Below the insert here, there is an empty cell

RIGHT click on that and select Insert.

You create another empty cell.

Create a bunch of them, let's say 5.

Now selecting one with left click, give it a name using the input box on the bottom left of the window.

You did that?

You can use now any script you like by just doing a copy paste on your right.

NO MODIFICATIONS. Just copy paste.

You must be sure though that it is beginner friendly.

Quality scripts, like Yanfly's for instance ARE beginner friendly.

What does that mean?

It means that you will be able to do what you want just with a copy paste,

or you should have to make a script call, as Shaz suggested.

And how can do a correct script call?

That's what QUALITY script means.

On the top of the script, there must be some instructions  on how to use it, including a proper calling.

It seems intimidating.

But even if you can not understand anything about programming, you can do a copy paste in the scripts, and then a copy paste from the instructions into your common event.

Event Page 3 contains a command named Script. That's what you will use to enter a call.

Second:

Use a different approach.

Keep your common event but instead of skill use events.

You can make on the map places where these "Skills" can be used.

For instance you can make a crafting table for weapons, a crafting table for armor, a brewing table etc etc, using special table graphics on the map. And you can make an omnitable that you can make everything on it.

Calling a common event, when the player press action button in front of a table seems nice and realistic.

The event must have of course the graphics of a table (or blank but having a table graphic behind it).

Third:

YOU @#$#@ SCUM!!! I don't want a crafting table!!!

I want to make it work from the menu, without looking lame!

You can USE an ITEM as a brewing KIT for instance.

A kit the player bought cheap from a shop, let's say 1 gold and you start with 1000 gold so you could get 100 from start.

So each time you use it, the skill is called. You might be on the map, but this seems legit since the "kit" is applied and opened.

Do you wanna make it look better?

:p

Fadeout screen.

Hide hero.

Make a show picture with a nice background.

Wait 1 second

Then call the common event.

Fade in screen

Show Hero.

Erase picture.

Done! 

Here is a game I made to show ALL commands and a bunch of things you can do.

Click HERE.

Cheers.

Edit: Correcting myself, massive edit, giving two new solutions and of course the best as given answer so far (by Andar AND Shaz) .

EDITED EDITED EDITED 
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
All right, now that's just the last straw.


Do you expect me to find my solution in that mess? I looked through it already for a solution before I even considered making a forum account and I sure as heck didn't find it.  which tutorial will help me in regards to the problem that I've asked for a solution for?  I sure as hell can't use anybody else's scripts, because it's not only lazy, but problematic, considering that i'd need to study that code extensively if it conflicts with other code that i'd eventually need to put in.
EVERYBODY searches through the master script list. Why should you be any different? Andar even told you what search term to use. It's easy - go to the page, hit Control+F and type in the search term. Then click the "next" arrow to go through them and see if any are useful. What's so hard about that?

If I could sort through all of that and actually learn about what I need to do in order to fix my situation, then I'd never have to post on this forum. ... I made an account here to specifically ask about a certain problem and get a definitive answer, not get redirected to some database that I've already scoured for answers to no avail.
How shortsighted of us to try and teach you how to find things yourself so you don't have to post asking for help. And obviously our mindreading skills are lacking, as we didn't know you had "scoured" that list already, since you never told us. We'll try and brush up on that a bit.


Ease up on the aggression. Being rude and demanding is not going to make people help you any faster (if at all).


You CANNOT stop a common event from exiting the menu. Common events do not RUN in the menu. The run only on the map. So if you want to execute a common event, it MUST return to the map to do it.


What you CAN do is add a script call at the end of your common event to call up the menu again. It will look something like this:

Code:
Script: SceneManager.call(SceneSkill)
but I don't have Ace with me so I can't go and check/test that. Maybe someone else will be kind enough to do it and let you know if you need to make any changes.
 
Last edited by a moderator:

Wavelength

MSD Strong
Global Mod
Joined
Jul 22, 2014
Messages
5,624
Reaction score
5,104
First Language
English
Primarily Uses
RMVXA
Try changing the Scope of the skill from None to One Ally (or similar).  I know that doesn't really make any sense, but I had a similar bug in a set of Items that I created for a game that would run a common event and I think that changing the scope was what corrected it.  If that doesn't work I can investigate further.

Like several people have said though, watch your tone when you post.  People are trying to help you and it's not fair to get exasperated if their solution doesn't work for you.
 

_Shadow_

Tech Magician Level:
Moderator
Joined
Mar 2, 2014
Messages
4,078
Reaction score
2,654
First Language
Greek
Primarily Uses
RMMZ
Edited my suggestions, after I tried out a few things.

What I was suggesting so far, was pure bullcrap.

After the edit, I provide you with a few good ideas that will actually work, including what Andar and Shaz said.

They don't give you such a suggestion for nothing. They know what they are talking about.

This is the best solution.

But if you are getting so intimidated by scripts, I have a few "easier solutions" to suggest.

Scroll up and read the EDITED post.  :)

Please note that nobody gets paid for helping someone in a forum.

Forum has the meaning of gathering people together, who have good intentions and help each other,  in order to overcome all the difficulties together.

It works like a community. So getting angry for getting an answer that does not fit your needs, does not make any difference, don't you think?

I know how mad you must be. Trying to make a game on this, having the passion to go on, but having JUST THIS obstacle might make you really angry.

Tell you what. Check out my edited post. If something fits your needs, please inform us.

If not, please give me a reply here that describes why each solution does not fit your needs, in order to try to come out with another solution.

If you feel uncomfortable to express WHY something does not your needs, send me a private message.

I will reply to you here, WITHOUT including any info on your "why".

I want to reply here, because a problem that is solved must be shared, or a forum has no meaning. I hope you are ok with that.

Cheers.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD

Forum statistics

Threads
105,868
Messages
1,017,072
Members
137,578
Latest member
JamesLightning
Top