• 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] Trigger Isnt working!

Status
Not open for further replies.
  • Storm
    • Events
      • Time - Every 25.00 seconds of game time
    • Conditions
    • Actions
      • Unit - Create 1 Dummy Unit for Player 1 (Red) at (Random point in Region 004 <gen>) facing Default building facing degrees
      • Set Stromcloud = (Last created unit)
      • Wait 2.00 seconds
      • Unit - Order Stromcloud to Orc Far Seer - Chain Lightning (Random unit from (Units in Region 004 <gen>))
      • Wait 15.00 seconds
      • Unit - Remove Stromcloud from the game
That trigger isnot working, and ive checked over to see the dummy unit is set up right, but if you think I might be wrong, go ahead and suggest something.
 
Level 18
Joined
May 27, 2007
Messages
1,689
EDIT: The problem was that in order to "Unit-Order Unit to Orc Farseer-Chain Lightning w/e unit" the unit u create has to be based on an Orc Far Seer with the Chain Lightinign ability as a normal "Unit" ability and all that then it will work
  • StormCloud
    • Events
      • Time - Every 10.00 seconds of game time
    • Conditions
    • Actions
      • Set TempPoint = (Center of Region 000 <gen>)
      • Unit - Create 1 StormCloud for Player 1 (Red) at TempPoint facing Default building facing degrees
      • Unit - Add a 10.00 second Generic expiration timer to (Last created unit)
      • Unit - Order (Last created unit) to Orc Far Seer - Chain Lightning (Random unit from (Units in Region 000 <gen>))
      • Custom script: call RemoveLocation (udg_TempPoint)
 
Last edited:
Level 6
Joined
Feb 25, 2005
Messages
230
Just a hint here, the units doesnt have to be based on a far seer, the important with "Unit-Order Unit to Orc Farseer-Chain Lightning w/e unit" is that the spell your dummy has got to have (in the object editor):

Text - Order String - Use/Turn On: chainlightning

This is the Order you call to activate this spell. To activate it via trigger you use the "Unit-Order Unit to Orc Farseer-Chain Lightning w/e unit".

This means that you can have a shockwave based spell, and change the orderstring to "chainlightning".

Make sure the spells orderstring is set to chainlightning.

If this wanst the problem, im not sure what it is.
 
Level 2
Joined
Jan 18, 2005
Messages
17
Make sure that your trigger only picks units that the Chain Lightning spell CAN target. For example, if there are buildings in the target area, your dummy unit might randomly end up trying to cast Chain Lightning on a building, which will probably fail unless you allow the spell to be cast on buildings. That would be why sometimes it works and sometimes it doesn't.

Use "Unit Matching ( ( (Condition) AND (Condition) ) AND (Not Condition) )" or something similar if you need to weed out a few particular unit classifications.
 
Status
Not open for further replies.
Top