• 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] Flag Capture

Status
Not open for further replies.
Level 18
Joined
Feb 9, 2008
Messages
1,504
[SOLVED] Im making a Capture the Flag Horde vs Alliance like map, and I need what triggers would allow:

Unit is carrying item: (Horde flag) when Entering Region (Alliance Flag).



[UNSOLVED]What conditions would I need to use (im still used to basic triggers, so what.)

I also want to add a leaderboard, but those confuse me like hell.




[Half problem solved on my own.. I think, but now I need the Leaderboard part.]
 
Level 13
Joined
Sep 14, 2008
Messages
1,408
You need a unit variable and the flag should be a unit too.

  • a
    • Events
      • Unit - A unit enters (Flag Horde)
    • Conditions
      • (Owner of (Triggering unit)) Equal to Alliance Player 1
      • (Owner of (Triggering unit)) Equal to Alliance Player 2
      • (Owner of (Triggering unit)) Equal to Alliance Player 3
      • (Owner of (Triggering unit)) Equal to Alliance Player "so on"
    • Actions
      • Set FlagCarringUnit = (Triggering unit)
      • Unit - Remove (Flag) from the game
      • Special Effect - Create a special effect attached to the head of (Triggering unit) using (Your Flag Model)
This trigger sets the unit which has the flag.

  • a
    • Events
      • Unit - A unit enters (Alliance Flag)
    • Conditions
      • (Triggering unit) Equal to FlagCarringUnit
    • Actions
      • Custom script: Do whatever you want.
This checks if the entering unit is the unit with the flag.
 
Level 18
Joined
Feb 9, 2008
Messages
1,504
You need a unit variable and the flag should be a unit too.

  • a
    • Events
      • Unit - A unit enters (Flag Horde)
    • Conditions
      • (Owner of (Triggering unit)) Equal to Alliance Player 1
      • (Owner of (Triggering unit)) Equal to Alliance Player 2
      • (Owner of (Triggering unit)) Equal to Alliance Player 3
      • (Owner of (Triggering unit)) Equal to Alliance Player "so on"
    • Actions
      • Set FlagCarringUnit = (Triggering unit)
      • Unit - Remove (Flag) from the game
      • Special Effect - Create a special effect attached to the head of (Triggering unit) using (Your Flag Model)
This trigger sets the unit which has the flag.

  • a
    • Events
      • Unit - A unit enters (Alliance Flag)
    • Conditions
      • (Triggering unit) Equal to FlagCarringUnit
    • Actions
      • Custom script: Do whatever you want.
This checks if the entering unit is the unit with the flag.



I was thinking of using:

  • Ally Flag Captured
    • Events
      • Unit - A unit enters AllianceFlag<gen>
    • Conditions
      • (Item carried by (Triggering Unit) in slot 1) Equal to Orc Flag 005<gen>
Im going to have the Actions add +1 to the Leaderboard, but I cant put value as the Already Set number to add 1.
 
Status
Not open for further replies.
Top