- Joined
- Jul 9, 2008
- Messages
- 1,553
like i have a shop with shops inside it and when u buy a dummy item it opens up each shop it just doesent look right with the number next to the icon
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Shop Selection

Events


Unit - A unit Sells an item (from shop)

Conditions


Or - Any (Conditions) are true



Conditions




(Item-type of (Sold Item)) Equal to Atribute shop




(Item-type of (Sold Item)) Equal to Return




(Item-type of (Sold Item)) Equal to Basic Supplies

Actions


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




(Item-type of (Sold Item)) Equal to Atribute shop



Then - Actions




Selection - Clear selection for (Owner of (Buying unit))




Item - Remove (Sold Item)




Selection - Select atribute 0060 <gen> for (Owner of (Buying unit))



Else - Actions


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




(Item-type of (Sold Item)) Equal to Return



Then - Actions




Selection - Clear selection for (Owner of (Buying unit))




Item - Remove (Sold Item)




Selection - Select Stall 0029 <gen> for (Owner of (Buying unit))



Else - Actions


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




(Item-type of (Sold Item)) Equal to Basic Supplies



Then - Actions




Selection - Clear selection for (Owner of (Buying unit))




Item - Remove (Sold Item)




Selection - Select potions/supplies 0110 <gen> for (Owner of (Buying unit))



Else - Actions
so if i just give the shop the ability for each other shop to open it will work ??? um with this also work for when more then 1 player is buying from the shop?? how would i detect with player is casting the spell for the dummy ability in the stall
Custom script: if GetLocalPlayer() == yourPlayer then
<your actions>
Custom script: endif
