• 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] [Strange bug] Spell casted only once

Status
Not open for further replies.
Level 8
Joined
Sep 24, 2007
Messages
300
  • All abilities
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Ability being cast) Equal to Call Airforce
      • Then - Actions
        • Set CallAircraft = (Target point of ability being cast)
        • Set AirFieldCaster = (Position of (Casting unit))
        • Unit - Create 1 F/A-22 for (Owner of (Casting unit)) at AirFieldCaster facing Default building facing (270.0) degrees
        • Unit - Order (Last created unit) to Human Archmage - Blizzard CallAircraft
        • Wait 1.00 seconds
        • Unit - Create 1 F/A-22 for (Owner of (Casting unit)) at AirFieldCaster facing Default building facing (270.0) degrees
        • Unit - Order (Last created unit) to Human Archmage - Blizzard CallAircraft
        • Wait 1.00 seconds
        • Unit - Create 1 F/A-22 for (Owner of (Casting unit)) at AirFieldCaster facing Default building facing (270.0) degrees
        • Unit - Order (Last created unit) to Human Archmage - Blizzard CallAircraft
        • Custom script: call RemoveLocation(udg_CallAircraft)
        • Custom script: call RemoveLocation(udg_AirFieldCaster)
      • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Ability being cast) Equal to Aircraft Rockets
        • Then - Actions
          • Set Aircraft = (Casting unit)
          • Set CallAircraft = (Position of Icecrown Tree Wall 0420 <gen>)
          • Unit - Add a 10.00 second Generic expiration timer to Aircraft
          • Wait 0.20 seconds
          • Unit - Order Aircraft to Move To CallAircraft
          • Custom script: call RemoveLocation(udg_CallAircraft)
        • Else - Actions

Now, as you see, 3 planes are created and eaxh one of them is ordered to cast a spell (basicaly blizzard). Everything works smooth, the first plane releases rockets (blizzard) after 1 sec comes the second plane and releases rockets, BUT NO DAMAGE IS DEALT! Same with third plane. Only damage from the first plane is applied. WTF?


The second part sends them to the edge of the map, so it looks more realistic...
 
Level 7
Joined
Oct 13, 2008
Messages
301
Why don't you trigger the damage?

For Example:
  • All Abilities
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Animate Dead
    • Actions
      • Set CallAircraft = (Target point of ability being cast)
      • Set AircraftUnitGroup = (Units within 400.00 of CallAircraft matching (((Matching unit) belongs to an enemy of Player 1 (Red)) Equal to True))
      • Unit Group - Pick every unit in AircraftUnitGroup and do (Actions)
        • Loop - Actions
          • Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - 50.00)
 
Level 7
Joined
Oct 13, 2008
Messages
301
Well yeah, You can use damage area if you want the spell to damage your enemies AND your units and allies.
 
Level 2
Joined
Aug 8, 2008
Messages
17
um.. instead of repeating it 3 times you could always just set it to:

For each (Integer A) from 1 - 3 do (Actions)

This may fix it.. I'm not sure how it would but it I'm not sure how its not working in the first place.
 

Rmx

Rmx

Level 19
Joined
Aug 27, 2007
Messages
1,164
U just didn't set the casting unit into a variabel so after the WAIT the casting unit in the second plane is Neutral or something that is allied with ur enemy so the Second blizzard will not deal any damage to ur enemy coz it's not ur ally Plane ^^
 
Level 8
Joined
Sep 24, 2007
Messages
300
Fixed the problem with damage area. It works so I will leave it this way.

@shift maybe, but I think it would be just a loss of time

@supergood COuld be something stupid, but I can only think of 2 aoe spells that drop something from the sky. Blizzard and rain of fire.

@archangel animate dead?

@rmx Casting unit is set into a variable each time the spell begins casting. So when the second plane stars casting it sets the second plane as a caster. Nothing wrong here. I didn't understand the second part though.



Thank you guys anyway. It could really be some bug with buffs or something similar, don't know.
 

Rmx

Rmx

Level 19
Joined
Aug 27, 2007
Messages
1,164
No it's not set to a variabel check ur triger again >>>>>>>>>

After the wait the casting unit will be null >>> So it's not ur unit anymore who the planes are created for >>> Check ur TRIGER in the first post ( His position is only set as a variabel ) :p
 
Status
Not open for further replies.
Top