• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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