• 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.

[Trigger] So I think my world editor woke up in a bad mood today...

Status
Not open for further replies.
Level 8
Joined
Mar 3, 2009
Messages
327
Alrighty, i'm making a few spells and I see NOTHING wrong with them. Can someone please help me out here?

  • Fireball
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Ability being cast) Equal to Fireball Q
          • (Ability being cast) Equal to Fireball W
          • (Ability being cast) Equal to Fireball E
          • (Ability being cast) Equal to Fireball R
    • Actions
      • -------- Base damage --------
      • Set Tempreal2 = 0.00
      • -------- Int multiplier --------
      • Set Tempreal = 2.50
      • -------- ---------------- --------
      • Set Temppoint[0] = (Position of (Triggering unit))
      • Unit - Create 1 Dummy for (Owner of (Triggering unit)) at Temppoint[0] facing Default building facing degrees
      • Unit - Add Fireball SFX to (Last created unit)
      • Unit - Order (Last created unit) to Neutral Pandaren Brewmaster - Drunken Haze (Target unit of ability being cast)
      • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
      • Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing (((Real((Intelligence of (Triggering unit) (Include bonuses)))) x Tempreal) + Tempreal2) damage of attack type Spells and damage type Normal
      • Custom script: call RemoveLocation(udg_Temppoint[0])
The problem: No damage is dealt.




  • Fireball2
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Unit-type of (Attacking unit)) Equal to Warlock
      • Or - Any (Conditions) are true
        • Conditions
          • (Level of Fireball Q for (Attacked unit)) Not equal to 0
          • (Level of Fireball W for (Attacking unit)) Not equal to 0
          • (Level of Fireball E for (Attacking unit)) Not equal to 0
          • (Level of Fireball R for (Attacking unit)) Not equal to 0
    • Actions
      • -------- Chance --------
      • Set Tempint = 1
      • -------- Base damage --------
      • Set Tempreal2 = 0.00
      • -------- Int multiplier --------
      • Set Tempreal = 2.50
      • -------- ---------------- --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Random integer number between 1 and Tempint) Equal to 1
        • Then - Actions
          • Set Temppoint[0] = (Position of (Attacking unit))
          • Unit - Create 1 Dummy for (Owner of (Attacking unit)) at Temppoint[0] facing Default building facing degrees
          • Unit - Add Fireball SFX to (Last created unit)
          • Unit - Order (Last created unit) to Neutral Pandaren Brewmaster - Drunken Haze (Triggering unit)
          • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
          • Unit - Cause (Attacking unit) to damage (Triggering unit), dealing (((Real((Intelligence of (Attacking unit) (Include bonuses)))) x Tempreal) + Tempreal2) damage of attack type Spells and damage type Normal
          • Custom script: call RemoveLocation(udg_Temppoint[0])
        • Else - Actions
The problem: Does not fire unless I remove all of the Or-Multiple conditions. When it did fire, no damage was dealt.

Thanks all!
 
Last edited:
Level 6
Joined
Jan 3, 2010
Messages
185
  • Actions
    • -------- Base damage --------
    • Set Tempreal2 = 0.00
    • -------- Int multiplier --------
    • Set Tempreal = 2.50
    • -------- ---------------- --------
    • Set Temppoint[0] = (Position of (Triggering unit))
Well if the comments there are the way i interpreted them 0*2.5 = 0 so it makes sense it would do no damage
 
Level 8
Joined
Mar 3, 2009
Messages
327
Well. Theres a 1 in tempint (which is currently 1, will normally be 6 or so) chance for a free fireball when the warlock attacks. The abilities are selectable, so I have one for each hotkey.

The idea is if the hero has one of the fireball spells, then if random number between 1 and tempint is 1 run all of the actions for a free fireball.

Hope that answered the question, im off to bed, and thanks :)
 
Level 8
Joined
Mar 3, 2009
Messages
327
Wait so.. what do i do with the conditions on the fireball 2 trigger?

EDIT: yeah fireball 2 isnt firing but the spell itself works fine <3
EDIT2: I've also tried "is equal to 1" for the fireball 2 trigger. In case that helps or something
EDIT3 omg i see it now :/ thanks.
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
Sorry, I messed up.

You have these conditions:

  • (Level of Fireball Q for (Attacked unit)) Not equal to 0
  • (Level of Fireball W for (Attacking unit)) Not equal to 0
  • (Level of Fireball E for (Attacking unit)) Not equal to 0
  • (Level of Fireball R for (Attacking unit)) Not equal to 0
Change the first to check the level for attacking unit.
 
Level 13
Joined
May 11, 2008
Messages
1,198
Sorry, I messed up.

You have these conditions:

  • (Level of Fireball Q for (Attacked unit)) Not equal to 0
  • (Level of Fireball W for (Attacking unit)) Not equal to 0
  • (Level of Fireball E for (Attacking unit)) Not equal to 0
  • (Level of Fireball R for (Attacking unit)) Not equal to 0
Change the first to check the level for attacking unit.

that's what i said in my first post, that his entries were incorrect.
there's no possible way his trigger makes sense with inconsistencies such as these.
i'm not certain whether he wants to make attacked unit be attacking unit, or the three attacking unit ones be attacked unit. i don't have his map soi have no way of understanding what all his variables and whatever are. i don't know if he's checking buffs on a unit or an ability learned on a unit. i also don't know other factors, such as what exactly the spell is supposed to do. so i have no way of knowing specifically what the problem is, and i don't think you can safely say what the problem is, either, unless i'm missing something.
 
Status
Not open for further replies.
Top