I don't know if anyone else played around with it but you can give units specific missions, like goto a location. And you can queue up these missions using the pushMission function.
There's a problem however, and I'm not sure if it's a bug or if I'm not using it correctly (still not sure about all of this function's parameters)
For a mod I'm working on now to automate missionaries I queue up two missions. the first is the goto event, to tell the missionary to goto a nearby city. The second mission is a spread event, to tell the unit to actually attempt to spread his religion.
Queueing those jobs will work most of the time but if the unit runs out of movement pts RIGHT on the city he's supposed to convert, he never gets to complete the mission to attempt to spread his religion. It's like once the unit arrives the goto mission is done, and then it tries to immediately execute the second mission which is to spread. unfortunately, no movement pts left so he can't do it, but the job is removed from the queue anyway, so next turn he's standing there waiting for new orders.
anyone know what I'm talking about?
There's a problem however, and I'm not sure if it's a bug or if I'm not using it correctly (still not sure about all of this function's parameters)
For a mod I'm working on now to automate missionaries I queue up two missions. the first is the goto event, to tell the missionary to goto a nearby city. The second mission is a spread event, to tell the unit to actually attempt to spread his religion.
Queueing those jobs will work most of the time but if the unit runs out of movement pts RIGHT on the city he's supposed to convert, he never gets to complete the mission to attempt to spread his religion. It's like once the unit arrives the goto mission is done, and then it tries to immediately execute the second mission which is to spread. unfortunately, no movement pts left so he can't do it, but the job is removed from the queue anyway, so next turn he's standing there waiting for new orders.
anyone know what I'm talking about?
Comment