Question - D&D How to make a action go if it meets two parameters (events)

Discussion in 'GameMaker Studio 2 Community Tech Support' started by Collin Carroll, Dec 2, 2018.

  1. Collin Carroll

    Collin Carroll Member

    Joined:
    Dec 2, 2018
    Posts:
    5
    I don't know how to do this, Im a new coder (DnD).
     
  2. HeWhoShallNotBeNamed

    HeWhoShallNotBeNamed Member

    Joined:
    Nov 9, 2018
    Posts:
    16
    I'm not super familiar with DnD, but the basic setup you're looking for is:

    if(parameter1 = true)
    if(parameter2 = true)
    perform action​
     
  3. Collin Carroll

    Collin Carroll Member

    Joined:
    Dec 2, 2018
    Posts:
    5
    So use varibles?
     
  4. HeWhoShallNotBeNamed

    HeWhoShallNotBeNamed Member

    Joined:
    Nov 9, 2018
    Posts:
    16
    Basically. If you want an action to happen when two conditions are met, you need some kind of check to see if those conditions are met. Usually this is done in If statements. You can use more advanced things like switches or for loops, but if statements will work most of the time and are easiest for beginners to learn.
     
  5. Collin Carroll

    Collin Carroll Member

    Joined:
    Dec 2, 2018
    Posts:
    5
    I still don't understand that, maybe explain it differently?
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice