I have . I've also set skill30 back to 1 after it reaches 50 so that it can get nudged again.

The problem is in the maths. I really don't understand it. From the results of phent_getvelocity how can you know how fast the object is moving?