Hello I need help on this, I can't seem to get this working, I'm new to all of this but I am learning quickly. Okay this is what I'm having problems with I am trying to make an item that is consumed and when it is an event starts were it tints the screen, play music and add a party member it works except the main thing I wanted it to do, after a certain amount of time after consuming it will all go away but I don't know what to do on how to get it to work.
Help with event items
RPG Maker VXAce SupportYou would need two common events. One, called from the item (set up in features, which I'm guessing you've already got working) to do the tint, play music, add party member. Then get the current game time into a variable, then add the "certain amount of time" to that variable, whether seconds or minutes, and turn on a switch.
The second common event would be a parallel process and conditioned by that switch. It would get the current game time into a different variable, then compare the two variables - if the second variable is equal to or greater than the original one, it will change everything back again and turn its conditioning switch off. After the branch end for the compare (so it runs whether the condition is met or not), add a Wait for 5 frames, so it's not causing any lag.
The second common event would be a parallel process and conditioned by that switch. It would get the current game time into a different variable, then compare the two variables - if the second variable is equal to or greater than the original one, it will change everything back again and turn its conditioning switch off. After the branch end for the compare (so it runs whether the condition is met or not), add a Wait for 5 frames, so it's not causing any lag.
how do I do varibles in common events?
The same way you use them in ANY event.
Control Variables, choose a variable, choose Game Data and click on the elipses (...), choose Play Time from the Other drop-down list.
Control Variables, choose a variable, choose Game Data and click on the elipses (...), choose Play Time from the Other drop-down list.
Okay I got it but I'm really new to this and don't know how to do that other stuff so can you help me out by sending me pictures on how to do the whole thing.
P.S sorry if this took to long, been busy with other stuff.
P.S sorry if this took to long, been busy with other stuff.
Actually, if you've got it working to the point where everything changes, just add a couple more commands to the same common event:
Wait X Frames (where X is 60 times how many seconds you want to wait)
Stop BGM
Tint Screen (back to normal)
Change Party Members - remove new person (if you want them out of your party after the delay)
Wait X Frames (where X is 60 times how many seconds you want to wait)
Stop BGM
Tint Screen (back to normal)
Change Party Members - remove new person (if you want them out of your party after the delay)
okay how do I do the other common event
No, I just said if you've got it working, just add that to your item's common event, and then you don't need the second common event at all.
like this? http://imgur.com/q8eJJi7
Ahh, I just realized it won't work with a single event. You have to do it with two.
Do it like this:
Do it like this:
it worked thank you!
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
Original thread: https://forums.rpgmakerweb.com/threads/help-with-event-items.18628/