I'm back with another one that I keep thinking should be easy, but is being stubborn.
I have an amusing idea where I need to know how much money is spent at each individual store and I keep running into trouble.
I started by setting the party's gold to a variable before the store window opens, then setting it to another after the store window closes and comparing the values (then setting the difference to a 3rd variable so I can reuse the first 2 each visit).
I've run into the problem of what happens if they sell stuff? I'd rather not have to make stores purchase only (maybe add a selling counter {regular shop with no inventory} in the store would work, but that's awkward).
On a side note, but definitely related, I am not sure how the system handles code placed after the "Shop Processing" command finishes. I did get to store the money before and after that command, so that does not seem to have an implicit "end event processing" thing involved, but I was unable to display any text messages after that command (like the shop keeper saying "Thanks, you spent \V[*] Poultroons!" (my original plan to see if the variables were working properly) (wound up using an npc to confirm).
Sorry to be so verbose, but that's just me. Any help would be appreciated!
I have an amusing idea where I need to know how much money is spent at each individual store and I keep running into trouble.
I started by setting the party's gold to a variable before the store window opens, then setting it to another after the store window closes and comparing the values (then setting the difference to a 3rd variable so I can reuse the first 2 each visit).
I've run into the problem of what happens if they sell stuff? I'd rather not have to make stores purchase only (maybe add a selling counter {regular shop with no inventory} in the store would work, but that's awkward).
On a side note, but definitely related, I am not sure how the system handles code placed after the "Shop Processing" command finishes. I did get to store the money before and after that command, so that does not seem to have an implicit "end event processing" thing involved, but I was unable to display any text messages after that command (like the shop keeper saying "Thanks, you spent \V[*] Poultroons!" (my original plan to see if the variables were working properly) (wound up using an npc to confirm).
Sorry to be so verbose, but that's just me. Any help would be appreciated!