Problem with script
PostPosted: 31 Mar 2018, 13:08
Hey
I tried in a lot of ways to add a building but script didn't work.I don't know why. Can someone help me with it?
I used to do it with procedure onHouseDamaged,onUnitDied,onUnitAfterdied but result was the same.At least with this one i don't have any errors but after destroying storehouse(by soldiers,not script),nothing happens.
What is important i'm just starting to write scripts. This is my third attempt to understand this, so every tip is welcome.To be honest i'm not a native speaker of English so I apologize for all the mistakes.
I tried in a lot of ways to add a building but script didn't work.I don't know why. Can someone help me with it?
I used to do it with procedure onHouseDamaged,onUnitDied,onUnitAfterdied but result was the same.At least with this one i don't have any errors but after destroying storehouse(by soldiers,not script),nothing happens.
At start wanted to give player after killing enemy troops(procedure onUnitDied,onUnitAfterdied) his storehouse but errors forced me to try do it in other way...
What is important i'm just starting to write scripts. This is my third attempt to understand this, so every tip is welcome.To be honest i'm not a native speaker of English so I apologize for all the mistakes.