m'kay :3
*attempts to answer first*
This is actually pretty simple.
FIRSTLY, Make a conditional branch that activates when a switch is turned on.
THEN, in that little part that's like "OTHERWISE" make ANOTHER conditional branch that activates when you have one beer in the inventory.
So you'll have a few conditional branches, and it should be like this:
CONDITIONAL BRANCH IF SWITCH WHATEVER IS ON
<>
ELSEWISE
CONDITIONAL BRANCH IF 1 BEER IN INVENTORY
<>
ELSEWISE
<>
END BRANCH
<>
END BRANCH
<>
So now you're gonna have to dump your messages in there.
So, the first time you talk to this guy, you're probably not gonna have a beer and the switch DEFINITELY won't be turned on. So your first message should go:
CONDITIONAL BRANCH IF SWITCH WHATEVER IS ON
<>
ELSEWISE
CONDITIONAL BRANCH IF 1 BEER IN INVENTORY
<>
ELSEWISE
<[RIGHT HERE]>
END BRANCH
<>
END BRANCH
<>
all in that little section. Then, the second message, when you have a beer, is gonna be
CONDITIONAL BRANCH IF SWITCH WHATEVER IS ON
<>
ELSEWISE
CONDITIONAL BRANCH IF 1 BEER IN INVENTORY
<[RIGHT HERE]>
ELSEWISE
message "HEY, GIMMIE A BEER."
<>
END BRANCH
<>
END BRANCH
<>
So, after you get that message in, you're gonna need to dump that first switch in after that. SO INSIDE THAT LITTLE SECTION, IT SHOULD BE LIKE:
CONDITIONAL BRANCH IF 1 BEER IN INVENTORY
message "YO MAN, THANKS!"
Switch WHATEVER is turned ON
<>
ELSEWISE
message "HEY, GIMMIE A BEER"
<>
END
THEN, YOU PUT THAT FINAL MESSAGE right in that first little switch section.
CONDITIONAL BRANCH IF SWITCH WHATEVER IS ON
<[Yeah, right here]>
ELSEWISE
CONDITIONAL BRANCH IF 1 BEER IN INVENTORY
message "YO MAN, THANKS!"
Switch WHATEVER is turned ON
<>
ELSEWISE
message "HEY, GIMMIE A BEER"
<>
END
<>
END BRANCH
<>
And that should be it. I know it's confusing, so if you have any questions just ask me ._.
[EDIT]: Basically what Sirus said, lol