• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

How to do you make a caravan mission?

Status
Not open for further replies.
Level 1
Joined
Mar 20, 2021
Messages
1
Hello everyone!
Does anyone know how to create the caravan formation system through the world editor. I am refering to those escort missions in the original campaign like Shards of the Alliance (Maiev and Tyrande escorting Kael's caravan) or The Long March (Thrall escorting Cairne's Kodos). I have peeked at the original maps but I can't really understand how it works. Can anyone please explain?
Thanks in advance!
 
Level 21
Joined
Mar 29, 2020
Messages
1,237
I haven't opened it up, but if I remember correctly it worked something like this:

the caravan has a set path, but only moves forward when your hero is nearby. also they only move super slowly.

an easy way to do something like that:

- set a bunch of regions along the path you want the caravan to go (this way you have more control over the caravan path than just moving towards the end location. you can trigger alternate routes and stuff like in the mission with kael where there is a faster path through an undead base). have these set as consecutive values in a region array.

- have a trigger that goes off whenever the caravan leader reaches one of the regions - this should change region_int to region_in+1. this will keep changing the region being targeted by the caravan.

- have a periodic trigger- if enemy units are in range of the caravan/the caravan is under attack (your choice) order the caravan units to attack move their current positions. or defend however you would like them to defend. else - if your hero is in range of the caravan - have it do the following:

the leading unit (who should have a pretty slow move rate, or be slowed down by triggers while moving as the caravan) should move towards 'region[Region_int] '. every other unit in the caravan should be ordered to move towards the unit in front of it.

else - if your hero is not in range - all units in the caravan should be ordered to stop. this will make the caravan stop moving when your hero is not nearby.

this should work as a basic caravan system. if you need more help maybe I can help you hash it out tomorrow (getting pretty late for me).


good luck!
 
Status
Not open for further replies.
Top