![]() | |
| | #1 |
![]() Join Date: Mar 2007 Location: Underground
Posts: 5,865
![]() ![]() ![]() | Dwarves Vs. Goblins and it's triggering Problems! Goblin Savage Spawn Events Time - Timer expires Unit - A unit enters Mt Goblin area <gen> Conditions (Unit-type of (Triggering unit)) Equal to Savage Spawn Actions Unit - Create 2 Goblin Savage for Player 11 (Dark Green) at (Center of DarkGreen Spawn <gen>) facing Default building facing degrees This is the base trigger to add new things to the spawn, Mt. Goblin Area is the name of that region that the place was built in. as that is a Darkgreen base, anything built there is Darkgreen's new units. Goblin Savage spawn represents the kind of spawner, and the Goblin savages should be made when the timer runs out. UNFORTUNATELY, this only works about one time for every fifty. by my not-so-hot triggering skills, i think this should work, but i don't know whats wrong or how to fix it. any suggestions? ![]() And now, directly from chip's signature... ![]() |
| | |
| | #2 |
![]() Join Date: Apr 2007
Posts: 2,436
![]() ![]() ![]() | Re: Dwarves Vs. Goblins and it's triggering Problems! well you use triggering unit when you have event - timer expires, there is no triggering unit when the timer expires also moved to correct forum |
| | |
| | #3 |
![]() Join Date: Mar 2007 Location: Underground
Posts: 5,865
![]() ![]() ![]() | Re: Dwarves Vs. Goblins and it's triggering Problems! but the problem is that the condition already SAYS it's that unit type ![]() ![]() And now, directly from chip's signature... ![]() |
| | |
| | #4 |
![]() Join Date: Feb 2008
Posts: 13
![]() | Re: Dwarves Vs. Goblins and it's triggering Problems! Not sure if this is what you want, but what I have should do this: When a timer expires create 2 goblin savages IF the savage spawn is built. I dont know if you wanted to make it if its only built in a certain region, if you did I will make a new trigger, but this one works no matter where it is built. The variable "savagespawn" as an integer with default value 0 is required Code: Stubz2
Events
Unit - A unit owned by Player 11 (Dark Green) Finishes construction
Conditions
(Unit-type of (Triggering unit)) Equal to Savage Spawn
Actions
Set savagespawn = 1
STubz
Events
Time - Timer expires
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
savagespawn Equal to 1
Then - Actions
Unit - Create 2 Goblin Savage for Player 11 (Dark Green) at (Center of DarkGreen Spawn <gen>) facing Default building facing degrees
Else - Actions
Do nothing |
| | |
| | #5 |
![]() Join Date: Mar 2007 Location: Underground
Posts: 5,865
![]() ![]() ![]() | Re: Dwarves Vs. Goblins and it's triggering Problems! mind explaining this to my not-so-trigger-happy mind? ![]() ![]() And now, directly from chip's signature... ![]() |
| | |
| | #6 |
![]() Join Date: Mar 2007 Location: Underground
Posts: 5,865
![]() ![]() ![]() | Re: Dwarves Vs. Goblins and it's triggering Problems! Bump AND something else. Yes, i do want it to spawn in a specific region. And would you be able to make it so that if 2 were there, it would spawn 4? ![]() And now, directly from chip's signature... ![]() |
| | |
| | #7 |
![]() Join Date: Feb 2008
Posts: 13
![]() | Re: Dwarves Vs. Goblins and it's triggering Problems! The variable "savagespawn" as an integer with default value 0 is required Code: Stubz2
Events
Unit - A unit owned by Player 11 (Dark Green) Finishes construction
Conditions
(Unit-type of (Triggering unit)) Equal to Savage Spawn
Actions
Set savagespawn = (savagespawn + 1)
stubz
Events
Time - Timer expires
Conditions
savagespawn Greater than or equal to 1
Actions
Unit - Create (savagespawn x 2) Goblin Savage for Player 11 (Dark Green) at (Center of (DarkGreen Spawn)) facing Default building facing degrees |
| | |
| | #8 |
![]() Join Date: Mar 2007 Location: Underground
Posts: 5,865
![]() ![]() ![]() | Re: Dwarves Vs. Goblins and it's triggering Problems! i want it for a certain region, such as the one i initially posted. (by the way, if this works, i will write your name in gigantic green letters saying thank you on the loading screen. feel happy, a lot! )![]() And now, directly from chip's signature... ![]() |
| | |
| | #9 |
![]() Join Date: Mar 2007 Location: Underground
Posts: 5,865
![]() ![]() ![]() | Re: Dwarves Vs. Goblins and it's triggering Problems! where would i add the code to? ![]() And now, directly from chip's signature... ![]() |
| | |
![]() |
| Thread Tools | |
| |