• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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,407
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