HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Couple of trigger questions

09-24-2002, 02:09 AM#1
Warsong
First off, the map im making has "Guardians" units that constantly patrol the preset regions I made.
What I did, was set the guardians to neutral(Not Neut Hostile,there are hostiles used on the map guarding gold mines etc.).Then I set the alliance for the guardians(Players 11 and 12 are the Guardians) and set it so they would treat each other and neut hostile as allies, and the other players as enemies.Thing is, I had to do seperate triggers for each player.I.E Make Player 1 Treat Player 11 as enemy, I had to do this for EACH Guardian set, that's alot of triggers.:eek: Im sure this can be shortened, but i've no idea how, maybe with an array, but again no idea how to set up an array.
Then theres the Guardians patrol paths, I have an outer patrol path, and an inner path where most of the guardians stay.My thing with this is, I can get them to patrol to a random point in their respective areas, but they then just stick to that patrol path.I would prefer they wander a bit more,as in the keep changing their patrol paths, or move-attack paths, not sure how to do this ethier.:confused:
I've got their enitial spawn, and their respawning taken care of, now I just need a bit of help getting the final touches done on them.
When it comes to doing terrain, im a genius :D But triggers i'm only so so with.
If anyone can help me out with this, i'd be most appreciative.:)
09-24-2002, 02:56 AM#2
Mr.Safety
Quote:
I can get them to patrol to a random point in their respective areas

Well if you can do that then simply change the patrol to an attack-move to and place that in a periodic event that triggers every 20 second or something like that.

Mithrandir
09-24-2002, 03:17 AM#3
Guest
yeh, or even better, every 1 second pick a random unit and order him to attack-move somewhere so they aren't all going at once. If you want it organized, you will have to manually stick in regions, kinda like the TD maps.

action - for each integer A from 1 to 10 do player - alliance settings - make player[a] treat player 11 as an ally
action - for each integer A from 1 to 10 do player - alliance settings - make player[a] treat player 12 as an ally
action - for each integer A from 1 to 10 do player - alliance settings - make 11 treat player player[a] as an ally
action - for each integer A from 1 to 10 do player - alliance settings - make 12 treat player player[a] as an ally