Hi everyone!
I have a request to make and hopefully it is not too complicated.
I'm trying make conditionals in my move route (autonomous move routes).
I need a way to create points to jump to within a move route.
It would work just like the one in event pages. Create label and jump to label except it would be done in a move route. Jumping from one part of the move route to another.
Example in pseudo move route code:
Script: create_label(beginning)jump to (name of label) if conditions metjump to (name of label 2) if conditions metScript: create_label(Name of label)move in a directionjump oncejump to(beginning)Script: create_label(name of label 2)move in opposite directionjump twicejump to(beginning)Or something of the sort.
If you can afford to use the normal move route instead of autonomous, you can opt to just make each movement as 1 move route so you can utilize labels and so on...
@Yin:
Theoretically what you want can be done, but it will have several side effects you might not like.
First, there is no command "jump to label" in the move route options, which means that not only the labels but also the jump to has to be an added script command. And that will require a complex addition to the move route interpreter.
Unfortunately there is a specific reason why the move routes have only limited event commands: They have limited commands to speed up the processing, so that autonomous movement does not create the same lag as a direct parallel command.
If you use a script that reintroduces complex conditional sequences into the move routes, your move routes will cause more lag than they do now.
I can't tell you how much more lag - no one can tell that until such a script is made.
But that lag will force a limit on the number of events on you that is lower than the currently allowable number of events before lag.
If that is acceptable to you - OK, you know how many NPC-events you need per map.
But you need to know that your game will lag more due to this script, and that that can't be prevented.
@Andar
That sucks. I thought it would be a good workaround to reducing lag and simplifying events, but to know that it would cause lag is bad news. Ah well. Guess I'll just use a million pages. Thanks.
@Engr. Adiktuzmiko
If I use it in a normal move route, it would have to be a parallel process. I still wanted to keep the ability to talk to the character, but just change the move route depending on certain factors.
a million pages would also cause intermittent lag, as every time the map events are refreshed (when certain things change, like switches, variables, self switches, other stuff) it would need to start at the last page and work its way back through the million pages until it found one that would activate.
Also, move routes don't take up where the one on the previous active page left off, so if you have a specific path you wanted the event to follow, it would start over each time and probably run into obstacles.
I'm not certain I agree with the statement that your request would cause lag. A move route has to be looked at on each frame - whether it's an autonomous move route or one in a move route event command makes no difference.
I find your request interesting and challenging. I would like to experiment with it a bit, but couldn't do it until the weekend, and this weekend I may have to be away from home, so I couldn't get you any results quickly.
@Shaz - That would be awesome if you could!
I wouldn't mind the move routes starting over. I think I have something for that.
Yeah, I didn't have much time over the weekend (and had completely forgotten it). Can you send me a PM on Thursday with a link to this thread? That might serve as a reminder to me.
Yeah I couldn't check the topic because of the downtime before. I'll definitely PM you on Thursday.