- Joined
- Mar 20, 2024
- Messages
- 14
I'm making a sort of CO-OP card game style map and am trying to make a shop that has a random 5 items (cards) in it from a subset of items (factions), and then when a player buys an item from it, it removes the item from the shop. I want this shop to have a refresh button that will remove all current items in the shop and replace them with 5 new items from that same original subset.
(im sorry I am not familiar with how to import my triggers into this box)
Currently I have a region on the map where the items are pulled from. Triggers add items to this region to create the possible items that could be put in this shop. When a player buys an item, I can get it to remove that item from the shop no problem because I can just have it remove an item of type(manipulated item) when it is bought. However, the main issue I am having, is that I am using the "Add item of item type(random item in region) to market for Unit X" to add these items into the shop. And this does not work properly with multiple adds because if this random selection chooses an item that is already in the shop, it will just not add anything. Also my refresh button, for some reason, I cant get it to remove more than one item from the shop at a time, and some times it wont remove anything. (Ive tried using the "remove item of item type (random item from region)" and "remove item of item type (random item of level X)", but this doesnt seem to work consistently and I am guessing it is because it is choosing a random item that matches that condition, THEN it checks to see if that item is in the shop before trying to remove. If the randomly selected type doesnt appear in the shop, then nothing is removed.)
For the refresh command, I need it to:
1. Remove all items currently in the shop
Then
2. Add 5 different items from the region I am using as a subgroup.
Can anyone help me out?
(im sorry I am not familiar with how to import my triggers into this box)
Currently I have a region on the map where the items are pulled from. Triggers add items to this region to create the possible items that could be put in this shop. When a player buys an item, I can get it to remove that item from the shop no problem because I can just have it remove an item of type(manipulated item) when it is bought. However, the main issue I am having, is that I am using the "Add item of item type(random item in region) to market for Unit X" to add these items into the shop. And this does not work properly with multiple adds because if this random selection chooses an item that is already in the shop, it will just not add anything. Also my refresh button, for some reason, I cant get it to remove more than one item from the shop at a time, and some times it wont remove anything. (Ive tried using the "remove item of item type (random item from region)" and "remove item of item type (random item of level X)", but this doesnt seem to work consistently and I am guessing it is because it is choosing a random item that matches that condition, THEN it checks to see if that item is in the shop before trying to remove. If the randomly selected type doesnt appear in the shop, then nothing is removed.)
For the refresh command, I need it to:
1. Remove all items currently in the shop
Then
2. Add 5 different items from the region I am using as a subgroup.
Can anyone help me out?