If farmer.Value = 1 And cabbage.Value = 1 Then
MsgBox "你的狼吃了羊,羊没了。"
End If
If farmer.Value = 1 And wolf.Value = 1 Then
MsgBox "你的羊吃了白菜,白菜没了。"
End If
If farmer.Value = 1 And wolf.Value = 1 And sheep.Value = 1 Then
MsgBox "选中3种以上(含3种)对象过河"
End If
If farmer.Value = 1 And wolf.Value = 1 And cabbage.Value = 1 Then
MsgBox "选中3种以上(含3种)对象过河"
End If
If farmer.Value = 1 And cabbage.Value = 1 And sheep.Value = 1 Then
MsgBox "选中3种以上(含3种)对象过河"
End If
If wolf.Value = 1 And cabbage.Value = 1 And sheep.Value = 1 Then
MsgBox "选中3种以上(含3种)对象过河"
End If
If farmer.Value = 1 And wolf.Value = 1 And cabbage.Value = 1 And sheep.Value = 1 Then
MsgBox "选中3种以上(含3种)对象过河"
End If
只会写了单个的代码,运行后跳出好多个对话框···怎么把他们给组合起来编写代码?