I’m quite new to blender’s python. I want to compare Strings. I tried using ‘==’, ‘=’, .equals(). They don’t work. I’m probably missing something.
cont = bge.logic.getCurrentController() scene = bge.logic.getCurrentScene() player = cont.owner mainRig = scene.objects['Obj1'] if mainRig["Action"]=='Move': player['HP']=111
To bge python, I am a beginner, so please make this simple.