trigger help fix

windale5

New Member
Reaction score
2
ok i've got this trigger but the problem is I need this to happen once per players hero meaning they can only recieve this scroll of town portal once. If they change ownership again it does not give them the scroll of town portal again. This is for 12 hero 1 per player by the way
Trigger:
  • Moving of heroes to base
    • Events
      • Unit - A unit Changes owner
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • Unit - Move (Triggering unit) instantly to ((Triggering player) start location), facing Default building facing degrees
      • Hero - Create Scroll of Town Portal. and give it to (Triggering unit)
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Camera - Reset camera for (Picked player) to standard game-view over 0.00 seconds
 

Accname

2D-Graphics enthusiast
Reaction score
1,464
Trigger:
  • Moving of heroes to base
    • Events
      • Unit - A unit Changes owner
    • Conditions
      • ((Triggering unit) is in UsedHeroes) Equal to True
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • Unit - Move (Triggering unit) instantly to ((Triggering player) start location), facing Default building facing degrees
      • Hero - Create Scroll of Town Portal. and give it to (Triggering unit)
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Camera - Reset camera for (Picked player) to standard game-view over 0.00 seconds
      • Unit Group - Add (Triggering unit) to UsedHeroes

if you change your trigger to something like this all heroes will be added to the unitgroup variable "UsedHeroes" after they got the Scroll once and cannot trigger this event again because of the condition.
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Code:
     Moving of heroes to base
           Events
                 Unit - A unit Changes owner
           Conditions
                 ((Triggering unit) is in UsedHeroes) Equal to True
                 ((Triggering unit) is A Hero) Equal to True
           Actions
                 Unit - Move (Triggering unit) instantly to (([COLOR="Red"]Triggering player[/COLOR]) start location), facing Default building facing degrees
                 Hero - Create Scroll of Town Portal. and give it to (Triggering unit)
                 Player Group - Pick every player in (All players) and do (Actions)
                       Loop - Actions
                             Camera - Reset camera for (Picked player) to standard game-view over 0.00 seconds
                 Unit Group - Add (Triggering unit) to UsedHeroes

Won't work... Should be (Owner of (Triggering unit)) ;)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top