Skip to content
#304
Auto-translated
BlueHeavenHero

By the way... How do you attach a combat script to a town?
And another question - how do you make it so that at the beginning, the knight-defender of the castle casts a prayer?
How do you make it so that after the video plays, some function is executed?
1. The same way as with a hero, but instead of Combat Script, go lower in the town's properties and use the script string.
2. I don't know if it will work with prayer, but try UnitCastGlobalSpell(GetDefenderHero(), SPELL_PRAYER). Don't forget to give the hero the Prayer skill.
3. StartDialogScene("link to the video", "function")

Statistics

Welcome our newest member: dodoD0D0