Also, the caster doesn't need to be a different unit. If this was simply for wandering, you can use the same unit as I did.
If you want to provide threat to a unit through behaviors, then yeah the unit would need to already be on the map at the same time, but you could catalog the unit in an array for use in this situation if you wanted to.
Rollback Post to RevisionRollBack
I am largely inactive, but I am still around. Feel free to poke me if you need some help, just be warned that I only really come back if I need help and/or if I'm posting a new map/library.
Also, the caster doesn't need to be a different unit. If this was simply for wandering, you can use the same unit as I did.
If you want to provide threat to a unit through behaviors, then yeah the unit would need to already be on the map at the same time, but you could catalog the unit in an array for use in this situation if you wanted to.
Fair enough, I'll try it out, back to the drawing board.
If you post some code I could try to make sense of it. :P
Rollback Post to RevisionRollBack
I am largely inactive, but I am still around. Feel free to poke me if you need some help, just be warned that I only really come back if I need help and/or if I'm posting a new map/library.
Meh doesn't matter, so many codes of mine gives about 100 errors all the time, but the map works amazing either way, guess I shouldn't really care about the errors as long as every single trigger works ingame without lagg or any memory error, but still gotta fix it..
EDIT: Eyescanned every damn trigger, that gave error, it's all fixed now.
Still looking for some neat ideas for artificial intelligence, so far I only have if the unit is under attack, and the unit cast a spell and stuff like that.
But would be great if the unit react when you get in range of them, for example;
High Templar, if you get in x range of zombie high templar, it casts storm.
The question is, how do you use that trigger when there are 0 units on the map that has the ability to provide that behaviour to a unit?
I've tried it in 10-15 different ways just because I was curious if it would work, and it didn't.
Could the "caster" be a critter? Do the critter need to be in range of the target unit of trigger?
It's a mystery trigger to me
@redbean87: Go
You'd have to add it to the unit after it's created if there are no units on the map.
Something like:
Also, the caster doesn't need to be a different unit. If this was simply for wandering, you can use the same unit as I did.
If you want to provide threat to a unit through behaviors, then yeah the unit would need to already be on the map at the same time, but you could catalog the unit in an array for use in this situation if you wanted to.
Fair enough, I'll try it out, back to the drawing board.
@Yaksmanofage: Go
Well I'll be a son of a bitch, it works.
But... the trigger doesn't even make any sense! :S
@redbean87: Go
Haha, well I'm glad to hear it worked.
If you post some code I could try to make sense of it. :P
@Yaksmanofage: Go
Meh doesn't matter, so many codes of mine gives about 100 errors all the time, but the map works amazing either way, guess I shouldn't really care about the errors as long as every single trigger works ingame without lagg or any memory error, but still gotta fix it..
EDIT: Eyescanned every damn trigger, that gave error, it's all fixed now.
Still looking for some neat ideas for artificial intelligence, so far I only have if the unit is under attack, and the unit cast a spell and stuff like that. But would be great if the unit react when you get in range of them, for example;
High Templar, if you get in x range of zombie high templar, it casts storm.