HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Spawn Tigger

07-19-2004, 04:45 AM#1
Wasted_Oscelot
Ok, i am a complete trigger noob....so dont make fun of me, lol. Can someone tell me how to make a spawn trigger, like, if i start with building A, and i want it to spawn unit Z every 5 secs, but then if i upgraded to building B have it spawn unit X. How would i do that. Its for a footmanwars-type map.
07-19-2004, 05:01 AM#2
BuRnInSpartan
Quote:
Originally Posted by Wasted_Oscelot
Ok, i am a complete trigger noob....so dont make fun of me, lol. Can someone tell me how to make a spawn trigger, like, if i start with building A, and i want it to spawn unit Z every 5 secs, but then if i upgraded to building B have it spawn unit X. How would i do that. Its for a footmanwars-type map.

_________________________________________________________________

ok so first you Make a variable called spawn1 and one called spawn 2

Events: Time- Every 5.00 seconds of the game.

Conditions: (Number of units in (Units owned by Player 1 (Red) of type building A Equal to 1
(Building A is alive) Equal to true

Actions: Unit- Create X amout of whatever at region whatever.
Trigger- Turn off (spawn1)
Trigger- Turn on (spawn1)

O then make this trigger so that when you upgrade this trigger will run

Events: Time- Every 5.00 seconds of the game.

Conditions: (Number of units in (Units owned by Player 1 (Red) of type building B Equal to 1
(Building A is alive) Equal to true

Actions:Trigger- Turn off (spawn1)
Unit- Create X amout of whatever at region whatever.
Trigger- Turn off (spawn2)
Trigger- Turn on (spawn2)

Hope this works
07-19-2004, 12:42 PM#3
Wasted_Oscelot
Quote:
Originally Posted by BuRnInSpartan
_________________________________________________________________

ok so first you Make a variable called spawn1 and one called spawn 2

Events: Time- Every 5.00 seconds of the game.

Conditions: (Number of units in (Units owned by Player 1 (Red) of type building A Equal to 1
(Building A is alive) Equal to true

Actions: Unit- Create X amout of whatever at region whatever.
Trigger- Turn off (spawn1)
Trigger- Turn on (spawn1)

O then make this trigger so that when you upgrade this trigger will run

Events: Time- Every 5.00 seconds of the game.

Conditions: (Number of units in (Units owned by Player 1 (Red) of type building B Equal to 1
(Building A is alive) Equal to true

Actions:Trigger- Turn off (spawn1)
Unit- Create X amout of whatever at region whatever.
Trigger- Turn off (spawn2)
Trigger- Turn on (spawn2)

Hope this works

will the spawn the units continually?
07-19-2004, 12:44 PM#4
Wasted_Oscelot
and wat do you mean by make a variable
07-19-2004, 02:13 PM#5
BuRnInSpartan
ok there is a gold X above trigger comment... click that and make a variable.
07-19-2004, 02:15 PM#6
BuRnInSpartan
Quote:
Originally Posted by Wasted_Oscelot
will the spawn the units continually?

Yes So when you have building A it spawns w/e units you want... then... when you get building B it stops spawning th units from building A and starts spawing units for building B
07-19-2004, 06:04 PM#7
Wasted_Oscelot
wat type of variable
07-20-2004, 08:04 AM#8
Dark_Uber
Ok, the trigger already listed would do the job but I think I have an easier one...

Events: Time - Every 5 seconds of game time

Conditions: None

Actions: Unit Group - Pick every unit in (Units of type Building A) and do (Unit - Create one (Unit Z) for (Owner of (Picked Unit)) at (Position of (Picked Unit)) facing default building facing degrees

Unit Group - Pick every unit in (Units of type Building B) and do (Unit - Create one (Unit X) for (Owner of (Picked Unit)) at (Position of (Picked Unit)) facing default building facing degrees

Hope this helps... :D
07-20-2004, 02:15 PM#9
BuRnInSpartan
variable type=to a trigger
07-20-2004, 06:25 PM#10
Wasted_Oscelot
Thanks guys, that last one works. O and if i wanna stop the trigger i can just do something like, whenver someone upgrades to the next building, it stops the the one spawning the first unit?
07-21-2004, 01:07 PM#11
thedevil
Event: unit finish an upgrade
Condition:unit type of triggering unit equal to whatever
Action:
-Turn off spawn unit1
-Turn on spawn unit2