USE ITEM

Is there a way where I can use an item anytime I want?


example a lamp where I can Equip and Unequipped it at the same time?


Using Item anytime I want?


Thank You in advance! This will help me a lot 🙂
Are you referring to "dungeon tools" like Zelda, you can use a lamp to light an area? If so, I have been working on a way to implement this in MV to no avail so far, but as for VX ace, there are great scripts for what you are talking about.
Are you talking about an item, or a weapon or piece of armor?  You do not equip/unequip items.  And you CAN use items anytime, depending on the scope you set on the item in the database.
Are you talking about an item, or a weapon or piece of armor?  You do not equip/unequip items.  And you CAN use items anytime, depending on the scope you set on the item in the database.

an item I guess?


best example is a lighter or a torch. Where I can use It anytime I want.


example scene:


character goes to a dark place. character can't see anything unless he use the item (lighter as torch). It's kinda hard to explain.
I can make a switch thing for the room to lighten up. I do this with an event. But I'm finding a way where I can use an ITEM to make the room lighten or make a light circle around the character without an event, by only using an Item in his inventory.


like:


Equip the Item : turn on light


Remove the Item : Lights Off


character can do this many times he want.
You CANNOT equip the item.


To use an item, go into the menu, select item and then select the item you want to use (you cannot use weapons or armors).


If you want that item to change a switch or do anything other than giving effects to an actor, use the "common event"-effect.


You cannot "unuse" an item, that means you have to use a different method to cancel whatever you do in the common event.


If you want an equippable object, it needs to be an armor (with the armor slot for it renamed to "tool" or so), but if you do that this object will have absolutely no direct effect - you can only use a parallel process common event to check if that is equipped, and then have the change done by the parallel process.


As a new user, I suggest you follow the link to the starting point in my signature and work through the tutorials there - they explain a lot of the more common solutions to implement game element.
Create a common event that does the same thing as your "switch thing" (I assume you mean a physical switch that you walk up to and interact with).


Then set your item to call that common event.


The common event should look something like this (I'm not using the actual commands - you'll need to decide which commands to be used and how to set them up)

Code:
If map is correct map (use Control Variables > Game Data > Map ID then a conditional branch)
  If 'room lit' switch is ON
    turn 'room lit' switch OFF
    make room dark
  else
    turn 'room lit' switch ON
    make room light
  end
end
Create a common event that does the same thing as your "switch thing" (I assume you mean a physical switch that you walk up to and interact with).


Then set your item to call that common event.


The common event should look something like this (I'm not using the actual commands - you'll need to decide which commands to be used and how to set them up)



If map is correct map (use Control Variables > Game Data > Map ID then a conditional branch)
If 'room lit' switch is ON
turn 'room lit' switch OFF
make room dark
else
turn 'room lit' switch ON
make room light
end
end

Thanks Shaz. But what I mean is the switch would be the Item in my inventory.


Is there a way to do that?
Thanks Shaz. But what I mean is the switch would be the Item in my inventory.


Is there a way to do that?

That is exactly what Shaz told you - that common event will be the effect stored on the item, and whenever you use that item the common event will automatically switch the light (or whatever you want it to do)
OK. Now I get It


THANK YOU SO MUCH GUYS!!


I'm so dumb on understanding this.


Last question 🙂


If I finished the game. where could be the best place to upload this for evaluation? or how can I post It here?
That's not really a related question, so shouldn't go here.


But there are forums for games in development, with demos, and completed games.  You could share it in whichever one is most suitable - make sure you read the pinned threads very carefully and do everything they say, or your thread won't be approved.

Original thread: https://forums.rpgmakerweb.com/threads/use-item.55610/