• 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.
  • 💡 We're thrilled to announce that our upcoming texturing contest is in the works, and we're eager to hear your suggestions! Please take this opportunity to share your ideas in this theme discussion thread for the Texturing Contest #34!
  • 🏆 Hive's 7th HD Modeling Contest: Icecrown Creature is now open! The frozen wastes of Icecrown are home to some of Azeroth’s most terrifying and resilient creatures. For this contest, your challenge is to design and model a HD 3D monster that embodies the cold, undead, and sinister essence of Icecrown! 📅 Submissions close on April 13, 2025. Don't miss this opportunity to let your creativity shine! Enter now and show us your frozen masterpiece! 🔗 Click here to enter!

Having 2 separate building menus (like in age of empires 2)

Status
Not open for further replies.
Level 3
Joined
Mar 22, 2009
Messages
35
In my map I want my builder to have 2 separate building menus. It's alot easier to understand what I meen if you have played age of empires 2. There the villager has one building menu for military buildings and one for other buildings and I want it to be exactly like that. Would appreciate if you could help me.
 
There are some ways to make this, but first.. it's not possible to add another "build" menu itself..

The first way would be making a spellbook with all the buildings in it, as abilities without any function.. so they do nothing if you click on them.. except using it for our trigger that checks if you got enough money to buy it..

Another way would be replacing your builder with another one.. like you have 2 builders, one for defense structures and one for offense structures for example.. add 1 ability for each builder that contains some information like "Press this to change to offense builder menu" as you clicked the ability the builder gets replaced with the other builder.. and so on and so on.. think you get what I mean..
 
Level 3
Joined
Mar 22, 2009
Messages
35
Nice idea with making an ability that replaces the builder, I will try it out. :grin:

{EDIT}
It works perfectly except for one thing. If my worker is under attack then I can just press my switch building menu button and all units stop attacking him. If there's a way to fix that it would be perfect. Oh, and while we are at it, is there anyway to make a replaced unit resume the old units orders. For example: my worker is chopping lumber when I replace him, now the new unit resumes the old units orders and starts chopping lumber like. Hope u get what I meen ^^
 
Last edited by a moderator:
For the attack part, just create a trigger that checks, if the unit is under attack..

I would try something like a wait trigger.. so check whenever the builder receives damage (so he's attacked) and then just add a wait actions like 1 or 2 seconds.. if the builder gets attacked within this wait time, then he's propably still under attack and the wait time expands.. while the wait action runs make the ability of the builder unusable.. like adding some research and name it "Not under attack" or something like that...
 
Status
Not open for further replies.
Top