Hey, im not making a dota, i just need help to understand how i make a trigger like in the dota.
I want the spawning system to spawn (example, 5 marines and 2 marauders) every 50 sec. Then i want them to attack the other side of the map, but they have to go after points on the map like on a road.
I Know this is possible, but i dont know how i do it. I appreciate every help i get.
If you want some more info, just ask ^^
Spawns ever x seconds:
- use a timer and spawn units when the timer runs out, give them orders and save the checkpoint ID within the unit's custom value
Ordering for checkpoints:
- use a regions for each checkpoint
- use a custom value to track the next checkpoint destination (checkpoint ID)
- order units based on their checkpoint ID within their custom value
- if a unit enters a checkpoint region, set a new checkpoint ID and order them [if you have multiple paths using the same checkpoint ID you might want to add a path ID as a second custom value]
- if a unit starts being idle, order it to attack the checkpoint based on the ID saved in its custom value (-> so units will go to their checkpoint after being immobilized or lose their order because of blocked paths)
As you can see it can be pretty complex to do that easy task properly.
Thanks a lot for taking time to try to explain it, but im am not so good with triggers ( i do data, have not tried triggers so much :/) Could you give me some more datails or link me to a site with triggers ? its really hard to understand what to do, im a really noob with triggers right now :/ thank you so much, StArCrAfTIIHighDeff :)
in the editor, hit 'open map.' Then go to Battle.net, log in, and DL one of those maps. Check out the triggers of a custom map you've played before to get a familiarity for triggers.
The basics:
The event Ahli is talking about is "Periodic Event"
Regions are basically area's of w/e size you define. They are a layer in the terrain editor (Press R after loading a map and the region editor will show).
Order units with "Issue Order."
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hey, im not making a dota, i just need help to understand how i make a trigger like in the dota. I want the spawning system to spawn (example, 5 marines and 2 marauders) every 50 sec. Then i want them to attack the other side of the map, but they have to go after points on the map like on a road. I Know this is possible, but i dont know how i do it. I appreciate every help i get. If you want some more info, just ask ^^
Thanks in advance, StArCrAfTIIHighDeff :)
Spawns ever x seconds:
- use a timer and spawn units when the timer runs out, give them orders and save the checkpoint ID within the unit's custom value
Ordering for checkpoints:
- use a regions for each checkpoint
- use a custom value to track the next checkpoint destination (checkpoint ID)
- order units based on their checkpoint ID within their custom value
- if a unit enters a checkpoint region, set a new checkpoint ID and order them [if you have multiple paths using the same checkpoint ID you might want to add a path ID as a second custom value]
- if a unit starts being idle, order it to attack the checkpoint based on the ID saved in its custom value (-> so units will go to their checkpoint after being immobilized or lose their order because of blocked paths)
As you can see it can be pretty complex to do that easy task properly.
@Ahli634: Go
Thanks a lot for taking time to try to explain it, but im am not so good with triggers ( i do data, have not tried triggers so much :/) Could you give me some more datails or link me to a site with triggers ? its really hard to understand what to do, im a really noob with triggers right now :/ thank you so much, StArCrAfTIIHighDeff :)
in the editor, hit 'open map.' Then go to Battle.net, log in, and DL one of those maps. Check out the triggers of a custom map you've played before to get a familiarity for triggers.
The basics:
The event Ahli is talking about is "Periodic Event"
Regions are basically area's of w/e size you define. They are a layer in the terrain editor (Press R after loading a map and the region editor will show).
Order units with "Issue Order."