• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[Trigger] Making on the necessary players peasants appear.

Status
Not open for further replies.
Level 2
Joined
Nov 17, 2010
Messages
16
  • Events
    • Map initialization
  • Conditions
  • Actions
    • Player Group - Pick every player in (All players) and do (Actions)
      • Loop - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • ((Picked player) slot status) Equal to Is playing
            • ((Picked player) controller) Equal to User
          • Then - Actions
            • Set TempPoint = (Center of (Playable map area))
            • Unit - Create 1 Peasant for (Picked player) at TempPoint facing Default building facing degrees
            • Custom script: call RemoveLocation(udg_TempPoint)
          • Else - Actions
Dr.Boss hooked me up with this trigger,but unfortunately it doesn't work.

[This was supposed to only, make the peasants of the people playing appear.]
ex. lets say 4 people total can play the map.
But only 3 people joined, well instead of having a useless peasant at the "Hero Selection Spot" It won't be there.

*But this trigger that I received creates a peasant at the center of the map.
:(

can someone help me, please?
 
A peasant is being created at the center of the map because that's what you have set the TempPoint variable to before creating the peasant.

  • Set TempPoint = (Center of (Playable map area))
  • Unit - Create 1 Peasant for (Picked player) at TempPoint facing Default building facing degrees
Just set the TempPoint variable to the center of the region you want.
 
But it looks like, that its just creating a peasant, and spawning it.

I'm trying to make it where there wont be peasants at the start for the players that "Might not join:"
 
I was actually just using those to show you the point in the trigger that I was talking about.

The trigger you posted works fine, but as I said before, they spawn in the center of the map because that's what the TempPoint variable is being set to.

TempPoint is being set to (Center Of (Playable Map Area)), and then a peasant is being created at TempPoint (which is the center of your map).

You need to set TempPoint to the center of the region you want the peasants to spawn at.
 
Ok i think i see what ur talking about, so just replace this trigger, and delete the peasents from the map?
and it should spawn if im correct? but im probally not.

-ill check it out later when im at home
Zodiacxx
 
Status
Not open for further replies.
Back
Top