HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Help with trigger

09-16-2003, 12:42 PM#1
ChaoticPeasant
I am trying to make it so that when a unit casts a specific spell from an item on a fire pit that it replaces the fire pit with a fire. I can get it to work using attacked unit and making a normal unit attack, but I want the match to make it morph. Here's the map.
09-16-2003, 08:54 PM#2
ChaoticPeasant
Bump
09-16-2003, 09:03 PM#3
35263526
First, don't bump your threads on the same day you posted them.

Second, explain more. Do you mean you want to make a trigger that looks for when a unit casts the spell 'Fire Pit On' and it targets a 'unit 'Fire Pit' it make flames on the 'Fire Pit' unit?

If so, you need to make a trigger that detects when a unit is ordered to cast the ability you based Fire Pit On off. Make a condition that checks if the ordered unit is within range of a fire pit (get the range of the Fire Pit On spell and use that). Then, use the if/then/else action and set it too:

--
If
--
Unit-type of targeted unit is equal to Fire Pit

------
Then
------
SFX - Create special effect on origin of targeted unit using 'model here (choose a fire model'

-----
Else
-----
Cinematic - Display text message to owner of ordered unt: 'May only target Fire Pits'
09-16-2003, 09:09 PM#4
ChaoticPeasant
No, I need to make the "Light Fire (Match)" spell, which is casted when you use the match, cause the Fire Pit to be replaced by the other structure I made called Fire(The reason I did this is because the Fire structure has the healign ward healign ability), but I can't figure out a way that when it is targeted by the Light Fire(Match) spell, it replaces the Fire Pit unit with the Fire unit. I hope that helps you understand better.
09-16-2003, 10:23 PM#5
RodOfNOD
I believe this should do the trick.

Good Luck.

Im in the IRC chat all the time so ask for more help there.
09-16-2003, 11:57 PM#6
ChaoticPeasant
Well, RodofNod, that wasn't what I was looking for, but the FireTarget part enabled me to complete it with almost everything I used in a previous atempts, thanks.
09-17-2003, 01:26 AM#7
RodOfNOD
Glad I could help but Im not sure what you wanted different from your initial description. One thing I forget to let you know was I made that attack SMART on the match so that it could ONLY target that firepit. I did this by making the target and the unit target both Ancient.

Let me know for curiosity sake what it was you were really trying to do.