• 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] Summoning trigger

Status
Not open for further replies.
Level 4
Joined
Jan 25, 2009
Messages
117
I have these triggers. They are supposed to limit a summon to only 1 but they wont. Please help. +rep. Pharoh is an integer(variable). and Pharohh is an unit(variable)

1:
  • Pharoh
  • Events
  • Unit - Nephri'thos 011 Is Issued An Orded With No Target
  • Conditions
  • (ability being cast) equal to Feral Buddy
  • Pharoh equal to 0
  • Actions
  • Set Pharohh equal to (summoned unit)
  • Set Pharoh equal to 1
2:
  • Pharoh 1
  • Events
  • Unit - Nephri'thos 011 Is Issued An Orded With No Target
  • Conditions
  • (ability being cast) equal to Feral Buddy
  • Actions
  • If (Pharoh equal to 1) then do (Remove (summoned unit) from the game) else do (do nothing)
3:
  • Pharoh 2
  • Events
  • Unit - a unit dies
  • Conditions
  • (Dying unit) equal to Pharohh
  • Actions
  • Set Pharoh equal to 0
 
Level 8
Joined
Mar 12, 2008
Messages
437
  • Events
    • Unit - Neph'ritos spawns a summoned unit
  • Conditions
    • Unit type of (Triggering unit) equal to [unit type]
    • (Number of units in (Units in (Playable map area) matching (Unit type of (Triggering unit) equal to [unit type])) Equal to 1) Equal to True
  • Actions
    • Set Point = (Position of (Casting unit))
    • Unit - Create a Pharao for (Owner of (Casting Unit)) at Point
    • Set Pharoh = (Triggering unit)
    • Set Pharohh = 1
    • Custom script: call RemoveLocation(udg_Point)
 
Status
Not open for further replies.
Top