Hi,
I've created a game where the actions you choose generate scores for 3 differnt characters, but I want to set it so that reaching a certain score (-20) means that a new slide is triggered which kind of shows a 'game over' screen, if that makes sense. I've set VBA to assign different points but I don't know how to trigger a new slide if each score reaches -20 or more.
This is some of the code I have already:
Sub MilitaryPlusten()
Military.Caption = (Military.Caption) + 10
Senate.Caption = (Senate.Caption) - 5
Populace.Caption = (Populace.Caption) - 5
End Sub
Sub SenatePlusten()
Senate.Caption = (Senate.Caption) + 10
Military.Caption = (Military.Caption) - 5
Populace.Caption = (Populace.Caption) - 5
End Sub
Sub PopulacePlusten()
Populace.Caption = (Populace.Caption) + 10
Senate.Caption = (Senate.Caption) - 5
Military.Caption = (Military.Caption) - 5
End Sub
I've created a game where the actions you choose generate scores for 3 differnt characters, but I want to set it so that reaching a certain score (-20) means that a new slide is triggered which kind of shows a 'game over' screen, if that makes sense. I've set VBA to assign different points but I don't know how to trigger a new slide if each score reaches -20 or more.
This is some of the code I have already:
Sub MilitaryPlusten()
Military.Caption = (Military.Caption) + 10
Senate.Caption = (Senate.Caption) - 5
Populace.Caption = (Populace.Caption) - 5
End Sub
Sub SenatePlusten()
Senate.Caption = (Senate.Caption) + 10
Military.Caption = (Military.Caption) - 5
Populace.Caption = (Populace.Caption) - 5
End Sub
Sub PopulacePlusten()
Populace.Caption = (Populace.Caption) + 10
Senate.Caption = (Senate.Caption) - 5
Military.Caption = (Military.Caption) - 5
End Sub