Hero spawn problem.

fgw

New Member
Reaction score
1
So, whenever the heros are selected they spawn right at the tavern instead of in their respective places, these are the codes I've got for them, I'm hoping someone can trouble-shoot it for me.

Code:
Untitled Trigger 012
    Events
        Unit - A unit enters Region 004 <gen>
    Conditions
        (Owner of (Entering unit)) Equal to Player 1 (Red)
        (Owner of (Entering unit)) Equal to Player 3 (Teal)
        (Owner of (Entering unit)) Equal to Player 2 (Blue)
        (Owner of (Entering unit)) Equal to Player 4 (Purple)
        (Owner of (Entering unit)) Equal to Player 5 (Yellow)
    Actions
        Unit - Move (Entering unit) instantly to (Center of Region 001 <gen>)

Code:
Untitled Trigger 012 Copy
    Events
        Unit - A unit enters Region 004 <gen>
    Conditions
        (Owner of (Entering unit)) Equal to Player 6 (Orange)
        (Owner of (Entering unit)) Equal to Player 7 (Green)
        (Owner of (Entering unit)) Equal to Player 8 (Pink)
        (Owner of (Entering unit)) Equal to Player 9 (Gray)
        (Owner of (Entering unit)) Equal to Player 10 (Light Blue)
    Actions
        Unit - Move (Entering unit) instantly to (Center of Region 003 <gen>)
 

Happy

Well-Known Member
Reaction score
71
use triggering unit instead of entering unit...that should work...
 

Icyculyr

I'm a Mac
Reaction score
68
In that instance, Entering unit and triggering unit refer to the same unit.

The only thing that could be wrong here, is that they are not being detected as entering those regions, or they are simply not entering those regions (or the correct one to trigger the event)

Why don't you move the unit instantly after being sold from the tavern?

Kind Regards
 

fgw

New Member
Reaction score
1
In that instance, Entering unit and triggering unit refer to the same unit.

The only thing that could be wrong here, is that they are not being detected as entering those regions, or they are simply not entering those regions (or the correct one to trigger the event)

Why don't you move the unit instantly after being sold from the tavern?

Kind Regards

In that instance I'd change it to (owner of sold unit) correct?
 

Icyculyr

I'm a Mac
Reaction score
68
Can you post the code you added for when a unit is sold in a tavern?

Kind Regards
 

fgw

New Member
Reaction score
1
Code:
Untitled Trigger 012 Copy
    Events
        Unit - Hero pool 0013 <gen> Sells a unit
    Conditions
        (Owner of (Sold unit)) Equal to Player 6 (Orange)
        (Owner of (Sold unit)) Equal to Player 7 (Green)
        (Owner of (Sold unit)) Equal to Player 8 (Pink)
        (Owner of (Sold unit)) Equal to Player 9 (Gray)
        (Owner of (Sold unit)) Equal to Player 10 (Light Blue)
    Actions
        Unit - Move (Entering unit) instantly to (Center of Region 003 <gen>)
 

Icyculyr

I'm a Mac
Reaction score
68
Trigger:
  • Unit - Move (Entering unit) instantly to (Center of Region 003 &lt;gen&gt;)


This action is wrong, it should be Move (Sold unit)
 

fgw

New Member
Reaction score
1
I changed it and they're still spawning next to it. I'm thinking about just making a copy tavern and having one in each base.
 

Icyculyr

I'm a Mac
Reaction score
68
Your player one though, did you also update it for the other trigger for players 1-5?

Trigger:
  • Untitled Trigger 012 Copy
    • Events
      • Unit - Hero pool 0013 &lt;gen&gt; Sells a unit
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player number of (Owner of (Sold unit))) Greater than 5
        • Then - Actions
          • Unit - Move (Sold unit) instantly to (Center of Region 003 &lt;gen&gt;)
        • Else - Actions
          • Unit - Move (Sold unit) instantly to (Center of Region 001 &lt;gen&gt;)
    • Game - Display to (All players) the text: (Test that this works)


That should work just fine, if it's player 6-12 it moves to Region 003, otherwise it moves to 001.
If you don't see the text Test that this works, then the trigger is not actually running... Always a good thing to do if something is not working, check what isn't running with messages.

Kind Regards
 

fgw

New Member
Reaction score
1
Alright, its working fine now. Thanks a bunch for the help guys.
 
General chit-chat
Help Users

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top