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
![Image Image](/proxy.php?image=https%3A%2F%2Ffilestore.community.support.microsoft.com%2Fapi%2Fimages%2F09a32200-2ee5-4257-be53-f50fc9217f42%3Fupload%3Dtrue&hash=ee00eb4c7e144513d5a02330a5d9c1c0)
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