• 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.

[Trigger] Spawning Generation +REP to all helpers

Status
Not open for further replies.
Level 4
Joined
Jan 29, 2009
Messages
79
Hey

i need some help with a map

Look this
  • LEVEL 1 PEASANTS SPAWN
  • Events
  • Time - Every 5.00 Seconds of game time
  • Conditions
  • And - All (Conditions) are true
  • (Player 1 (Red( slot status) Equal to Is playeing
  • Actions
  • Unit - Create ZRED[1] Peasants Level 1 for Player 1 (Red) at (Center of RED SPAWN <gen>) Facing Default building facing degrees
Then
  • Events
  • Unit - A Unit Finishes Costruction
  • Conditions
  • (Unit-type of (Costructude structure)) Equal to Town Hall Level 2
  • (Owner of (Costructed structure)) Equal lto Player 1 (Red)
  • Actions
  • Trigger - Turn off LEVEL 1 PEASANTS SPAWN <gen>
  • Trigger - Turn on LEVEL 2 PEASANTS SPAWN <gen>
AND this which is Initially Off(non-on)
  • LEVEL 2 PEASANTS SPAWN <gen>
  • Events
  • Time - Every 5.00 seconds of game time
  • Conditions
  • And - All (Conditions) are true
  • (Player 1 (Red) slot status) Equal to is playing
  • Actions
  • Unit - Create ZRED[1] Peasants Level 2 for Player 1 (Red) at (Center of RED SPAWN <gen>) facing Default building facing degrees
Well..i want to....When a player upgrade his Town hall 1 to Town hall 2 will spawn Level 2 Peasants instead of Level 1

My trigger dont work and i dont know what i have to fix

+Rep to everyone who wants to help serious
Thanks!
 
Level 16
Joined
May 1, 2008
Messages
1,605
Heres an addition way, you can do this:

  • Cons 1
    • Events
      • Unit - A unit Finishes an upgrade
    • Conditions
      • (Player 1 (Red) slot status) Equal to Is playing
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Triggering unit)) Equal to Town Hall 2
        • Then - Actions
          • Trigger - Turn off Summon lvl 1 <gen>
          • Trigger - Turn on Summon lvl 2 <gen>
        • Else - Actions
  • Summon lvl 1
    • Events
      • Time - Every 2.00 seconds of game time
    • Conditions
      • (Player 1 (Red) slot status) Equal to Is playing
    • Actions
      • Unit - Create 1 Unit lvl 1 for Player 1 (Red) at (Center of Redspawn <gen>) facing Default building facing (270.0) degrees
  • Summon lvl 2
    • Events
      • Time - Every 2.00 seconds of game time
    • Conditions
      • (Player 1 (Red) slot status) Equal to Is playing
    • Actions
      • Unit - Create 1 Unit lvl 2 for Player 1 (Red) at (Center of Redspawn <gen>) facing Default building facing (270.0) degrees
Ofc i tested it > works fine

MfG
Dr. Boom
 
Level 18
Joined
Mar 7, 2005
Messages
824
it's just the same, but you changed it a bit to make it look like something..
but nearly same triggers.. so nothing special, wanna raise post count, huh? :D

if you want you can combine those sent triggers, with if/then/else.. so check which town hall player red owns, and spawn the following unit.

event:
every X seconds
condition:
player x is playing
action:
pick all units owned by player x and do action:
if - unit-type of picked unit equal to town hall 2
then - spawn x peasants2 for player x at region x blablabla
else - spawn x peasants1 for player x at region x blablabla
 
Status
Not open for further replies.
Top