So I'm working on a common event where when you equip a particular item it will tint the screen. I got this to work well the issue is I cant figure out how to tint the screen back to normal when the item is unequipped.
Common events
● ARCHIVED · READ-ONLY
-
-
Show us a screenshot of the event so that we can see how you have created it.
The two options here are either a plugin or to use another tint when not having that equipped, but the exact event commands depend on what you did. -
Bad design for a common event, no wonder that you couldn't get it to reverse.
You need to determine if one or more party members have those night vision goggles equipped before you tint (or untint), which means you can't make it independent conditional branches. There are several ways to solve this, I suggest using a variable to count the number of goggles.
First command a control variable tempcount = 0 to clear the variable used.
Then a series of conditional branches checking if someone has equipped those googles. This would be similiar to your common evewnt, only that if a conditionis true you don't tint but control the variable to add one to it.
After that series, you make a fifth conditional branch - and in that branch only you activate the else option.
The condition is variable tempcount > 0
If the variable is bigger than zero, someone has the goggles equipped and you make the tint command.
In the else branch (which only gets executed if no one has the goggles) you'll set the tint to zero.
last command should be a wait(10) or so to reduce the lag you get from a parallel process that checks sixty times per second as the one you have above - six times per second is enough checks because no one can change equipment that fast. -
it works perfectly now. thanks for the help