Requirement show NOT button

MissKerrigan

Active Member
Reaction score
23
Hello,

I make a requirement which is the next:

show - not - count unit 'hero_battlecruiser' queued or better

(I put the requirement in the hero_battlecruiser button/ability)

my question is: if the battlecruiser is death, does the button comes back then so the player is able to train the hero again?


MissKerrigan
 

MissKerrigan

Active Member
Reaction score
23
alright, what I actually wanna do, is hide 3 buttons, how I do this?

(there are 3 heroes, but once 1 hero is picked, all 3 buttons must disappear till the hero is dead)
 

Dave312

Censored for your safe viewing
Reaction score
269
Code:
USE
SHOW
   Not
      Or
         Count Unit [Your_First_Hero] Queued Or Better
         Count Unit [Your_Second_Hero] Queued Or Better
         Count Unit [Your_Third_Hero] Queued Or Better
 

Siretu

Starcraft 2 Editor Moderator
Reaction score
293
What Dave312 wrote is a single requirement. Some requirement nodes, like "Or" can have several other requirement nodes below them. So if you right-click the or and press "add requirement node", you can add more of them.
 

MissKerrigan

Active Member
Reaction score
23
no no, what I meant is when I go to the 'hero_train_ability' in the barracks, I can only put 1 requirement in there
 

Siretu

Starcraft 2 Editor Moderator
Reaction score
293
I know. You only need one requirement. The thing Dave312 is ONE requirement. You just have to create one single requirement and put the stuff Dave mentioned in there.
 

GFreak45

I didnt slap you, i high 5'd your face.
Reaction score
130
One requirement can be a mesh of multiple requirements put together
for instance
Trigger:
  • Requirement
    • Use
    • Show
      • And
        • Requirement1
        • Requirement2


This makes 1 requirement that only returns true if both requirement1 and requirement2 return true, otherwise it returns false

You could replace the And with Or and if either of them return true it would return true

That is essentially what he is meaning

Follow these directions explicitly:
  • Open up the requirements tab
  • Create a new requirement and name it whatever you want
  • Click the requirements+ field
  • Right click the show field and select Add New Requirement Node or something to that effect
  • Select the new node and set it's option to And
  • Right click that node and select Add New Requirement Node 3 times, then set those to the requirement shown above
 

GFreak45

I didnt slap you, i high 5'd your face.
Reaction score
130
if you have it in the "Use" section then the button will not dissapear, but be grayed out and unclickable.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top