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>)
 
use triggering unit instead of entering unit...that should work...
 
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, 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?
 
Can you post the code you added for when a unit is sold in a tavern?

Kind Regards
 
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>)
 
Trigger:
  • Unit - Move (Entering unit) instantly to (Center of Region 003 &lt;gen&gt;)


This action is wrong, it should be Move (Sold unit)
 
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.
 
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
 
Alright, its working fine now. Thanks a bunch for the help guys.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    It is weird seeing a way more realistic users online number
  • The Helper The Helper:
    Happy Tuesday Night!
    +1
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    News portal has been retired. Main page of site goes to Headline News forum now
  • The Helper The Helper:
    I am working on getting access to the old news portal under a different URL for those that would rather use that for news before we get a different news view.
  • Ghan Ghan:
    Easily done
    +1
  • The Helper The Helper:
    https://www.thehelper.net/pages/news/ is a link to the old news portal - i will integrate it into the interface somewhere when i figure it out
  • Ghan Ghan:
    Need to try something
  • Ghan Ghan:
    Hopefully this won't cause problems.
  • Ghan Ghan:
    Hmm
  • Ghan Ghan:
    I have converted the Headline News forum to an Article type forum. It will now show the top 20 threads with more detail of each thread.
  • Ghan Ghan:
    See how we like that.
  • The Helper The Helper:
    I do not see a way to go past the 1st page of posts on the forum though
  • The Helper The Helper:
    It is OK though for the main page to open up on the forum in the view it was before. As long as the portal has its own URL so it can be viewed that way I do want to try it as a regular forum view for a while
  • Ghan Ghan:
    Yeah I'm not sure what the deal is with the pagination.
  • Ghan Ghan:
    It SHOULD be there so I think it might just be an artifact of having an older style.
  • Ghan Ghan:
    I switched it to a "Standard" article forum. This will show the thread list like normal, but the threads themselves will have the first post set up above the rest of the "comments"
  • The Helper The Helper:
    I don't really get that article forum but I think it is because I have never really seen it used on a multi post thread
  • Ghan Ghan:
    RpNation makes more use of it right now as an example: https://www.rpnation.com/news/
  • The Helper The Helper:

      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