HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Me again... :p Find the error =)

02-02-2004, 09:30 PM#1
Faradome
Events
Time - Every (Random real number between 4.00 And 10.00) seconds of game time

Conditions
(Minotaur (New) 0015 <gen> has buff El Mino (Level 1) (New) Equal to True

Actions
Unit - Set life of (Random unit from (Units in (playable map area))) to (Life of (Matching unit) - 150.00)
Special Effect - Create a special effect at the origin of (Matching unit) using Doodads\Cinematic\Lightningbolt\Lightningbolt.mdl
Cinematic - Apply a filter over 0.50 seconds using Additive blending on texture White Mask, starting with color (100.00%, 100.00%, 100.00%) and 25% transparency and ending with color (75.00%, 75.00%, 100.00%) and 25% transparency
Floating Text - Create floating text that reads Lightning Hit -150 above (Matching unit) with Z offset 200.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 50.00% transparency

The idea being a Thunderstorm spell effect that hits random units (friend or foe) and does 150 damage at level 1. And when I cast the buff on myself, it does properly damage random enemies and display the white flash when it strikes. But the lightning bolt effect and the text never appear (the victims just die and topple over), and people with 1000+ hit points die in one hit for some reason, while it's supposed to do only 150 damage at level 1.

Gah.

This is my last trigger effect :gsmile: Really 8))
02-02-2004, 09:38 PM#2
Shark
just modify the Shadow Strike ability, and voila, u got urself your trigger spell...
oh, i see....
well, try using this trigger......
Unit group - pick every unit in unit group (units iin map) and do actions
- your trigger here, with minor adjustments, instead of using Matching unit, use Picked unit...

hope it helps...
damn, i see the error now...this one will target all units :)

well, i can't tell u the trigger put u could try changing that matching unit to something else....
02-02-2004, 09:39 PM#3
Narwanza
Whoa, I see problems in your first action. Create a unit variable. Then set your unit variable to a (random unit from (Units in Playable map area)). Then set the life of your unit variable = itself - 150. Create the special effect on your unit variable. Create the floating text above the unit variable also. (matching) does not work for what you are trying to accomplish.
02-02-2004, 09:41 PM#4
Faradome
I tried Picked unit first, and it did the exact same:(

Btw, the spell is cast on himself by a modified speed potion thingy, which gives him the El Mino (Level 1\2\3) (New) buff. No need for shadow strike.

Edit: Narwanza, that might very well be it! I'd give you all my points if I knew how. Talk about being noob.

/Me cries, longs back to the Diablo 2 modmaking days :D
02-02-2004, 09:48 PM#5
Shark
narwanza beat me to it :)
i'm kinda tired and cannot do complex triggers right now (believe me, i need sleep that much that this IS complex) :)