| 12-20-2004, 03:37 PM | #1 |
ok everything works except... everyunit effected dies instantly and every unit in the targeted group dies... Freezing Events Unit - A unit Begins channeling an ability Conditions (Ability being cast) Equal to Freezing Actions Set Cast_Unit_Freezing = (Casting unit) If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Level of Freezing for Cast_Unit_Freezing) Equal to 1 Then - Actions Set Freezing_Nova = 1 Else - Actions Do nothing If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Level of Freezing for Cast_Unit_Freezing) Equal to 2 Then - Actions Set Freezing_Nova = 2 Else - Actions Do nothing If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Level of Freezing for Cast_Unit_Freezing) Equal to 3 Then - Actions Set Freezing_Nova = 3 Else - Actions Do nothing If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Level of Freezing for Cast_Unit_Freezing) Equal to 4 Then - Actions Set Freezing_Nova = 4 Else - Actions Do nothing Trigger - Run Freezing Effect <gen> (checking conditions) Freezing Effect Events Map initialization Conditions Actions Animation - Play Cast_Unit_Freezing's Animation - Spell Channel animation If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions Freezing_Nova Equal to 1 Then - Actions Unit Group - Pick every unit in (Units within 1000.00 of (Position of Cast_Unit_Freezing)) and do (Actions) Loop - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Owner of (Picked unit)) Equal to Neutral Hostile Then - Actions Unit Group - Add (Picked unit) to Freezing_Group Set Freezing_Unit_Unknown = (Random unit from Freezing_Group) Special Effect - Create a special effect at (Position of Freezing_Unit_Unknown) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl Unit - Set life of Freezing_Unit_Unknown to -75.00 Unit Group - Remove Freezing_Unit_Unknown from Freezing_Group Set Freezing_Unit_Unknown = (Random unit from Freezing_Group) Special Effect - Create a special effect at (Position of Freezing_Unit_Unknown) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl Unit - Set life of Freezing_Unit_Unknown to -75.00 Unit Group - Remove Freezing_Unit_Unknown from Freezing_Group Set Freezing_Unit_Unknown = (Random unit from Freezing_Group) Special Effect - Create a special effect at (Position of Freezing_Unit_Unknown) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl Unit - Set life of Freezing_Unit_Unknown to -75.00 Unit Group - Remove Freezing_Unit_Unknown from Freezing_Group Else - Actions Do nothing Else - Actions Do nothing If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions Freezing_Nova Equal to 2 Then - Actions Unit Group - Pick every unit in (Units within 1000.00 of (Position of Cast_Unit_Freezing)) and do (Actions) Loop - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Owner of (Picked unit)) Equal to Neutral Hostile Then - Actions Unit Group - Add (Picked unit) to Freezing_Group Set Freezing_Unit_Unknown = (Random unit from Freezing_Group) Special Effect - Create a special effect at (Position of Freezing_Unit_Unknown) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl Unit - Set life of Freezing_Unit_Unknown to -100.00 Unit Group - Remove Freezing_Unit_Unknown from Freezing_Group Set Freezing_Unit_Unknown = (Random unit from Freezing_Group) Special Effect - Create a special effect at (Position of Freezing_Unit_Unknown) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl Unit - Set life of Freezing_Unit_Unknown to -100.00 Unit Group - Remove Freezing_Unit_Unknown from Freezing_Group Set Freezing_Unit_Unknown = (Random unit from Freezing_Group) Special Effect - Create a special effect at (Position of Freezing_Unit_Unknown) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl Unit - Set life of Freezing_Unit_Unknown to -100.00 Unit Group - Remove Freezing_Unit_Unknown from Freezing_Group Set Freezing_Unit_Unknown = (Random unit from Freezing_Group) Special Effect - Create a special effect at (Position of Freezing_Unit_Unknown) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl Unit - Set life of Freezing_Unit_Unknown to -100.00 Unit Group - Remove Freezing_Unit_Unknown from Freezing_Group Else - Actions Do nothing Else - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions Freezing_Nova Equal to 3 Then - Actions Unit Group - Pick every unit in (Units within 1000.00 of (Position of Cast_Unit_Freezing)) and do (Actions) Loop - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Owner of (Picked unit)) Equal to Neutral Hostile Then - Actions Unit Group - Add (Picked unit) to Freezing_Group Set Freezing_Unit_Unknown = (Random unit from Freezing_Group) Special Effect - Create a special effect at (Position of Freezing_Unit_Unknown) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl Unit - Set life of Freezing_Unit_Unknown to -100.00 Unit Group - Remove Freezing_Unit_Unknown from Freezing_Group Set Freezing_Unit_Unknown = (Random unit from Freezing_Group) Special Effect - Create a special effect at (Position of Freezing_Unit_Unknown) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl Unit - Set life of Freezing_Unit_Unknown to -100.00 Unit Group - Remove Freezing_Unit_Unknown from Freezing_Group Set Freezing_Unit_Unknown = (Random unit from Freezing_Group) Special Effect - Create a special effect at (Position of Freezing_Unit_Unknown) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl Unit - Set life of Freezing_Unit_Unknown to -100.00 Unit Group - Remove Freezing_Unit_Unknown from Freezing_Group Set Freezing_Unit_Unknown = (Random unit from Freezing_Group) Special Effect - Create a special effect at (Position of Freezing_Unit_Unknown) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl Unit - Set life of Freezing_Unit_Unknown to -100.00 Unit Group - Remove Freezing_Unit_Unknown from Freezing_Group Set Freezing_Unit_Unknown = (Random unit from Freezing_Group) Special Effect - Create a special effect at (Position of Freezing_Unit_Unknown) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl Unit - Set life of Freezing_Unit_Unknown to -100.00 Unit Group - Remove Freezing_Unit_Unknown from Freezing_Group Else - Actions Do nothing Else - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions Freezing_Nova Equal to 4 Then - Actions Unit Group - Pick every unit in (Units within 1000.00 of (Position of Cast_Unit_Freezing)) and do (Actions) Loop - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Owner of (Picked unit)) Equal to Neutral Hostile Then - Actions Unit Group - Add (Picked unit) to Freezing_Group Set Freezing_Unit_Unknown = (Random unit from Freezing_Group) Special Effect - Create a special effect at (Position of Freezing_Unit_Unknown) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl Unit - Set life of Freezing_Unit_Unknown to -150.00 Unit Group - Remove Freezing_Unit_Unknown from Freezing_Group Set Freezing_Unit_Unknown = (Random unit from Freezing_Group) Special Effect - Create a special effect at (Position of Freezing_Unit_Unknown) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl Unit - Set life of Freezing_Unit_Unknown to -150.00 Unit Group - Remove Freezing_Unit_Unknown from Freezing_Group Set Freezing_Unit_Unknown = (Random unit from Freezing_Group) Special Effect - Create a special effect at (Position of Freezing_Unit_Unknown) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl Unit - Set life of Freezing_Unit_Unknown to -150.00 Unit Group - Remove Freezing_Unit_Unknown from Freezing_Group Set Freezing_Unit_Unknown = (Random unit from Freezing_Group) Special Effect - Create a special effect at (Position of Freezing_Unit_Unknown) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl Unit - Set life of Freezing_Unit_Unknown to -150.00 Unit Group - Remove Freezing_Unit_Unknown from Freezing_Group Set Freezing_Unit_Unknown = (Random unit from Freezing_Group) Special Effect - Create a special effect at (Position of Freezing_Unit_Unknown) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl Unit - Set life of Freezing_Unit_Unknown to -150.00 Unit Group - Remove Freezing_Unit_Unknown from Freezing_Group Set Freezing_Unit_Unknown = (Random unit from Freezing_Group) Special Effect - Create a special effect at (Position of Freezing_Unit_Unknown) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl Unit - Set life of Freezing_Unit_Unknown to -150.00 Unit Group - Remove Freezing_Unit_Unknown from Freezing_Group Else - Actions Do nothing Else - Actions does the - make it a negative? if so is there a way to subtract rather than make a negative? |
| 12-20-2004, 03:40 PM | #2 |
here's another simple trigger that i've had issues with... Azunis Blessed Events Unit - A unit enters (Playable map area) Conditions ((Entering unit) has buff Azuni's Power ) Equal to True Actions Set Azunis_Blessed = (Entering unit) Trigger - Turn on Azunis Power <gen> Azunis Power Events Unit - A unit Is attacked Conditions (Attacking unit) Equal to Azunis_Blessed (Owner of (Attacked unit)) Equal to Neutral Hostile Actions Advanced - For Azunis_Blessed Increase damage by 1 the problem is is that when Azunis_Blessed attacks a unit he never really gets the bonus 1 damage... and yes i did set the advanced triggers in the editor and yes i made a trigger with initialize advanced triggers |
| 12-20-2004, 03:53 PM | #3 |
I think that your problem with the first trigger is in the actual effect part. You are setting the units effected to -Blah. You need to do (Life of unit-Blah) or something like that. |
| 12-20-2004, 04:09 PM | #4 |
i'm sorry that didn't make much sense... |
| 12-20-2004, 04:40 PM | #5 |
Please, when you're pasting this much trigger stuff, use the [code ] tag. To use this, put [code ] at the beginning of where you are starting to paste a trigger, and [/code ] at the end. Note that I inserted an unnecessary space after the "e" in code, just so I could give you an example. Using those tags makes it much more readable. As it is, it's too much of a headache to read through the whole thing. |
| 12-20-2004, 05:21 PM | #6 |
Code:
Freezing Effect Events Map initialization Conditions Actions Animation - Play Cast_Unit_Freezing's Animation - Spell Channel animation If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions Freezing_Nova Equal to 1 Then - Actions Unit Group - Pick every unit in (Units within 1000.00 of (Position of Cast_Unit_Freezing)) and do (Actions) Loop - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Owner of (Picked unit)) Equal to Neutral Hostile Then - Actions Unit Group - Add (Picked unit) to Freezing_Group Set Freezing_Unit_Unknown = (Random unit from Freezing_Group) Special Effect - Create a special effect at (Position of Freezing_Unit_Unknown) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl Unit - Set life of Freezing_Unit_Unknown to -75.00 Unit Group - Remove Freezing_Unit_Unknown from Freezing_Group Set Freezing_Unit_Unknown = (Random unit from Freezing_Group) Special Effect - Create a special effect at (Position of Freezing_Unit_Unknown) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl Unit - Set life of Freezing_Unit_Unknown to -75.00 Unit Group - Remove Freezing_Unit_Unknown from Freezing_Group Set Freezing_Unit_Unknown = (Random unit from Freezing_Group) Special Effect - Create a special effect at (Position of Freezing_Unit_Unknown) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl Unit - Set life of Freezing_Unit_Unknown to -75.00 Unit Group - Remove Freezing_Unit_Unknown from Freezing_Group Else - Actions Do nothing Else - Actions Do nothing If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions Freezing_Nova Equal to 2 Then - Actions Unit Group - Pick every unit in (Units within 1000.00 of (Position of Cast_Unit_Freezing)) and do (Actions) Loop - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Owner of (Picked unit)) Equal to Neutral Hostile Then - Actions Unit Group - Add (Picked unit) to Freezing_Group Set Freezing_Unit_Unknown = (Random unit from Freezing_Group) Special Effect - Create a special effect at (Position of Freezing_Unit_Unknown) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl Unit - Set life of Freezing_Unit_Unknown to -100.00 Unit Group - Remove Freezing_Unit_Unknown from Freezing_Group Set Freezing_Unit_Unknown = (Random unit from Freezing_Group) Special Effect - Create a special effect at (Position of Freezing_Unit_Unknown) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl Unit - Set life of Freezing_Unit_Unknown to -100.00 Unit Group - Remove Freezing_Unit_Unknown from Freezing_Group Set Freezing_Unit_Unknown = (Random unit from Freezing_Group) Special Effect - Create a special effect at (Position of Freezing_Unit_Unknown) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl Unit - Set life of Freezing_Unit_Unknown to -100.00 Unit Group - Remove Freezing_Unit_Unknown from Freezing_Group Set Freezing_Unit_Unknown = (Random unit from Freezing_Group) Special Effect - Create a special effect at (Position of Freezing_Unit_Unknown) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl Unit - Set life of Freezing_Unit_Unknown to -100.00 Unit Group - Remove Freezing_Unit_Unknown from Freezing_Group Else - Actions Do nothing Else - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions Freezing_Nova Equal to 3 Then - Actions Unit Group - Pick every unit in (Units within 1000.00 of (Position of Cast_Unit_Freezing)) and do (Actions) Loop - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Owner of (Picked unit)) Equal to Neutral Hostile Then - Actions Unit Group - Add (Picked unit) to Freezing_Group Set Freezing_Unit_Unknown = (Random unit from Freezing_Group) Special Effect - Create a special effect at (Position of Freezing_Unit_Unknown) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl Unit - Set life of Freezing_Unit_Unknown to -100.00 Unit Group - Remove Freezing_Unit_Unknown from Freezing_Group Set Freezing_Unit_Unknown = (Random unit from Freezing_Group) Special Effect - Create a special effect at (Position of Freezing_Unit_Unknown) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl Unit - Set life of Freezing_Unit_Unknown to -100.00 Unit Group - Remove Freezing_Unit_Unknown from Freezing_Group Set Freezing_Unit_Unknown = (Random unit from Freezing_Group) Special Effect - Create a special effect at (Position of Freezing_Unit_Unknown) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl Unit - Set life of Freezing_Unit_Unknown to -100.00 Unit Group - Remove Freezing_Unit_Unknown from Freezing_Group Set Freezing_Unit_Unknown = (Random unit from Freezing_Group) Special Effect - Create a special effect at (Position of Freezing_Unit_Unknown) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl Unit - Set life of Freezing_Unit_Unknown to -100.00 Unit Group - Remove Freezing_Unit_Unknown from Freezing_Group Set Freezing_Unit_Unknown = (Random unit from Freezing_Group) Special Effect - Create a special effect at (Position of Freezing_Unit_Unknown) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl Unit - Set life of Freezing_Unit_Unknown to -100.00 Unit Group - Remove Freezing_Unit_Unknown from Freezing_Group Else - Actions Do nothing Else - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions Freezing_Nova Equal to 4 Then - Actions Unit Group - Pick every unit in (Units within 1000.00 of (Position of Cast_Unit_Freezing)) and do (Actions) Loop - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Owner of (Picked unit)) Equal to Neutral Hostile Then - Actions Unit Group - Add (Picked unit) to Freezing_Group Set Freezing_Unit_Unknown = (Random unit from Freezing_Group) Special Effect - Create a special effect at (Position of Freezing_Unit_Unknown) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl Unit - Set life of Freezing_Unit_Unknown to -150.00 Unit Group - Remove Freezing_Unit_Unknown from Freezing_Group Set Freezing_Unit_Unknown = (Random unit from Freezing_Group) Special Effect - Create a special effect at (Position of Freezing_Unit_Unknown) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl Unit - Set life of Freezing_Unit_Unknown to -150.00 Unit Group - Remove Freezing_Unit_Unknown from Freezing_Group Set Freezing_Unit_Unknown = (Random unit from Freezing_Group) Special Effect - Create a special effect at (Position of Freezing_Unit_Unknown) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl Unit - Set life of Freezing_Unit_Unknown to -150.00 Unit Group - Remove Freezing_Unit_Unknown from Freezing_Group Set Freezing_Unit_Unknown = (Random unit from Freezing_Group) Special Effect - Create a special effect at (Position of Freezing_Unit_Unknown) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl Unit - Set life of Freezing_Unit_Unknown to -150.00 Unit Group - Remove Freezing_Unit_Unknown from Freezing_Group Set Freezing_Unit_Unknown = (Random unit from Freezing_Group) Special Effect - Create a special effect at (Position of Freezing_Unit_Unknown) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl Unit - Set life of Freezing_Unit_Unknown to -150.00 Unit Group - Remove Freezing_Unit_Unknown from Freezing_Group Set Freezing_Unit_Unknown = (Random unit from Freezing_Group) Special Effect - Create a special effect at (Position of Freezing_Unit_Unknown) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl Unit - Set life of Freezing_Unit_Unknown to -150.00 Unit Group - Remove Freezing_Unit_Unknown from Freezing_Group Else - Actions Do nothing Else - Actions hey thanks that's quite nifty ![]() |
| 12-21-2004, 03:12 AM | #7 |
Okay, what I was saying is that your current trigger is setting the unit's health to a negative value if I have read correctly. In the place of where you set the health, put: Set life of Freezing_Unit_Unknown to (Life of Freezing_Unit_Unkown - 100.00) or whatever the damage you want is. I am sorry for my earlier post, I was at school and supposed to be doing work, plus I sometimes have weird train of thoughts. ^_^ |
| 12-21-2004, 06:48 AM | #8 |
Gah well I feel stupid, I thought it the code tags parsed the text and made it so that it all your if statements would automatically be indented. Welp, I was wrong. It wasn't too much more readable, but I did look at it. Kishe is right, unless these triggers weren't pasted right. You have a lot of lines that look like this Code:
Unit - Set life of Freezing_Unit_Unknown to -75.00 with different values than 75 in some places. Maybe you missed that setting their life to -75 kills them? That wouldn't subtract 75 hp, it would set their hp to 0. Heck, if I designed the editor I'd probably make the units explode they would be so dead...but I digress. Anyway, just thought I'd back up Kishe. Oh and I think I like new avatar better. |
| 12-21-2004, 05:29 PM | #9 |
Your trigger was just too long. Here, try this shorter version (it deals 75/100/125/150 damage to 3/4/5/6 random neutral hostile units in range, just like your long trigger is supposed to (at least I think that's what you wanted it to do)): Code:
Freezing
Events
Unit - A unit Begins channeling an ability
Conditions
(Ability being cast) Equal to Freezing
Actions
Set Cast_Unit_Freezing = (Casting unit)
Set Freezing_Nova = (Level of Freezing for Cast_Unit_Freezing)
Trigger - Run Freezing Effect <gen> (checking conditions)Code:
Freezing Effect
Events
Conditions
Actions
Animation - Play Cast_Unit_Freezing's Animation - Spell Channel animation
Set Freezing_Group = (Units within 1000.00 of (Position of Cast_Unit_Freezing)) matching (((matching unit) is alive equal to true) and (owner of (matching unit) equal to neutral hostile))
For each integer A from 1 to (Freezing_Nova + 2) do actions
loop - actions
Set Freezing_Unit_Unknown = (Random unit from Freezing_Group)
Special Effect - Create a special effect at (Position of Freezing_Unit_Unknown) using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
Special Effect - destroy last created special effect
Unit - Set life of Freezing_Unit_Unknown to ((life of Freezing_Unit_Unknown) - (50.00 + (Freezing_Nova x 25)))
Unit Group - Remove Freezing_Unit_Unknown from Freezing_Group |
| 12-21-2004, 07:41 PM | #10 | |
Quote:
haha great thats what i wanted thanks ![]() |
| 12-21-2004, 07:53 PM | #11 | ||
Quote:
yea i feel pretty stupid but thanks for your help ("backup" rather ^_^ ) Quote:
yes i like it myself too and Anitarf everything looks nice except i'm not sure about the Freezing_Nova + 2 the levels go from 1-4 so shouldn't it be for everyaction 1 to Freezing_Nova +3? and the freezing_nova x 25 isn't showing... freezing_nova is an integer and it calls for a real how do i come around that? |
| 12-21-2004, 07:58 PM | #12 |
sorry for tripple post but i'd like to make this organized due to the importance of this post... I ran into some trouble with another spell i've made called Flood Shield... basically when the unit is attacked a +1 counter is added to an integer. Once it gets to 10 there is an explosion and all units in the AOE are hit... however i cannot find the statement greater than or equal to do you mind taking a look? Code:
Flood Shield Learn
Events
Unit - A unit Learns a skill
Conditions
(Learned Hero Skill) Equal to Flood Shield
Actions
Set Flood_Shield_Unit = (Learning Hero)
Trigger - Turn on Flood Shield <gen>Code:
Flood Shield
Events
Unit - A unit Is attacked
Conditions
(Attacked unit) Equal to Flood_Shield_Unit
(Flood_Shield_Unit has buff Flood Shield ) Equal to True
Actions
Set Flood_Shield_Charge = (Flood_Shield_Charge + 1)Code:
Flood Shield Explode
Events
Map initialization
Conditions
Flood_Shield_Charge Equal to 10
Actions
Special Effect - Create a special effect at (Position of Flood_Shield_Unit) using Abilities\Spells\Other\Charm\CharmTarget.mdl
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Flood Shield for Flood_Shield_Unit) Equal to 1
Then - Actions
Unit Group - Pick every unit in (Units within 500.00 of (Position of Flood_Shield_Unit)) and do (Actions)
Loop - Actions
Set Flood_Picked = (Picked unit)
Unit Group - Add Flood_Picked to Flood_Exploding_Unit
Unit - Order Flood_Shield_Unit to damage Flood_Picked for 30.00 using attack type Spells and damage type Normal.
Unit Group - Remove Flood_Picked from Flood_Exploding_Unit
Else - Actions
Do nothing |
| 12-22-2004, 06:46 PM | #13 | |
Quote:
Well, that depends on what you want. If you want it to hit 3 enemies at level 1, then it should be "+ 2", because 1(the level of ability) + 2 = 3. And you can convert integers to reals; forgot that, didn't type it correctly. When you choose a real value (it's the window where you said freezing_nova wasn't showing because it was an integer), you should choose a function called "conversion - convert integer to real". That way, you can insert an integer into a real calculation (and the x25, that's just an arithmetic function). So, correctly, it would look like this: ((life of Freezing_Unit_Unknown) - (50.00 + ((Real(Freezing_Nova)) x 25))) As far as the second ability goes: You don't even run the last trigger. (except, it runs at map initialisation, don't know why though...) You should just copy all the actions of the last trigger at the end of the second trigger. Additionally, you are complicating things for no reason in the last trigger, why do you add and right after that remove the picked unit from the unit group? Anyway, the whole picking units and damaging them with triggers seems redundant: you could just create a dummy caster at the position of attacked unit and order the dummy caster to use a FanofKnives-based ability. |
| 12-22-2004, 07:38 PM | #14 |
all i can find is real to integer... |
| 12-22-2004, 07:43 PM | #15 | |
Quote:
that seemed like an excellent idea however i had already tried that... there is no was to order the dummy to cast the *custom ability* there are only the original spells |
