Help with dynamic scripting in an own new campaign
PostPosted: 07 Apr 2017, 22:00
Hello everyone 
I started creating new campaign and of course I'm using dynamic scripting. I am not good enough, so I need your help. Firstly, please do not close this topic until I finish my campaign. Who wants to know I am just only scripting, my friend makes only maps, so I can aim only on scripting.
And maybe to keep messages clear if I solve problem, I (or admin) will write a post with solution step by step and all previous tips concerned only this exact problem will be removed.
So, my first problem:
1. I want to order groups to attack next building, but this group(s) just only are "trying" to do something and stay in place - it looks like bug. Script code
How could I write to have properly working script?
Additional info : 'oddzial(number)' is a group of units, not important what type; 'gospo(number)' is a building, exactly farm; Kenji is a unit swordsmen.
What is more, if I use command "OnHouseDestroyed" and then "Actions.GroupAttackUnit" or "Actions.GroupAttackHouse" it works properly.

I started creating new campaign and of course I'm using dynamic scripting. I am not good enough, so I need your help. Firstly, please do not close this topic until I finish my campaign. Who wants to know I am just only scripting, my friend makes only maps, so I can aim only on scripting.
And maybe to keep messages clear if I solve problem, I (or admin) will write a post with solution step by step and all previous tips concerned only this exact problem will be removed.
So, my first problem:
1. I want to order groups to attack next building, but this group(s) just only are "trying" to do something and stay in place - it looks like bug. Script code
This lines have been written correctly, it works, but problem is with units, which are trying to go, but they can not, just still trying to go.
How could I write to have properly working script?
Additional info : 'oddzial(number)' is a group of units, not important what type; 'gospo(number)' is a building, exactly farm; Kenji is a unit swordsmen.
What is more, if I use command "OnHouseDestroyed" and then "Actions.GroupAttackUnit" or "Actions.GroupAttackHouse" it works properly.