So I am trying to make a shop that changes the items it has for sale every three minutes or so. This is proving to be more difficult then I imagined. Here is what I have so far:
-
SeriorMarkettime
-
Events
- Time - Every 180.00 seconds of game time
- Conditions
-
Actions
-
Unit Group - Pick every unit in (Units of type Tavern (Armor1)) and do (Actions)
-
Loop - Actions
- Set TempTavernTeam = (Owner of (Picked unit))
- Set TempTavernUnit = (Picked unit)
- Unit - Change ownership of (Picked unit) to Neutral Passive and Retain color
-
Item - Pick every item in ItemFarm <gen> and do (Actions)
-
Loop - Actions
- Neutral Building - Remove (Item-type of (Picked item)) from TempTavernUnit
-
Loop - Actions
- Neutral Building - Add (Random level 1 item-type) to TempTavernUnit with 1 in stock and a max stock of 1
- Neutral Building - Add (Random level 1 item-type) to TempTavernUnit with 1 in stock and a max stock of 1
- Neutral Building - Add (Random level 1 item-type) to TempTavernUnit with 1 in stock and a max stock of 1
- Neutral Building - Add (Random level 1 item-type) to TempTavernUnit with 1 in stock and a max stock of 1
- Neutral Building - Add (Random level 1 item-type) to TempTavernUnit with 1 in stock and a max stock of 1
- Neutral Building - Add (Random level 1 item-type) to TempTavernUnit with 1 in stock and a max stock of 1
- Neutral Building - Add (Random level 1 item-type) to TempTavernUnit with 1 in stock and a max stock of 1
- Neutral Building - Add (Random level 1 item-type) to TempTavernUnit with 1 in stock and a max stock of 1
- Neutral Building - Add (Random level 1 item-type) to TempTavernUnit with 1 in stock and a max stock of 1
- Neutral Building - Add (Random level 1 item-type) to TempTavernUnit with 1 in stock and a max stock of 1
- Neutral Building - Add (Random level 1 item-type) to TempTavernUnit with 1 in stock and a max stock of 1
- Unit - Change ownership of TempTavernUnit to TempTavernTeam and Change color
-
Loop - Actions
-
Unit Group - Pick every unit in (Units of type Tavern (Armor1)) and do (Actions)
-
Events