items turning on switches on use?

i'm a bit lost here, how do you make items turn on switches on use? is that even possible? i've been trying to make yume nikki styled effects and i'm not finding any information.

as featured in rpgmaker 2003, please excuse the crappy arrows but this is what i mean

1741104916666.png


and no, making them common events isn't what i want. but if thats the only way i guess i'll have to work with that?
The common event method is the default/base method, but I agree that there are some scenarios where that costs a lot of common events.

One possible alternative is to use a plugin that implements eval-type notetags for item effects. there are several of those like yanfly's item core.
with that you can use javascript code in the notetag of the item to change the switch.
The common event method is the default/base method, but I agree that there are some scenarios where that costs a lot of common events.

One possible alternative is to use a plugin that implements eval-type notetags for item effects. there are several of those like yanfly's item core.
with that you can use javascript code in the notetag of the item to change the switch.
thank you so much!! i was worried id have to make individual common events for *every* switch i needed
thank you so much!! i was worried id have to make individual common events for *every* switch i needed
Hi! I'm not sure if that helps, but you can also always fall into the hellhole of conditional branching?
Common events are useful and I think almost necessairy for this in 2003?
But you can set up your system differently, depending on what conditional branches you use!

(Plugins are certainly easier, but here are a few absolutely overcomplicated ideas:
*EDIT: Upload to git in case anyone needs this: https://github.com/Fyoriosity/Public_Feedback/tree/main/Click_here_to_continue/RPG_Maker/BecomeFrogo

1. Lie to your player
You can make n(number of Effects you are creating) number of actors.
So instead of like, giving an effect to the player sprite, you can also make n Actors XD
When using an item, they can be switched around. Makes party management hell!

2. Make worse Common Events
If you really do not want to use common events, there isss another sort of method?
So this is terrible, but I've run into a few instances where I had to do that, and well:
You can make local-common events!
By that I mean you make an event on autorun with a selfmade selfswitch.
An Event manager so to speak?

In your example:
Make a map for debugging
1742136651073.png


Create your items and your actors. I made two items, frog and cat effects. And three actors:
(Ignore DebugDude)
Default, Frog and Cat!

1742137130821.png


1742136777361.png


- Make a Variable to store your effects (like 0 for normal, 1 for Frog, etc.), and one Variable to store
THE EFFECT PREVIOUSLY USED!
(0001: PlayerStatusEffects, and 0002: Last_Status)
- Make a switch for each item

1742136828101.png
1742136887715.png


Now, I make an autorun event called [EFFEKT-MANAGER].

This manager is always opened on item use, but also automatically undoes that switch.
Basically self-switching.
It will set Last_Status to the previously used Status effect.
Before then checking whether the Player is already using the effect they want.

If they don't, they use the effect. If they do, they return to normal, like in Yume Nikki!

1742137253474.png

1742137354090.png

1742137375938.png


Great! Now you just need to actually turn into these things.
You can change the graphic or whatever you wish to do, I chose to mess with my party members.
I made a common event that adds an actor according to the PlayerEffekt Variable, and that removes the party member according to the Last_Status.

1742137494486.png


Finally, just for Debugging, I made an autorun event on the debugging map that gives me all the items and initialises both variables.
(So that we don't run into any fun lil errors when it tries to add Actor 0).
You can also put in som error-event handling but erm....
This is for a short post so forgive me my windedness.

1742137613546.png


Instead of a bunch of common events, you have to make a bunch of local events, and then copy then onto each map where you want to be able to transform XD
You might as well make a common event for each, but if you really want to avoid using common events,
this way you only use a single one! You can also just copypaste that into the event-manager, but, you know.
We like functions here. Functions tasty.

One perk using not-common-events for this is that you can iterate on it more easily?
I usually have a map I simply use as a Code-Graveyard, where I can copypaste iterations of these systems into as a backup.

But here you go!
I can now transform into a frog!

1742137717545.png

1742138134641.png

Original thread: https://forums.rpgmakerweb.com/threads/items-turning-on-switches-on-use.175998/