I see one problem right off.
You never leave state=0, so the timer is infinitely started over and over and over.
Therefore, the other conditions are never met, because the timer never reaches 4500, so the waypointstart is never called.
Edit
Boy I feel dumb right now...
Here's another problem with state=0
:state=0,timerstart
Should read
:state=0:timerstart
because timerstart is not a condition so the comma should have been a colon to separate the condition from the action. So actually the timer is never started at all, but if you had used the colon you still would have had the problem mentioned above.
As far as the rest goes, somone else will have to help you there, because I do not use waypoints very often.
I never had any luck using waypoints (i get agrivated with them too easily and gave up)
I haven't tried this but you can...
;Artificial Intelligence Script
;Header
desc = Follow Waypoints
;Triggers
:state=0:timerstart,state=1
:state=1,waypointstate=0,timergreater=4500:animate=2,waypointstart
:state=1,waypointstate=3:animate=2,waypointnext
:state=1,waypointstate=4:animate=2,waypointrandom
:state=1,waypointstate=5:animate=2,waypointstop
;End of Script