HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Need Trigger help for new map.

09-08-2004, 03:27 AM#1
Legaycspy
I am currently working on a small map called Left to die in Dalaran. In it, the players will have to defend them selves from spawned unitst that spawn every minute. Each player has a mage, what I want is when a unit is spawned, is it shoudl attack move to a random mage.

I also need help on a spell based off mirror image. What it does is it creats 2 images of the target, +2 for every level of air magic you have.(The level of the air magic will be wisps in the cornor of the map, for example if player 1 has 4 wisps, he has lv4 air magic, which means a total of 6 images(2 for each wisp +2) would be created.)
09-08-2004, 05:24 AM#2
Unknown6
Quote:
Originally Posted by Legaycspy
I am currently working on a small map called Left to die in Dalaran. In it, the players will have to defend them selves from spawned unitst that spawn every minute. Each player has a mage, what I want is when a unit is spawned, is it shoudl attack move to a random mage.


use: unit - order [last created unit] to attack/move to random unit from [every units of type[mage]]

something like that.
09-08-2004, 08:27 AM#3
logik
you should be able to do the mirror image thing using the interger condition of the lvl of air magic...
09-08-2004, 02:05 PM#4
Legaycspy
Quote:
Originally Posted by Unknown6
use: unit - order [last created unit] to attack/move to random unit from [every units of type[mage]]

something like that.
Ya but the problem with that, is once get to the where the mage was when it was spawned it is just sits there.
09-08-2004, 09:27 PM#5
duckduck
This is what i think could be the problem:

1:r u sure u made them enemies
2:some units that do chaos damage cant attack (have no idea why)
09-08-2004, 09:38 PM#6
Unknown6
exactly!
09-08-2004, 09:55 PM#7
BuRnInSpartan
Quote:
Originally Posted by Unknown6
exactly!

_________________________________________________________________100% spam and all you do is this... well i don't know how this would turn out b/c i don't feel like opening w.e. but make the mages variables so

make variables...
Mage_1(and do this for every players mage) (variable type unit)
Mages (variable type unit group)

now for the triggers,

Events: Map iniz

Conditions: NONE

Actions: Unit create 1 mage for player 1
Set Mage_1 (player 1's mage)= last created unit
Unit group- add Mage_1 to Mages

(do that trigger for every player (but be sure to use other variables like mage_2 and mage_3 for the other players))

then do a trigger like this for when the unit is spawned to attack the mage....
you can just use your spawn triggers but be sure to make last created unit to order attack random unit from mages (the variable unit group)

Events: a unit enters region (w/e)

Conditions: player owner of unit (w/e) = to player (w/e)

Actions: Unit- order triggering unit to attack random unit from mages


_________________________________________________________________
hope this helps