hey everyone. i've been trying to look for an answer for a while and haven't come up with anything, so hopefully you'll be able to help me.
i'm trying out systems for a game and i wanted to make a sharpening stone that will buff your attack and you can use only once a day, and that wears off by next morning. my game doesn't count days in time but rather whenever an action is performed (going to sleep) and it has quite a simple night/day cycle system.
so what i did with this was:
-create two items, usable sharpening stone item that calls into a common event when used, and "fake" used sharpening stone item that cannot be used
-common event switches "sharpen" on, activates another common event running in parallel that sets a +attack state on the character if the switch is on, and turns it off if it's not
-my night trigger event checks when it becomes the next day, and switches off "sharpen" switch, effectively deactivating the +attack state (although it might not work as intended as i haven't tested battles yet)
this is the one step that's giving me problems:
-i have another common event running in parallel that checks if "sharpen" is on or off. if it's on, it takes the sharpening stone from player inventory and adds another the fake one in its place that cannot be used. but it instead adds 99 of that item even tho i've only increased it by 1. i think this is me being dumb and since it's running on parallel, it adds items constantly.
so i tried this other thing:
-the sharpen stone event that triggers the switch on also switches the item with the fake one.
-i created another event for when it is turned off that switches the item back to normal, called on by my night trigger event, so when day is on, it is supposed to activate the other event and put the stone back in place.
so like... sharpen stone on > switches items > buff on. day triggers > switches sharpen stone off > calls on another common event > puts item back into place.
for some reason this does not work, but i can't really find a why... perhaps i should use variables for some stuff but i'm very new to rpg maker and been bashing my head against the desk for a bit now... also i'm sure this has a better cleaner way to be done, so if you have any tips they're welcome!
i'm trying out systems for a game and i wanted to make a sharpening stone that will buff your attack and you can use only once a day, and that wears off by next morning. my game doesn't count days in time but rather whenever an action is performed (going to sleep) and it has quite a simple night/day cycle system.
so what i did with this was:
-create two items, usable sharpening stone item that calls into a common event when used, and "fake" used sharpening stone item that cannot be used
-common event switches "sharpen" on, activates another common event running in parallel that sets a +attack state on the character if the switch is on, and turns it off if it's not
-my night trigger event checks when it becomes the next day, and switches off "sharpen" switch, effectively deactivating the +attack state (although it might not work as intended as i haven't tested battles yet)
this is the one step that's giving me problems:
-i have another common event running in parallel that checks if "sharpen" is on or off. if it's on, it takes the sharpening stone from player inventory and adds another the fake one in its place that cannot be used. but it instead adds 99 of that item even tho i've only increased it by 1. i think this is me being dumb and since it's running on parallel, it adds items constantly.
so i tried this other thing:
-the sharpen stone event that triggers the switch on also switches the item with the fake one.
-i created another event for when it is turned off that switches the item back to normal, called on by my night trigger event, so when day is on, it is supposed to activate the other event and put the stone back in place.
so like... sharpen stone on > switches items > buff on. day triggers > switches sharpen stone off > calls on another common event > puts item back into place.
for some reason this does not work, but i can't really find a why... perhaps i should use variables for some stuff but i'm very new to rpg maker and been bashing my head against the desk for a bit now... also i'm sure this has a better cleaner way to be done, so if you have any tips they're welcome!