Multi-item

huntertreat14

Villager
Member
Joined
Apr 14, 2015
Messages
11
Reaction score
1
First Language
English
Primarily Uses
Im sure there is probably a good tutorial for this somewhere but i couldnt find it. Im trying to make a quest where you have to go out and gather 5 plasmas from slimes and bring them back to a guy to get the reward. I know i need a variable im just not sure how to get it to work. Im sorry if this is a totally dumb question.
 

ArcaneEli

Mage of Thunder
Veteran
Joined
Mar 24, 2012
Messages
205
Reaction score
35
First Language
English
Primarily Uses
You can do it a simple way of making several event pages like

EventPage A

 Condional Branch=

OH YOU HAVE SLIME? THANKS BRO

Slime -1

Variable +1

Self Switch B = ON

EventPage B

 Condional Branch=

OH YOU HAVE ANOTHER SLIME? THANKS SIS

Slime -1

Variable +1

Self Switch C = ON

etc
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,358
Reaction score
7,671
First Language
German
Primarily Uses
RMMV
Follow the link in my signature, it will list several tutorials. The one you want most is the "Variables Guide".
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Do you want them to be able to bring them back to him one at a time? Or to have him send you away until you've got all 5?


If the first, when he asks you for slimes, set a variable to 0. Each time you talk to him, see if you have a slime in your inventory. If you do, use Control Variables to determine how many slimes you have. Then add that to the variable you're using to count, and remove them from inventory. Then do a conditional branch to see if the variable is 5 or more.


If the second, when you talk to him, use Control Variables to determine how many slimes you have in your inventory. Then do a conditional branch to see if that variable is 5 or more. If it is, remove 5 slimes from inventory and turn on a self switch (if it's ONLY the NPC event that will be changed) or a regular switch (if you want to change the NPC event along with others when you have enough slimes).
 

huntertreat14

Villager
Member
Joined
Apr 14, 2015
Messages
11
Reaction score
1
First Language
English
Primarily Uses
Follow the link in my signature, it will list several tutorials. The one you want most is the "Variables Guide".
I did this. That helped SO MUCH! My quest is working perfectly and ive started using a lot more variables in my game. Thank you guys soomuch for the help. :D
 

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

Latest Threads

Latest Profile Posts

Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
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:

Forum statistics

Threads
105,855
Messages
1,017,007
Members
137,563
Latest member
MinyakaAeon
Top