The script I'm using is Galv's Item/Bank Storage
http://galvs-scripts.com/2012/10/16/138/
I'm using it for a much different use than normal. But even if I wasn't, I'd still want to condition multiple storages in one script call. Because I'd probably use that for an party inventory system, where it's important for the game to judge certain things based on what party has what.
Normally, the script condition would be
store_count("item", 1) > 3That means you're conditioning if storage ID of variable x (whichever variable you assigned to the storage variable in the script) has item more than 3 of item 1.
But say if I wanted it to be like
store_count("item", 1, 1) > 0 store_count("item", 1, 2) > 0meaning storage 1 has more than 0 of item 1, and
storage 2 has more than 0 of item 1.
Yet defaultly, this isn't possible.
Now, one could think that with complex, larger conditions, I could just set a variable, condition if, and if that's true, then set a variable, then condition if that's true... but after a point, it just drags too far to the right on the event editor and looks very messy.
This could have multiple uses. I could say that if Party 1 has more less than 3 potions, Party 2 will send some if they have more than 6.
My main concept was that storage inventories would be used for not just party items, but for events, as well.
Who said Item 1 has to be considered a potion during an event? So I could use it for an open-ended system. Like when a special scene runs, I could condition which actors where present for that scene, and add 1 item of ID(x), the x corresponding to their actor id. So I could say that if Actor 3 was present, storage 101 gets 1 of item 3 stored.
Or I could use this as a way of making special, actor or location-specific variables. I could have Storage 1 be the main character's storage. Item 1 would correlate to the number of times he encountered the main villain. Item 103 could correlate to the number of times he traveled to a dungeon with Actor 3. It would all be limitless.
So my question was, either that, or, how do you set a variable mid-condition?
like
http://galvs-scripts.com/2012/10/16/138/
I'm using it for a much different use than normal. But even if I wasn't, I'd still want to condition multiple storages in one script call. Because I'd probably use that for an party inventory system, where it's important for the game to judge certain things based on what party has what.
Normally, the script condition would be
store_count("item", 1) > 3That means you're conditioning if storage ID of variable x (whichever variable you assigned to the storage variable in the script) has item more than 3 of item 1.
But say if I wanted it to be like
store_count("item", 1, 1) > 0 store_count("item", 1, 2) > 0meaning storage 1 has more than 0 of item 1, and
storage 2 has more than 0 of item 1.
Yet defaultly, this isn't possible.
Now, one could think that with complex, larger conditions, I could just set a variable, condition if, and if that's true, then set a variable, then condition if that's true... but after a point, it just drags too far to the right on the event editor and looks very messy.
This could have multiple uses. I could say that if Party 1 has more less than 3 potions, Party 2 will send some if they have more than 6.
My main concept was that storage inventories would be used for not just party items, but for events, as well.
Who said Item 1 has to be considered a potion during an event? So I could use it for an open-ended system. Like when a special scene runs, I could condition which actors where present for that scene, and add 1 item of ID(x), the x corresponding to their actor id. So I could say that if Actor 3 was present, storage 101 gets 1 of item 3 stored.
Or I could use this as a way of making special, actor or location-specific variables. I could have Storage 1 be the main character's storage. Item 1 would correlate to the number of times he encountered the main villain. Item 103 could correlate to the number of times he traveled to a dungeon with Actor 3. It would all be limitless.
So my question was, either that, or, how do you set a variable mid-condition?
like
Code:
($game_variables[29] = 1)if store_count("item", 1) < 3&&($game_variables[29] = 2)if store_count("item", 1) > 6 then $game_switches[1] = true #which means that the condition is met#