HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Help with special effects

04-13-2004, 07:03 PM#1
DoomSayer
Hey does anyone know the trigger or where I can find the trigger to have trained units have a special effect attached to them? i.e. Everytime a grunt is trained from a barracks it has a special effect attached to it.
Thanks!

P.S. I have the attachment points figured out so you dont need to go into that explanation ^_^
04-13-2004, 07:14 PM#2
BattleBotv8.2
Quote:
Originally Posted by BDragon19
Hey does anyone know the trigger or where I can find the trigger to have trained units have a special effect attached to them? i.e. Everytime a grunt is trained from a barracks it has a special effect attached to it.
Thanks!

P.S. I have the attachment points figured out so you dont need to go into that explanation ^_^

Event
Unit - Generic Event:
A unit is trained

Condition:
Unit-Type comparisen;
Unit type of trained unit equals to grunt

Action:
Special affect - Attach special affect at point (I think thats the trigger name).
04-13-2004, 07:16 PM#3
giiefgii
Event: Unit enters Entire map
Condition: Unit-type of Entering Unit equal to Grunt
Actions: Special Effect - Create (Whatever special effect you want) on Entering Unit

Should work
04-13-2004, 07:17 PM#4
DoomSayer
wow those replies were hella fast :D Thanks for the help
04-13-2004, 07:39 PM#5
DoomSayer
Well, either i followed directions wrong or your wrong ^_^ Im pretty sure i messed up. Heres the code...
Event
Unit - A unit Finishes construction

Condition
(Unit-type of (Trained unit)) Equal to Peon

Action
Special Effect - Create a special effect attached to the overhead of (Trained unit) using Abilities\Spells\Human\InnerFire\InnerFireTarget.mdl

Im guessing I messed up in the condition? The Units event didnt have a trained unit selection so Im pretty sure construction is the right path. I'll keep trying to tweak it but id appreciate it if i got help along the way. thanks.
04-13-2004, 07:41 PM#6
giiefgii
Maybe its better to use the event "Unit enters entire map" and change the condition to "Unit-Type of Entering unit".
04-13-2004, 07:49 PM#7
DoomSayer
Quote:
Originally Posted by giiefgii
Maybe its better to use the event "Unit enters entire map" and change the condition to "Unit-Type of Entering unit".

Yeah that definatly worked, heh. Thanks for the pointer man. Dont know what it is, I can figure out the long long time consuming triggers but when it comes down to these easy ones I go blank.
04-13-2004, 08:25 PM#8
BattleBotv8.2
Your wrong, not me, I'm always right =p (jk)

Unit - Finishes Training a Unit, what you did is if he finished constructing a building.
04-14-2004, 04:44 AM#9
Prophecy
Actually guys there is a way to do this without triggers at all. And using the method I'm about to explain, you can add "special effects" to all the units of a certain type no matter if they are created using triggers or a building.

What you want to do is create a custom ablility in the object editor based off of the ability Sphere. Now do the following.

Change "Art - Missile Art", "Art - Target Attachment Point 2", and "Art - Target Attachment 3" fields to blank (delete all strings or models). Then, set "Art - Target Attachments" to 1. Set your "Stats - Cooldown", "Stats - Duration - Hero", "Stats - Duration - Normal" all to zero.


Next, change "Art-Target" to the model of the special effect you want and change "Art - Attachment Point 1" to the point you want to add your special effect to (chest, origin, hand, foot, etc.)


I suggest you also change the name of the ability to something your notice when you see it. Finally in the units tab find the unit you want to add the special effect to and give the unit the ability you just created in the "Abilities - Normal" field.
04-14-2004, 11:06 PM#10
Ghost_81st
Quote:
Originally Posted by BDragon19
Well, either i followed directions wrong or your wrong ^_^ Im pretty sure i messed up. Heres the code...
Event
Unit - A unit Finishes construction

Condition
(Unit-type of (Trained unit)) Equal to Peon

Action
Special Effect - Create a special effect attached to the overhead of (Trained unit) using Abilities\Spells\Human\InnerFire\InnerFireTarget.mdl

Im guessing I messed up in the condition? The Units event didnt have a trained unit selection so Im pretty sure construction is the right path. I'll keep trying to tweak it but id appreciate it if i got help along the way. thanks.

The Reason it didnt wokr is becuase no one built a peon, they trained one. you want this event:
"Unit - A unit Finishes training a unit"