Using VBA to trigger a certain slide


Joined
Aug 15, 2019
Messages
1
Reaction score
0
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
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top