check if Item is being used

Raikiri91

Villager
Member
Joined
Aug 30, 2014
Messages
23
Reaction score
0
First Language
English
Primarily Uses
RMVXA
a script call for checking if the item is being used rather than just in inventory for an event. any Ideas?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,674
First Language
German
Primarily Uses
RMMV
[move]Ace support[/move]
The script forum is for presenting scripts you wrote yourself. However, I'm moving this to Ace support instead of script support, because I don't think you'll need a script at all, but are under some misconceptions and most probably this can be handled by pure eventing.

First, item use is instant - there is no time directly involved, so any event can only be either before or after the item use, never during. That is why such a script call simply doesn't exist.

If the item causes a time-lasting response like adding a state for some steps or turns, then you can check the presence of the state directly by conditional branch - no need for a script call

As an alternative, an item can call a common event on use - and you can use that event to handle any specific interaction that might be needed at this moment, including map interactions - again no need for a script call.

And third, if you have an event that need the item used as a payment, there is a much better way of using the select key item command to select and pay with that item instead of having it used on map.

If what you want is something else, please describe what you want to do instead of how you want to do it (the "check for used item" is how to do something, but you never described what that something is that you want to do in the game), then we can probably point you to the correct solution.
 

Raikiri91

Villager
Member
Joined
Aug 30, 2014
Messages
23
Reaction score
0
First Language
English
Primarily Uses
RMVXA
The goal I am trying to accomplish is this;
I am using falcao liquid pearl v3 and there is a hotbar. I want to be able to use the tool from the hotbar. falcao's script registers when an item is being used from the hotbar already, all I need is to be able to tell the event (an ore vein in this case) to check if the item (a pickaxe) is being used, rather than just if the pickaxe is in inventory
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,674
First Language
German
Primarily Uses
RMMV
[move]Script Support[/move]
Glad I asked for details, because no answer you would have gotten from your first post would have been able to help you...

First, the items on the pearl hotbar have absolutely nothing to do with the regular items - because falcao completely rewrote that part of the engine to create that hotbar. I don't even think that using one of the tools (not items) from the hotbar will register as an item use at all, because their function is completely different after the script's rewrite.

Please give a link to the script so people can check it for you - with some luck that function might have been prepared by Falcao, but if not then you'll need a script modification for falcao's script - this cannot be done by anything in the default engine at all.
 

Raikiri91

Villager
Member
Joined
Aug 30, 2014
Messages
23
Reaction score
0
First Language
English
Primarily Uses
RMVXA
here is the main script

<edit by mod: script removed>
 
Last edited by a moderator:

Raikiri91

Villager
Member
Joined
Aug 30, 2014
Messages
23
Reaction score
0
First Language
English
Primarily Uses
RMVXA
I did not modify this in any way. is there a way to use a script call to make the tool work with an event item that is not an enemy?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,674
First Language
German
Primarily Uses
RMMV
@Raikiri91
I asked for a link to the script (or rather a link to the website where you can download the script) for a lot of reasons.
This is because those websites usually contain additional information, because most scripters do not like reposts of their work (and we honor those wishes), because scripts are difficult to read in forum posts (if they even fit - as you've seen in the need to split it among two posts) and several other reasons.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

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
How many parameters is 'too many'??

Forum statistics

Threads
105,860
Messages
1,017,040
Members
137,569
Latest member
Shtelsky
Top