• 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.

[Spell] Multiple Menus

Status
Not open for further replies.
Level 5
Joined
Jan 16, 2016
Messages
115
I need help, i want a unit that can have various menus, like, when you press the menu, it opens like a spellbook and gives you extra options. If you press unit menu it opens a menu that allows you to train more units, if you open upgrade menu you can upgrade you units... etc. :vw_wtf::vw_death:
 
Level 11
Joined
Jun 2, 2013
Messages
613
Generally, you would make a dummy unit/ability that replaces the building with one that has the options you want, and then select the replaced structure for the triggering player.

Basically, you could create a spellbook with different abilities in the spellbook and then have a trigger with the "unit starts the effect of an ability". When the ability is cast, replace the triggering unit with the corresponding unit.
 
Level 24
Joined
Aug 1, 2013
Messages
4,658
Try using nested spellbooks.

A spellbook simply opens an alternative button chart in the UI.
You have one that is added to the unit named "Menu".
Inside "Menu", you have like "Abilities", "Units", "Upgrades", etc.
Inside each of those, you can place abilities that would buy the upgrades, train the units, add abilities to your unit, etc.
(Use Charge Gold and Lumber to make an ability cost gold and lumber.)
 
Level 12
Joined
May 22, 2015
Messages
1,051
Try using nested spellbooks.

A spellbook simply opens an alternative button chart in the UI.
You have one that is added to the unit named "Menu".
Inside "Menu", you have like "Abilities", "Units", "Upgrades", etc.
Inside each of those, you can place abilities that would buy the upgrades, train the units, add abilities to your unit, etc.
(Use Charge Gold and Lumber to make an ability cost gold and lumber.)

Basically this.

The only issue is that I am not sure you can have the upgrades / unit training if they take time to research. It wouldn't show a progress bar and they wouldn't queue properly. It would be some work to make all of that work. It depends on what exactly is needed.
 
Level 30
Joined
Feb 18, 2014
Messages
3,623
I mean instead of using the spellbook to store abilities, he can add hidden abilities to the hero for example via the OE, I know it hard for me to explain it since my english is too bad but the point is, items ability, those ability can be added to a hero without giving him the item on his inventary, example an ability that increase movement or damage/defense they are used for items when it's hold. But in the Object Editor those abilities can easily being added to it.
 
Status
Not open for further replies.
Top