NichnotFound

Villager
Member
Joined
Sep 8, 2022
Messages
27
Reaction score
5
First Language
PT - BR
Primarily Uses
RMMV
there is a way to like, press 1 and use a item?
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
8,859
Reaction score
6,666
First Language
English
Primarily Uses
RMMV
You could use Yanfly's Button Common Events to assign keys to call common events. Those can't normally "use" an item because that pulls up additional scenes like targeting the item's effects on a part member and such.

If you're making, like, an ARPG where there's just one actor and using an item will have an effect without using the Item scene, whatever ARPG plugin you're using might have plugin commands or script calls you could use from a common event.

Or you can get some more low-level code that will use an item on an actor in a predefined way and call that from the common event.
 

Danatoth

Veteran
Veteran
Joined
May 19, 2023
Messages
76
Reaction score
40
First Language
English
Primarily Uses
RMMV
Parallel common event that detects button being pressed, then uses the item.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
38,464
Reaction score
10,888
First Language
German
Primarily Uses
RMMV
then uses the item.
unfortunately there is no "use item" event command
Going that route is a lot more complex as you'll need to make the effect by commands and then remove the item from inventory as if it had been used.
and the simulation of the effect with event commands is not always the same as the item use.
 

Danatoth

Veteran
Veteran
Joined
May 19, 2023
Messages
76
Reaction score
40
First Language
English
Primarily Uses
RMMV
unfortunately there is no "use item" event command
Going that route is a lot more complex as you'll need to make the effect by commands and then remove the item from inventory as if it had been used.
and the simulation of the effect with event commands is not always the same as the item use.
Yeah, what I had to do is to use the "select item" plugin command. Then at the end run a common event that has a conditional branch that checks the variable stored from the select item command. Then depending on the variable's value it runs another common event doing the thing I wanted associated with using the item. Really tedious but I couldn't think of another way.
 

AquaEcho

Script Kitty
Veteran
Joined
Sep 20, 2021
Messages
563
Reaction score
261
First Language
English
Primarily Uses
RMMV
The way ChronoEngine does it is the items are basically premade events on a template map tied back to an item database entry through comment tags. You can then assign the item to a button for instant use by calling that event from the template map.
 

Shaz

Keeper of the Nuts
Global Mod
Joined
Mar 2, 2012
Messages
46,014
Reaction score
16,832
First Language
English
Primarily Uses
RMMV

I've moved this thread to Plugin Requests. Thank you.

 

Latest Threads

Latest Profile Posts

Trying out Greedfall. The story is interesting and the voice acting is good, but holy cow are the faces and their animations distractingly terrible.
Ok so I guess I don't need 400+ events on one map.
inPr9l.png


Continuing our countdown with Capsule Monster #12 Scared Crow! This support CapMon can attack from distance with it’s Scared Bow and blind enemies!
https://thelastyurisamurai.itch.io/capsule-monsters-tactics
1685999595709.png
slowly making progress


When you dont have any memories, walk into an old bar and you feel completely out of place...
My next mission is to make something in the style of an Atari 2600 game. Games from that era have looks that only a mother could love. Is it even possible to make something look visually appealing with this style, let's see!

Forum statistics

Threads
131,667
Messages
1,222,065
Members
173,411
Latest member
alaspitchi3n
Top