• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Button - switching to next site

Status
Not open for further replies.
Level 1
Joined
May 14, 2015
Messages
5
Hello guys. How can I create button with function to go to the next or previous page? Because I'm creating my own races and i want to create more than 11 building so I need one more extra page for few more buildings.
Something like that (from Nirvana mod):
Buttonspn_wsaxhhe.png
 
Last edited:
Level 30
Joined
Sep 26, 2009
Messages
2,620
If what you wrote is really mod, it may be that they edited wc3 itself.

I never done this before, but you could try one of the following:
a) use Spellbook ability (it's an item ability) and put into it the "Build Tiny xxx" abilities (e.g. Build Tiny Barracks ability found in item category).
The disadvantage here is that the unit will go to the place and the building will builts there by itself and that there is no transparent model showing that something will be build there.

b) add all buildings into the "Techtree - Structures built" for that builder. Even when they are not displayed in game (because there is no more place for them in the command card), the unit can still build those structures.
You could then add to the builder an ability - something like "Display advanced structures", etc.
When you click it that ability, you make certain structures unavailable for constructing for that player. This will cause those structures not to show in the command card. Since you have now space in command card, it will get filled by those structures that were out of range before.
When you press the ability again, it will return back to normal.

c) merge of a) and b) - Add all buildings for the unit by doing what I wrote in option b), create spellbook spell and fill it with "Build tiny xxx" abilities as I wrote in option a).
Finally, catch when building is being constructed. If it is one of the advanced buildings, remove it and instead order your worker to build the structure there.


Edit:
From the pictures it seems that those are not buildings but simply items in a shop. That is something a bit different.
 
Status
Not open for further replies.
Top