- Joined
- Jun 9, 2018
- Messages
- 10
I was working on a system where when a Hero acquires level 1 item, the shop will remove the item acquired from its list of items being sold, and replace it with a higher level of the item acquired.
But whenever the hero acquires an item, the shop does not replace it with a higher level.
-
Upgrade Item Paladin
-
Events
-
Unit - A unit Acquires an item
-
-
Conditions
-
(Unit-type of (Hero manipulating item)) Equal to Type_of_Hero
-
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Hero manipulating item) Equal to Variable_of_Hero[0]
-
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Item-type of (Item being manipulated)) Equal to Item_lvl_1
-
-
Then - Actions
-
Neutral Building - Remove (Item-type of (Item being manipulated)) from Marketplace <gen>
-
Neutral Building - Add Item_lvl_2 to Marketplace <gen> with 1 in stock and a max stock of 1
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Item-type of (Item being manipulated)) Equal to Item_lvl_2
-
-
Then - Actions
-
Neutral Building - Remove (Item-type of (Item being manipulated)) from Marketplace <gen>
-
Neutral Building - Add Item_lvl_3 to Marketplace <gen> with 1 in stock and a max stock of 1
-
-
Else - Actions
-
-
-
-
-
Else - Actions
-
-
-
But whenever the hero acquires an item, the shop does not replace it with a higher level.