This might be a very simple problem but my knowledge on programming is limited to logic bricks. I ironically have a player script which determines the speed of my character and was wondering how I can have this change once a certain number is reached on my integer game property (i.e. when "counter" is equal to 5, speed becomes higher) ["Move: 2" refers to speed]. Here is the relevant section of the script.
import bge
from bge import render
cont = bge.logic.getCurrentController()
own = cont.owner
scene = bge.logic.getCurrentScene()
empty = scene.objects["Empty"]
pointer = scene.objects["Empty.002"]
empty.worldPosition = own.worldPosition
move = 2
emptyrot = cont.actuators["rotz"]
playerRot = cont.actuators["playerRot"]
mouseMove = cont.sensors["MouseLook"]
keyboard = bge.logic.keyboard.events
W = keyboard[bge.events.WKEY]
A = keyboard[bge.events.AKEY]
D = keyboard[bge.events.DKEY]
I am assuming this requires an "if" statement but how would I write this? Thanks.