EDIT: Thread make-over! The original post lacked critical details. I later provided those details in this thread, but not everyone reads that far, so I am making my updated details the original post. The original, original post is stuffed into the spoiler tag at the bottom.
Okay, I think I might have created some confusion. So in the spoiler tag is the controller to display the HUD. I truncated it since each of the "if: PlayerRID = x" are effectively the same, but displaying different pictures for the different weapons.
Also, please ignore the "SALES" section. This was just to test the display of the sales sticker. Obviously that's not how I am going to do it since that's kind of what the whole point of this thread is about
I also think I created confusion due to the way I have named variables.
Since this is a single small map (the interior of the shop) I didn't see any reason to add more clutter to this very lengthy parallel event to actually check the player's region ID by constantly updating their X/Y info. I really, really don't like having a lot of clutter in the events if it's possible to avoid because the tiny little event window box makes it a real pain to edit, not to mention spending an extra frame or two to check and update variables to set player RID would slow down the responsiveness of the HUD. If the goal of having the HUD appear automatically without player input is to speed things up and reduce friction, then it would be antithetical to that design to have the HUD be slow to appear.
Therefore, the RegionID's have been faked by using Player Touch events that just manually set the "PlayerRID" variable to the specified value:
Where I created some more confusion is that I said there is the ItemID. This is...technically false? So I apologize about that.
Let me break down the 4 working elements here:
Then in the map parallel event (the HUD):
if SalesItemID = PlayerRID
Show picture (the "Sales" sticker)
(Then, obviously, if the SalesItemID doesn't match the PlayerRID, the "Sales" sticker won't be displayed)
Likewise, this "SalesItemID" can also be used when activating the item on the shelf.
If SalesItemID = 1
Set price to [sales price]
else
Set price to [normal price]
Your help is always appreciated. Thank you.
Also, please ignore the "SALES" section. This was just to test the display of the sales sticker. Obviously that's not how I am going to do it since that's kind of what the whole point of this thread is about

I also think I created confusion due to the way I have named variables.
Since this is a single small map (the interior of the shop) I didn't see any reason to add more clutter to this very lengthy parallel event to actually check the player's region ID by constantly updating their X/Y info. I really, really don't like having a lot of clutter in the events if it's possible to avoid because the tiny little event window box makes it a real pain to edit, not to mention spending an extra frame or two to check and update variables to set player RID would slow down the responsiveness of the HUD. If the goal of having the HUD appear automatically without player input is to speed things up and reduce friction, then it would be antithetical to that design to have the HUD be slow to appear.
Therefore, the RegionID's have been faked by using Player Touch events that just manually set the "PlayerRID" variable to the specified value:
Where I created some more confusion is that I said there is the ItemID. This is...technically false? So I apologize about that.
Let me break down the 4 working elements here:
- A common parallel event. This is an in game timer always running to count down until the next item goes on sale (that's the thing we are working on here.)
- A parallel event on my shop's map which is used to control how and when the HUD elements are displayed.
- many Individual player touch events that manually set the player's RID as previously shown/discussed.
- The item itself, which the player will interact with, which might be on sale or might be normal price.
- I don't want the same item to go on sale twice in a row (this has been accounted for in the current sales logic with the "SaleItemPreserve" variable)
- I don't want items the player has already purchased to go on sale. So once the player has purchased an item (regardless of whether they purchased it on sale or not) that item is no longer valid in the list of possible items to go on sale.
- Whatever the sales common event determines is on sale, that information needs to be passed to the map parallel event (the one that controls the HUD) to properly display the "Sale" sticker, in addition to passing that information to the item event.
- Done with less clutter in the event screen then how I would have evented this system (because as I stated in my OP, I know how to do all of this through eventing, but it would be a cluttered mess of conditionals and be way overly complicated than is necessary.)
Then in the map parallel event (the HUD):
if SalesItemID = PlayerRID
Show picture (the "Sales" sticker)
(Then, obviously, if the SalesItemID doesn't match the PlayerRID, the "Sales" sticker won't be displayed)
Likewise, this "SalesItemID" can also be used when activating the item on the shelf.
If SalesItemID = 1
Set price to [sales price]
else
Set price to [normal price]
In summary, the person is discussing a system involving a HUD and sales for items in a game. They explain that there are four working elements: a common parallel event for a timer, a parallel event for controlling the HUD, player touch events to set the player's RegionID, and the items themselves. They mention four challenges they want to overcome: avoiding the same item going on sale twice in a row, preventing already purchased items from going on sale, passing sale information to the HUD and item events, and reducing clutter in the event screen. For challenge number 3, they propose using a "SalesItemID" variable to determine the item currently on sale and display the "Sales" sticker accordingly. They also mention using the SalesItemID to set the price for the item on the shelf based on whether it matches the PlayerRID.
I think this might be done with that mysterious thing I've heard called an "array" but I'm a bit too dumb to figure it out.
Basically: I have a store that will randomly pick 1 of its items to go on sale once in awhile. The problem is if the item is "sold out" (the player already owns the item), it's pointless for said item to go on sale.
I could do a really messy event system that just runs a bunch of conditionals to solve this, but I was hoping to find a more cleaner way of doing this rather than running a bunch of messy and unnecessary conditionals.
For posterity, here is the common event that currently controls the sales mechanic in my game:
*Some notes for clarity:
Variable "SaleItemID" is NOT the same Item ID as the database. (This is because the items for sale in the shop include weapons, armor, and items, which may have overlapping ID numbers.)
SaleItemPreserve is to prevent the same item from going on sale twice in a row.
STATIC:SalesTimer is used to determine the length of the sales time. Sales time is not determined by a constant integer.
Basically: I have a store that will randomly pick 1 of its items to go on sale once in awhile. The problem is if the item is "sold out" (the player already owns the item), it's pointless for said item to go on sale.
I could do a really messy event system that just runs a bunch of conditionals to solve this, but I was hoping to find a more cleaner way of doing this rather than running a bunch of messy and unnecessary conditionals.
For posterity, here is the common event that currently controls the sales mechanic in my game:
*Some notes for clarity:
Variable "SaleItemID" is NOT the same Item ID as the database. (This is because the items for sale in the shop include weapons, armor, and items, which may have overlapping ID numbers.)
SaleItemPreserve is to prevent the same item from going on sale twice in a row.
STATIC:SalesTimer is used to determine the length of the sales time. Sales time is not determined by a constant integer.
Your help is always appreciated. Thank you.