How to give items manually to a NPC

TheDrisk

Villager
Member
Joined
Sep 11, 2013
Messages
6
Reaction score
0
First Language
English
Primarily Uses
Hello all,  I have recently bought RPG Maker on the recent steam sale (VX ACE) and have been having great fun playing around with it and can achieve most of what I want to do.  There is a few bits I would like to do that I am not sure how to do.  Any help would be greatly appreciated...

What I am ideally trying to do is mix in adventure style puzzles into the RPG .. where you can give an item to a player or object or even combine two objects together in an inventrory.   I have worked out how to do this automatically  with events... i.e.where if you have picked up an object and hit the action button then the NPC checks you have the item and does the required action.  But what I want is it to instead involve some thought from the player..where ideally the player would have to go into their inventory and have to select and give it to the NPC or object.  The same would be for combining items by manually selecting an item and then giving it to another item in your inventory.

Oh and and if someone has a little time can they point me to any link that explains big monster graphic sheets a bit more... I have made copies and have drawn my own animated big monster but I wanted to see can I make things even bigger than the monsters on these sheets.

Any help on this would be fab as I am quite stumped on this.

Yours being far too ambitious with writing my own game..TheDrisk
 
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
The Select Key Item command might be useful to you. First page of event commands, under the first group (Message).


It lets the player select a Key Item (set up as such in the Items tab) and puts the item id into the variable you choose. So you might do two Select Key Item commands into different variables, then check if they are the required items (in any order) to make the new object.


You could also check out some cooking/crafting scripts, but those are usually in the form of recipes that tell you what items you need, and if you have enough, will let you make it, so no real decision making required by the player.


Yes, you can make larger monsters than the default. In fact, there ARE some "big" monster sprites, though they only have one direction worth of animation, so you need to use the Direction Fix box when adding them to an event.


The rules on sprite creation is that a single sprite consists of 3 columns, all the same width, and 4 rows, all the same height. You can then leave it as a single spritesheet by putting a $ in front of the file name (Ace looks for that to know whether there's just one character, or 8, on the sheet), or you can combine it with another 7 characters and omit the $ from the file name.
 

TheDrisk

Villager
Member
Joined
Sep 11, 2013
Messages
6
Reaction score
0
First Language
English
Primarily Uses
wow thanks for the quick response... I will look into Key items and the scripts.. surprised in an RPG there isnt a default way to give another NPC an item... but really happy for a place to start with on your kind response... thanks again.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Well, NPCs aren't "saved" so they don't have their own inventories. If you want to "give" an item, you just reduce the number of items you're carrying and display a message saying you're giving it to them. Then you can turn on a switch that conditions one of the NPC event pages, so that they don't ask for the item again, if you want.
 

TheDrisk

Villager
Member
Joined
Sep 11, 2013
Messages
6
Reaction score
0
First Language
English
Primarily Uses
ah ok.. yes not interested in seeing  the item once given... its really a mechanism to have the player manually go in their inventory and give an item to the NPC...  i.e.  You pick up item Widget and then give Widget to another NPC character by going into your inventory selecting it and some how giving it to the NPC charecter...   At momement I have it using event checks where it will do action if player has the item and press action button with NPC ( which I believe you were describing)...  This of course works..but it may means its solving it for me as the player as I may not have thought to give that item to that NPC...

:)
 
Last edited by a moderator:

TheDrisk

Villager
Member
Joined
Sep 11, 2013
Messages
6
Reaction score
0
First Language
English
Primarily Uses
awesome thanks for this...now I just need how to insert the script into my game :)    (sorry I am such a newbee).. but it gives me a good starting point.
 

TheDrisk

Villager
Member
Joined
Sep 11, 2013
Messages
6
Reaction score
0
First Language
English
Primarily Uses
ok have added in a new script although it errors when start as doesnt like some of Galvs code.. but at least I have something to work with now so thankyou (even if it a wee bit more complex todo than I had hoped :-/ )   Cheers again
 

TheDrisk

Villager
Member
Joined
Sep 11, 2013
Messages
6
Reaction score
0
First Language
English
Primarily Uses
right got it working.. just need to get my head around it all lol .. .talk about me jumping in the deep end :)   thanks everyone for you quick, helpful and kind responses.  Nice to see a tool like this has such a thriving and helpful community attatched to it.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,355
Reaction score
7,669
First Language
German
Primarily Uses
RMMV
TheDrisk, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.

If you have any problems with it, just ask again.

There are a lot of scripts available (I believe the master script list has passed 900 scripts, and not every script is listed there), so for most cases of missing functions we will be able to point you to one or several solutions.

If this problem is solved, simply report the topic with a comment "please close"
 

pawsplay

Veteran
Veteran
Joined
Mar 29, 2012
Messages
168
Reaction score
5
First Language
English
Primarily Uses
You could just make a Give option on the action button for every NPC. In many cases, the NPC will just say "Thanks!" (or "No thanks!") but if it's the right item and the right NPC, the NPC responds as you program them. You could even create a Common Even that sorts through a standard selection of Key Items and flags the one chosen as a variable.
 
Last edited by a moderator:

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

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,853
Messages
1,016,990
Members
137,562
Latest member
tamedeathman
Top