I'm at a loss for this one. I'm pretty good at using waypoints but it seems that one can only use them once per character -- or so it seems. Here is the code:
;first time when game starts do following
:state=0:rotatetoplr,animate=1,rpg_setifused=iw1
:state=0,plrdistwithin=70:rpg_pointplayeratobject=12,rpg_wait4time=150,rpg_talkbox=40,rpg_entitytimerstart,state=1
:state=1,rpg_entitytimergreater=150:state=2
the first waypoint I use
:state=2,waypointstate=0:animate=2,waypointstart
;:state=2,waypointstate=3:animate=2,waypointnext
:state=2,waypointstate=3:animate=2,waypointnext
:state=2,waypointstate=5:rotatey=105,movefore=7,state=3,rpg_entitytimerstart,animate=1,activateifused=1
Now, I know that if you implement the command, "waypointstop" this will disable the character from using waypoints. So, I don't use that command.
I do move the character manually through scripting a couple of times as shown in the following:
:state=9,plrdistfurther=75:rotatey=-95,rpg_savemusic,activateifused=2,state=30
:state=30:animate=2,movefore=50,animate=1,state=31,rpg_entitytimerstart
:state=31,rpg_entitytimergreater=750:rotatey=125,state=32,rpg_entitytimerstart
:state=32,rpg_entitytimergreater=500:animate=2,movefore=23,state=10
:state=15,rpg_entitytimergreater=150:state=16
:state=16,activated=4:rotatey=90,movefore=85,rotatey=-96.5,state=20
After the last manual move, this places the character in the position where there is a waypoint. However, I can't seem to code it to get him to follow the waypoint at this point. I set up a scancodekey so that I can get the player into a position to see if the character will follow the waypoint or not.
:state=20,scancodekeypressed=69:state=21
You will notice I started out with a waypoint state condition of the character, however, I am sure that this is not his current state for waypoints. First of all it didn't work.
;:state=21,waypointstate=0:animate=2,waypointstart
So, I didn't use a condition at all. This is allowed and I used the waypointstart which finds the closest waypoint to the character and then uses that one.
:state=21:animate=2,waypointstart,state=22
:state=22:animate=2,waypointnext
This didn't work. I tried a few more command variations but to no avail. If nobody has used more than one different waypoint for the same character, then this is a question that will go unanswered for now. No need to bother responding with a suggestion unless you have made it work yourself.
Well, it does work. So what wasn't working? The condition scancodekeypressed=69 wasn't working for some reason. I haven't checked that out but I'm sure the key # is 69. F10 is 68 and it works as I have it in a constant loop checking when it is pressed. I used the "plrdistwithin" condition and it works just fine now. Go figure.
THEORY - you know everything but nothing works. PRACTICE - when everything works but don't know why. For me, theory and practice are combined: nothing works and I don't know why.