I am attempting to create a looping movement action between a unit's current position and the target of the starting ability.
The idea is to setup something like a supply route, the unit has a cargo hold, so it loads all the units it can at the starting point, takes them to the selected location where it drops them all (they disappear for a reward), then loads up as many units at that location, turns around and goes back dropping off the other unit type at the original spot for a reward, then continues on this pattern unless the owner interferes again.
The route needs to be user created and not hard wired. There are regions and units that work as becons to make sure they are near a valid start, and select a valid end. Also it needs to work for multiple units of the same type that might be working 2 different routes, IE we can't have the variables over written and confusing the first one when the 2nd one is issued.
I think I could solve this easily if there was a way to force the creation of variables for each time the ability was used, but I don't see that option, only set variable. Any help or ideas you might have would be appreicated.
The idea is to setup something like a supply route, the unit has a cargo hold, so it loads all the units it can at the starting point, takes them to the selected location where it drops them all (they disappear for a reward), then loads up as many units at that location, turns around and goes back dropping off the other unit type at the original spot for a reward, then continues on this pattern unless the owner interferes again.
The route needs to be user created and not hard wired. There are regions and units that work as becons to make sure they are near a valid start, and select a valid end. Also it needs to work for multiple units of the same type that might be working 2 different routes, IE we can't have the variables over written and confusing the first one when the 2nd one is issued.
I think I could solve this easily if there was a way to force the creation of variables for each time the ability was used, but I don't see that option, only set variable. Any help or ideas you might have would be appreicated.