Requirement show NOT button

Discussion in 'Starcraft 2 (SC2) Editor Help' started by MissKerrigan, Jun 23, 2012.

  1. MissKerrigan

    MissKerrigan Active Member

    Ratings:
    +23 / 0 / -0
    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
     
  2. Dave312

    Dave312 Censored for your safe viewing

    Ratings:
    +269 / 0 / -0
    Yes it will
     
  3. MissKerrigan

    MissKerrigan Active Member

    Ratings:
    +23 / 0 / -0
    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)
     
  4. Dave312

    Dave312 Censored for your safe viewing

    Ratings:
    +269 / 0 / -0
    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
     
  5. MissKerrigan

    MissKerrigan Active Member

    Ratings:
    +23 / 0 / -0
    Yes I did, but I can only put 1 requirement in 1 button-ability, not 3
     
  6. Siretu

    Siretu Starcraft 2 Editor Moderator Staff Member

    Ratings:
    +295 / 0 / -0
    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.
     
  7. MissKerrigan

    MissKerrigan Active Member

    Ratings:
    +23 / 0 / -0
    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
     
  8. Siretu

    Siretu Starcraft 2 Editor Moderator Staff Member

    Ratings:
    +295 / 0 / -0
    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.
     
    • Like Like x 1
  9. GFreak45

    GFreak45 I didnt slap you, i high 5'd your face.

    Ratings:
    +132 / 0 / -0
    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
     
  10. MissKerrigan

    MissKerrigan Active Member

    Ratings:
    +23 / 0 / -0
    I got it!

    So I must place the requirement in ALL 3 abilities, ofcourse !!
     
  11. GFreak45

    GFreak45 I didnt slap you, i high 5'd your face.

    Ratings:
    +132 / 0 / -0
    YES, you got it :)
     
  12. MissKerrigan

    MissKerrigan Active Member

    Ratings:
    +23 / 0 / -0
    yes, but i still don't understand where is this 'use' button for then...
     
  13. GFreak45

    GFreak45 I didnt slap you, i high 5'd your face.

    Ratings:
    +132 / 0 / -0
    if you have it in the "Use" section then the button will not dissapear, but be grayed out and unclickable.
     
    • Like Like x 1
  14. MissKerrigan

    MissKerrigan Active Member

    Ratings:
    +23 / 0 / -0
    thanks Gfreak
     
  15. GFreak45

    GFreak45 I didnt slap you, i high 5'd your face.

    Ratings:
    +132 / 0 / -0
    np :)
     

Share This Page