- Joined
- Nov 22, 2011
- Messages
- 74
So here's my shop system that I made for my moba map. It has a main shop unit with abilities that if cast will spawn dummy shop units which are selected. So far I have 2 categories which mean two different abilites and two different dummy units as shops. But what happens is that the only one I can get to work is "Common Items". "Rare Items" has yet to spawn and I checked that it was selling the correct items. The shop is also never removed as I am trying to do in the trigger.
I can upload the map if necessary. Thanks in advance for any help. Cheers!
-
ShopNavigation
-
Events
-
Unit - A unit Begins casting an ability
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Ability being cast) Equal to Common Items
-
-
Then - Actions
-
Unit - Remove ShopCurrent[1] from the game
-
Unit - Create 1 Common Items for (Owner of (Casting unit)) at (Position of (Casting unit)) facing Default building facing degrees
-
Selection - Select (Last created unit) for (Owner of (Casting unit))
-
Set ShopCurrent[1] = (Last created unit)
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Ability being cast) Equal to Rare Items
-
-
Then - Actions
-
Unit - Remove ShopCurrent[1] from the game
-
Unit - Create 1 Rare Items for (Owner of (Casting unit)) at (Position of (Casting unit)) facing Default building facing degrees
-
Selection - Select (Last created unit) for (Owner of (Casting unit))
-
Set ShopCurrent[1] = (Last created unit)
-
-
Else - Actions
-
-
-