• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

[Solved] Shop with multiple pages?

Status
Not open for further replies.
Level 13
Joined
Oct 16, 2010
Messages
731
Hi

I've been trying to make a shop that has many pages so I don't have to have loads of shops everywhere. However my trigger has failed, the "Next Page" ability does have it's level raised and everything. But the items don't switch. I thought it may be something to do with the fact that the shop is not a neutral building? Any ideas?

  • Next Page Clicked
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Next Page
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of Next Page for (Casting unit)) Equal to 1
        • Then - Actions
          • Neutral Building - Remove Potion of Healing from (Casting unit)
          • Neutral Building - Remove Potion of Mana from (Casting unit)
          • Neutral Building - Remove Boots of Speed from (Casting unit)
          • Neutral Building - Remove Gloves of Haste from (Casting unit)
          • Neutral Building - Remove Ring of Protection from (Casting unit)
          • Neutral Building - Remove Pendant of Energy from (Casting unit)
          • Neutral Building - Remove Periapt of Vitality from (Casting unit)
          • Neutral Building - Remove Sobi Mask from (Casting unit)
          • Neutral Building - Remove Dagger from (Casting unit)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Level of Next Page for (Casting unit)) Equal to 2
            • Then - Actions
              • Neutral Building - Remove Claws of Attack from (Casting unit)
              • Neutral Building - Remove Recipe for War Axe from (Casting unit)
              • Neutral Building - Remove Recipe for Blood Elf Gauntlets from (Casting unit)
            • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of Next Page for (Casting unit)) Equal to 2
        • Then - Actions
          • Unit - Set level of Next Page for (Casting unit) to 1
        • Else - Actions
          • Unit - Increase level of Next Page for (Triggering unit)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of Next Page for (Casting unit)) Equal to 1
        • Then - Actions
          • Neutral Building - Add Potion of Healing to (Casting unit) with 100 in stock and a max stock of 100
          • Neutral Building - Add Potion of Mana to (Casting unit) with 100 in stock and a max stock of 100
          • Neutral Building - Add Boots of Speed to (Casting unit) with 100 in stock and a max stock of 100
          • Neutral Building - Add Gloves of Haste to (Casting unit) with 100 in stock and a max stock of 100
          • Neutral Building - Add Ring of Protection to (Casting unit) with 100 in stock and a max stock of 100
          • Neutral Building - Add Periapt of Vitality to (Casting unit) with 100 in stock and a max stock of 100
          • Neutral Building - Add Pendant of Energy to (Casting unit) with 100 in stock and a max stock of 100
          • Neutral Building - Add Ring of Regeneration to (Casting unit) with 100 in stock and a max stock of 100
          • Neutral Building - Add Dagger to (Casting unit) with 100 in stock and a max stock of 100
          • Neutral Building - Add Sobi Mask to (Casting unit) with 100 in stock and a max stock of 100
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Level of Next Page for (Casting unit)) Equal to 2
            • Then - Actions
              • Neutral Building - Add Claws of Attack to (Casting unit) with 100 in stock and a max stock of 100
              • Neutral Building - Add Recipe for War Axe to (Casting unit) with 100 in stock and a max stock of 100
              • Neutral Building - Add Recipe for Blood Elf Gauntlets to (Casting unit) with 100 in stock and a max stock of 100
            • Else - Actions
 
Level 9
Joined
May 27, 2012
Messages
116
making it that way would mean it changes for all players. My self id make many shops 1 main menu that you select and it sells power ups witch you by triggers detect then they are sold and then you order by the trigger to select a nother shop (using a dummy model so it cant be selected and no selection ring) This way it becomes MPI. Ive done this works to 100%.
 
Status
Not open for further replies.
Top