My player sprite has variable called 'defense' and global variable 'hp' for example i set this 'defense' var. to 10.
Now when oponent has variable 'atk' to 15 and he hit the player, player should be lose 5 hp.
But when oponent 'atk' is equal to players 'defense', player should be lose 1 hp by one hit
I cant figure out how make this.
this is my example sytem
<img src="https://dl.dropboxusercontent.com/u/44710358/linia3.png" border="0" />