Footmen triggers

The_Reaping

Member
Reaction score
2
Hey, i'm making a footman frenzy map and i'm stuck with some of the triggers, i'm new to using triggers and i'm stuck with the spawning of heroes. I have the hero taverns and sprites next to it.. but when i spawn the hero.. it spawns next to the tavern and i'm stuck trying to get it to spawn next to the players barracks/whatever.. if you could help me i'd appreciate it a lot.

Thanks,
The_Reaping
 
I don't have a ton of experience with this specific thing. But if you could post the code (triggers) you have already, I think it would be easier to help you :)
 
I don't have a ton of experience with this specific thing. But if you could post the code (triggers) you have already, I think it would be easier to help you :)

Ok i'll post it in a second. I'll edit this post.

Events
Unit - A unit Begins training a unit
Conditions
Actions
Unit - Create 1 Paladin for Player 1 (Red) at (Player 1 (Red) start location) facing Default building facing degrees
Unit - Create 1 Archmage for Player 1 (Red) at (Player 1 (Red) start location) facing Default building facing degrees
Unit - Create 1 Mountain King for Player 1 (Red) at (Player 1 (Red) start location) facing Default building facing degrees
Unit - Create 1 Blood Mage for Player 1 (Red) at (Player 1 (Red) start location) facing Default building facing degrees
 
I will assume there is a trigger that specifies which unit is being trained?

Anyway... Create a point variable first (find the variable editor and create a new variable, give it a name, and set its type to "point")

Trigger:
  • Your Trigger
    • Events
    • Conditions
    • Actions
      • Set Temp_Point = (Center of (Playable map area)) //sets the point variable you created to a specific location
      • Unit - Create 1 Paladin for Player 1 (Red) at Temp_Point facing Default building facing degrees //creates the specified unit
      • Custom script: call RemoveLocation (udg_Temp_Point)//script to remove the created point (this prevents leaks that cause lag in your game


Change: (Center of (Playable map area)) to a specific "region" you create near your "barracks/whatever".. Or you can select the unit with an offset so that it spawns to the side of the unit
 
I will assume there is a trigger that specifies which unit is being trained?

Anyway... Create a point variable first (find the variable editor and create a new variable, give it a name, and set its type to "point")

Trigger:
  • Your Trigger
    • Events
    • Conditions
    • Actions
      • Set Temp_Point = (Center of (Playable map area)) //sets the point variable you created to a specific location
      • Unit - Create 1 Paladin for Player 1 (Red) at Temp_Point facing Default building facing degrees //creates the specified unit
      • Custom script: call RemoveLocation (udg_Temp_Point)//script to remove the created point (this prevents leaks that cause lag in your game


Change: (Center of (Playable map area)) to a specific "region" you create near your "barracks/whatever".. Or you can select the unit with an offset so that it spawns to the side of the unit

Hm... could you be more specific?.. Still trying to work out triggers :p
 
free hand:
events - specific unit(tavern) sells a unit
conditions -
actions -
for 1 to 12 do actions
-if owner of sold unit equal to player(a)
-then move unit to baracks owned by player(a)
 
free hand:
events - specific unit(tavern) sells a unit
conditions -
actions -
for 1 to 12 do actions
-if owner of sold unit equal to player(a)
-then move unit to baracks owned by player(a)

Ahhh thanks. I made it work. I'm now having difficulty with defeat conditions... Could i ask for help again? :p
 
What are your defeat conditions?


Edit: guess I should have known that, considering it is a footman frenzy game ;)
 
another free hand:
events - generic unit dies
conditions - unit type of dying unit equal to main building(its the barrack i think)
actions -
for 1 to 12 do actions
-if owner of dying unit equal to player(a)
-then defeat player(a) {or do with him whatever u want}
 
another free hand:
events - generic unit dies
conditions - unit type of dying unit equal to main building(its the barrack i think)
actions -
for 1 to 12 do actions
-if owner of dying unit equal to player(a)
-then defeat player(a) {or do with him whatever u want}

Thanks!! <3
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • 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 The Helper:
    What do you think Tom?
  • tom_mai78101 tom_mai78101:
    I will have to get used to this.
  • tom_mai78101 tom_mai78101:
    The latest news feed looks good

      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