Hero Select Help causing crash

DragonBlade

Member
Reaction score
0
Hi, i am new at W3 Map Editor.
i need help with 1 trigger :D for select hero(enter cicle of power and spawn the hero)

Trigger:
  • Events
    • Unit - A unit enters Warlock select <gen>
    • Conditions
    • Actions
      • Unit - Kill (Triggering unit)
      • If ((Player((Team number of (Owner of (Triggering unit))))) Equal to (Player((Team number of Player 1 (Red))))) then do (Unit - Create 1 Drek'Thar for (Owner of (Triggering unit)) at (Player 11 (Dark Green) start location) facing Default building facing degrees) else do (Player - Set (Owner of (Triggering unit)) Current gold to 750)
      • If ((Player((Team number of (Owner of (Triggering unit))))) Equal to (Player((Team number of Player 6 (Orange))))) then do (Unit - Create 1 Drek'Thar for (Owner of (Triggering unit)) at (Player 12 (Brown) start location) facing Default building facing degrees) else do (Player - Set (Owner of (Triggering unit)) Current gold to 750)


but when i try tu select the hero the W3 get "FATAL ERROR!"

what i need to do?
 

Quakern

New Member
Reaction score
1
Try This instead:
Trigger:
  • alla
    • Events
      • Unit - A unit enters Region 000 <gen>
    • Conditions
      • (Unit-type of (Entering unit)) Equal to Wisp
    • Actions
      • Unit - Kill (Entering unit)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Owner of (Entering unit)) Equal to Player 1 (Red)
        • Then - Actions
          • Unit - Create 1 Footman for Player 1 (Red) at (Player 7 (Green) start location) facing Default building facing degrees
        • Else - Actions
          • Do nothing
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Owner of (Entering unit)) Equal to Player 6 (Orange)
        • Then - Actions
          • Unit - Create 1 Footman for Player 6 (Orange) at (Player 8 (Pink) start location) facing Default building facing degrees
        • Else - Actions
          • Do nothing
 

DragonBlade

Member
Reaction score
0
that work thx :) but i can do something like (Owner of (Entering unit)) Equal to Team 2? or groups for players
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Just do "(Owner of (Triggering unit)) is an ally of Player 1 (Red)" instead ;)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top