• 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.

What am i doing wrong here? ( read it... hard to explain in title )

Status
Not open for further replies.
Level 3
Joined
Jan 18, 2012
Messages
26
So im trying to make a system that would prevent people from un-allying in 3 minutes after teleporting to allies base using scroll town portal. ( using allies [f11] and unticking name )
Heres what i have so far..
First trigger:
  • Events
    • Unit - A unit Begins channeling an ability
  • Conditions
    • (Ability being cast) Equal to (==) Item Town Portal
  • Actions
    • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Owner of (Triggering unit)) Not equal to (!=) (Owner of (Target unit of ability being cast))
      • Then - Actions
        • Set OwnerOfTeleUnit[1] = (Owner of (Triggering unit))
        • Set OwnerOfTownHall[1] = (Owner of (Target unit of ability being cast))
        • Trigger - Run First Teleport declare activat <gen> (ignoring conditions)
        • Trigger - Turn off (This trigger)
      • Else - Actions
First teleport declare activat trigger:
  • Actions
    • Trigger - Turn on First Teleport declae 2 <gen>
    • Wait 180.00 seconds
    • Trigger - Turn off First Teleport declae 2 <gen>
First teleport declare 2 trigger:
  • Events
    • Player - Player 1 (Red) changes Alliance (non-aggression) settings
    • Player - Player 2 (Blue) changes Alliance (non-aggression) settings
    • Player - Player 3 (Teal) changes Alliance (non-aggression) settings
    • Player - Player 4 (Purple) changes Alliance (non-aggression) settings
    • Player - Player 5 (Yellow) changes Alliance (non-aggression) settings
    • Player - Player 6 (Orange) changes Alliance (non-aggression) settings
    • Player - Player 7 (Green) changes Alliance (non-aggression) settings
    • Player - Player 8 (Pink) changes Alliance (non-aggression) settings
    • Player - Player 9 (Gray) changes Alliance (non-aggression) settings
    • Player - Player 10 (Light Blue) changes Alliance (non-aggression) settings
    • Player - Player 11 (Dark Green) changes Alliance (non-aggression) settings
    • Player - Player 12 (Brown) changes Alliance (non-aggression) settings
  • Conditions
    • (Triggering player) Equal to (==) OwnerOfTeleUnit[1]
  • Actions
    • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • ((Triggering player) is giving OwnerOfTownHall[1] Alliance (non-aggression)) Equal to (==) False
      • Then - Actions
        • Player - Make OwnerOfTeleUnit[1] treat OwnerOfTownHall[1] as an Ally
        • Player - Make OwnerOfTownHall[1] treat OwnerOfTeleUnit[1] as an Ally
      • Else - Actions
Please any help would be great . Im making a new version of my popular map and this would help A LOT ( World War 3 Tundra Revisited ; or; World War ][][][ new tun. #000 in lobby's )
 
Status
Not open for further replies.
Top