So far from what I observed, it seems there are few errors and confusion here....
1. If RandomAdvt is equal/more than 5 you are making it 0
When player dies and if its not the 5th time, RandomAdvt will be 6
That means it will go back to 0
And when the 5th life ends, it will add 1 to RandomAdvt
Error Result = RandomAdvt will always be 0 or 1
Possible solution = Remove Else
2. You have given 2 impossible conditions :
RandomAdvt =1 and RandomAdvt =4
Error Result = Not possible
Possible Solution = Put "or" in the middle
3. I find no reason to make RandomAdvt set to 6 on different places
Cause it will eventually become 0