• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Hm wc3 just closes

Status
Not open for further replies.
Level 11
Joined
Jul 28, 2007
Messages
920
Mage = I have frost armor spel/buff, and this unit has hardened skin spell(reducing from ranged) also it has damage detection= when ranged unit attacks it takes some damage.

So when i throw storm bolt on that unit(Mage) game just closes.
What coul cause that ? Oo
 
Level 11
Joined
Jul 28, 2007
Messages
920
Maybe i need to put in condition melee damage if there is anything like that ? There are 10 heroes in event.

  • Frozen Shell damage
    • Events
    • Conditions
      • ((Triggering unit) belongs to an enemy of (Owner of (Damage source))) Equal to (==) True
      • ((Damage source) is A melee attacker) Equal to (==) True
      • ((Triggering unit) has buff Frozen Shell ) Equal to (==) True
    • Actions
      • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Multiple ConditionsOr - Any (Conditions) are true
            • Conditions
              • (Owner of (Triggering unit)) Equal to (==) Player 1 (Red)
              • (Owner of (Triggering unit)) Equal to (==) Player 2 (Blue)
              • (Owner of (Triggering unit)) Equal to (==) Player 3 (Teal)
              • (Owner of (Triggering unit)) Equal to (==) Player 4 (Purple)
              • (Owner of (Triggering unit)) Equal to (==) Player 5 (Yellow)
        • Then - Actions
          • Unit - Cause (Triggering unit) to damage (Damage source), dealing (5.00 + (5.00 x (Real((Level of Frozen Shell for Spell_FrozenShell_Caster[1]))))) damage of attack type Spells and damage type Normal
        • Else - Actions
      • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Multiple ConditionsOr - Any (Conditions) are true
            • Conditions
              • (Owner of (Triggering unit)) Equal to (==) Player 6 (Orange)
              • (Owner of (Triggering unit)) Equal to (==) Player 7 (Green)
              • (Owner of (Triggering unit)) Equal to (==) Player 8 (Pink)
              • (Owner of (Triggering unit)) Equal to (==) Player 9 (Gray)
              • (Owner of (Triggering unit)) Equal to (==) Player 10 (Light Blue)
        • Then - Actions
          • Unit - Cause (Triggering unit) to damage (Damage source), dealing (5.00 + (5.00 x (Real((Level of Frozen Shell for Spell_FrozenShell_Caster[2]))))) damage of attack type Spells and damage type Normal
        • Else - Actions
 
Level 12
Joined
Apr 15, 2008
Messages
1,063
It's exactly what azrnicepuff said, infinite loop:
This line:
  • Unit - Cause (Triggering unit) to damage (Damage source)
Can cause infinite loop. Just add Turn Off - This trigger before this line and Turn On - This trigger after it

EDIT: the trigger how it should look like
  • set index = ( (Player Number of Owner of unit (Triggering unit) -1 )/ 5 ) + 1
  • Turn off - this trigger
  • Unit - Cause (Triggering unit) to damage (Damage source), dealing (5.00 + (5.00 x (Real((Level of Frozen Shell for Spell_FrozenShell_Caster[index]))))) damage of attack type Spells and damage type Normal
  • Turn On - this trigger
 
Last edited:
Level 11
Joined
Jul 28, 2007
Messages
920
Ok, can someone explain this to me little more.
How is this infinite coz it triggers only when unit takes damage ?
Ok i will put that; and what is that index there ?

Like this ? Would it work fine if like 10 units are attacking unit with Frozen Shell Buff ?

  • Frozen Shell damage
    • Events
  • "Hero takes damage" is the event
    • Conditions
      • ((Triggering unit) belongs to an enemy of (Owner of (Damage source))) Equal to (==) True
      • ((Damage source) is A melee attacker) Equal to (==) True
      • ((Triggering unit) has buff Frozen Shell ) Equal to (==) True
    • Actions
      • Trigger - Turn off (This trigger)
      • Unit - Cause (Triggering unit) to damage (Damage source), dealing (5.00 + (5.00 x (Real((Level of Frozen Shell for Spell_FrozenShell_Caster[1]))))) damage of attack type Spells and damage type Normal
      • Trigger - Turn on (This trigger)
 
Level 12
Joined
Apr 15, 2008
Messages
1,063
That should work fine.

Index is used to calculate the team number, so you don't have to use the IFs there. (it is supposed to be a variable)

It triggers every time unit takes damage, including this time: Unit - Cause (Triggering unit) to damage (Damage source) So every time two units with frozen shell attack each other, they crash the game, because whenever one of them takes damage, it causes damage to the other unit, which causes this trigger to trigger again
 
Level 11
Joined
Jul 28, 2007
Messages
920
That should work fine.

Index is used to calculate the team number, so you don't have to use the IFs there. (it is supposed to be a variable)

It triggers every time unit takes damage, including this time: Unit - Cause (Triggering unit) to damage (Damage source) So every time two units with frozen shell attack each other, they crash the game, because whenever one of them takes damage, it causes damage to the other unit, which causes this trigger to trigger again

Ou right... didnt saw it that way -.-', they damage each other to infinite.
Y but how i know at least i cant use decimals in my editor so how can it be
Player Number of Owner of unit (Triggering unit) -1 )/ 5 ) + 1 =>
2-1=1/5= 0.25+1=1.25 ? Or my setting are wrong, i think i had that opinion before.

BTW +1 rep to you 2 guyz, tnx. I'll check later if it works.
 
Status
Not open for further replies.
Top