I've lately been trying to recreate a small misson or two from WC2, and while I'm very satisfied with the way the maps turned out, I'm having some problems with the Quests!
I've combined the two first missons of the Orc Campaign, meaning that the first Quest would be to construct 4 farms and a barracks, much like one of the early Human Missons in WC3. Anyhow.
I've made an Integer Variable named "Farm", and made the following trigger:
Event:
Unit - A unit enters Map (I've made a region covering the whole map)
Conditions:
Unit-Type of triggering unit equal to Pig-Farm
Action:
Set Farms = (Farms + 1)
Now, this part works nicely. Once I've constructed 4 farms, the Quest is complete. First off, is there an easier way to do this?
The problem, however, is in the Quest.
How should I go forward to make the computer keep count of the amount of farms? And how do I get the quest and objective-complete things to display properly when done? So far I've managed to make the objectives show up at the Quest Screen, but it refuses to look like the ingame quests, and the objectives wont mark as completed like they do ingame.
An easy-to-grasp explanation of how I should go forward to pull this off properly (or even better, if somebody would make the correct trigger(s) and post it, provided it's not all that advanced) would be greatly appreciated!
I've combined the two first missons of the Orc Campaign, meaning that the first Quest would be to construct 4 farms and a barracks, much like one of the early Human Missons in WC3. Anyhow.
I've made an Integer Variable named "Farm", and made the following trigger:
Event:
Unit - A unit enters Map (I've made a region covering the whole map)
Conditions:
Unit-Type of triggering unit equal to Pig-Farm
Action:
Set Farms = (Farms + 1)
Now, this part works nicely. Once I've constructed 4 farms, the Quest is complete. First off, is there an easier way to do this?
The problem, however, is in the Quest.
How should I go forward to make the computer keep count of the amount of farms? And how do I get the quest and objective-complete things to display properly when done? So far I've managed to make the objectives show up at the Quest Screen, but it refuses to look like the ingame quests, and the objectives wont mark as completed like they do ingame.
An easy-to-grasp explanation of how I should go forward to pull this off properly (or even better, if somebody would make the correct trigger(s) and post it, provided it's not all that advanced) would be greatly appreciated!